ggdgsdbsdbbb / templates / edit_file.html
38 lines · 30 sloc · 985 bytes · a449238961bbd5f9081831ef9db1ac936909a3e8
Raw
1<!DOCTYPE html>
2<html>
3 <head>
4 @include 'layout/head.html'
5 @css '/css/ci.css'
6 </head>
7 <body>
8 @include 'layout/header.html'
9
10 <div class="content">
11 @include 'layout/repo_menu.html'
12
13 <h1>Edit @path</h1>
14
15 <div class='form-error'>
16 @ctx.form_error
17 </div>
18
19 <form action="/@username/@repo.name/update-file" method="post" class="create-file-form">
20 <input type="hidden" name="branch" value="@branch_name">
21 <input type="hidden" name="file_path" value="@path">
22
23 <div class="create-file-path">
24 <span class="create-file-prefix">@repo.user_name/@repo.name / @path</span>
25 </div>
26
27 <textarea name="file_content" class="create-file-editor" rows="20">@file_content</textarea>
28
29 <div class="create-file-commit">
30 <input type="text" name="commit_message" placeholder="Commit message" value="Update @path" required>
31 <input type="submit" value="Commit changes">
32 </div>
33 </form>
34 </div>
35
36 @include 'layout/footer.html'
37 </body>
38</html>
39