|
14 | 14 | > |
15 | 15 | {{.CsrfTokenHtml}} |
16 | 16 | {{template "repo/editor/common_top" .}} |
17 | | - <div class="repo-editor-header tw-flex tw-items-center tw-gap-2"> |
18 | | - <button type="button" class="repo-view-file-tree-toggle-show ui compact basic button icon not-mobile {{if .UserSettingCodeViewShowFileTree}}tw-hidden{{end}}" |
19 | | - data-global-click="onRepoViewFileTreeToggle" data-toggle-action="show" |
20 | | - data-tooltip-content="{{ctx.Locale.Tr "repo.diff.show_file_tree"}}"> |
21 | | - {{svg "octicon-sidebar-collapse"}} |
22 | | - </button> |
23 | | - <div class="breadcrumb"> |
| 17 | + <div class="repo-editor-header tw-flex tw-items-center tw-justify-between tw-gap-2"> |
| 18 | + <div class="tw-flex tw-items-center tw-gap-2"> |
| 19 | + <button type="button" class="repo-view-file-tree-toggle-show ui compact basic button icon not-mobile {{if .UserSettingCodeViewShowFileTree}}tw-hidden{{end}}" |
| 20 | + data-global-click="onRepoViewFileTreeToggle" data-toggle-action="show" |
| 21 | + data-tooltip-content="{{ctx.Locale.Tr "repo.diff.show_file_tree"}}"> |
| 22 | + {{svg "octicon-sidebar-collapse"}} |
| 23 | + </button> |
| 24 | + <div class="breadcrumb"> |
24 | 25 | {{ctx.Locale.Tr "repo.editor.patching"}} |
25 | 26 | <a class="section" href="{{$.RepoLink}}">{{.Repository.FullName}}</a> |
26 | 27 | <div class="breadcrumb-divider">:</div> |
27 | 28 | <a class="section" href="{{$.BranchLink}}">{{.BranchName}}</a> |
28 | 29 | <span>{{ctx.Locale.Tr "repo.editor.or"}} <a href="{{$.BranchLink}}">{{ctx.Locale.Tr "repo.editor.cancel_lower"}}</a></span> |
29 | 30 | <input type="hidden" name="tree_path" value="__dummy_for_EditRepoFileForm.TreePath(Required)__"> |
30 | 31 | <input id="file-name" type="hidden" value="diff.patch"> |
| 32 | + </div> |
| 33 | + </div> |
| 34 | + <div class="tw-flex tw-gap-2"> |
| 35 | + <a class="ui red button" href="{{$.BranchLink}}">{{ctx.Locale.Tr "repo.editor.cancel"}}</a> |
| 36 | + <button type="button" class="ui primary button disabled" id="commit-changes-button"> |
| 37 | + {{ctx.Locale.Tr "repo.editor.commit_changes"}} |
| 38 | + </button> |
31 | 39 | </div> |
32 | 40 | </div> |
33 | 41 | <div class="field"> |
|
42 | 50 | <div class="editor-loading is-loading"></div> |
43 | 51 | </div> |
44 | 52 | </div> |
45 | | - {{template "repo/editor/commit_form" .}} |
| 53 | + {{/* Commit form fields - inside form but hidden, will be shown in modal */}} |
| 54 | + <div id="commit-form-fields" style="display: none;"> |
| 55 | + {{template "repo/editor/commit_form" .}} |
| 56 | + </div> |
| 57 | + {{/* Hidden dummy button for repo-editor.ts compatibility */}} |
| 58 | + <button id="commit-button" type="button" style="display: none;"></button> |
46 | 59 | </form> |
47 | 60 | </div> |
48 | 61 | </div> |
49 | 62 | </div> |
| 63 | + |
| 64 | + {{/* Commit Changes Modal - fields will be moved here visually */}} |
| 65 | + <div class="ui modal" id="commit-changes-modal"> |
| 66 | + <i class="close icon"></i> |
| 67 | + <div class="content" id="commit-modal-content"> |
| 68 | + </div> |
| 69 | + </div> |
50 | 70 | </div> |
51 | 71 | {{template "base/footer" .}} |
0 commit comments