|
29 | 29 | <span class="name">{{$dir}}</span> |
30 | 30 | <div class="right floated content"> |
31 | 31 | <button class="ui button submit tiny green adopt show-modal" data-modal="#adopt-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-plus"}}</span><span class="label">{{$.locale.Tr "repo.adopt_preexisting_label"}}</span></button> |
32 | | - <div class="ui basic modal" id="adopt-unadopted-modal-{{$dirI}}"> |
33 | | - {{svg "octicon-x" 16 "close inside"}} |
| 32 | + <div class="ui gitea-confirm-modal modal" id="adopt-unadopted-modal-{{$dirI}}"> |
34 | 33 | <div class="header"> |
35 | 34 | <span class="label">{{$.locale.Tr "repo.adopt_preexisting"}}</span> |
36 | 35 | </div> |
|
43 | 42 | <input type="hidden" name="action" value="adopt"> |
44 | 43 | <input type="hidden" name="q" value="{{$.Keyword}}"> |
45 | 44 | <input type="hidden" name="page" value="{{$.CurrentPage}}"> |
46 | | - <div class="actions"> |
| 45 | + <div class="actions">{{/* TODO: Convert to base/modal_actions_confirm */}} |
47 | 46 | <button class="ui red basic inverted cancel button"> |
48 | 47 | {{svg "octicon-trash" 16 "gt-mr-2"}} |
49 | 48 | {{$.locale.Tr "modal.no"}} |
|
56 | 55 | </form> |
57 | 56 | </div> |
58 | 57 | <button class="ui button submit tiny red delete show-modal" data-modal="#delete-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-x"}}</span><span class="label">{{$.locale.Tr "repo.delete_preexisting_label"}}</span></button> |
59 | | - <div class="ui basic modal" id="delete-unadopted-modal-{{$dirI}}"> |
60 | | - {{svg "octicon-x" 16 "close inside"}} |
| 58 | + <div class="ui gitea-confirm-modal modal" id="delete-unadopted-modal-{{$dirI}}"> |
61 | 59 | <div class="header"> |
62 | 60 | <span class="label">{{$.locale.Tr "repo.delete_preexisting"}}</span> |
63 | 61 | </div> |
|
70 | 68 | <input type="hidden" name="action" value="delete"> |
71 | 69 | <input type="hidden" name="q" value="{{$.Keyword}}"> |
72 | 70 | <input type="hidden" name="page" value="{{$.CurrentPage}}"> |
73 | | - <div class="actions"> |
| 71 | + <div class="actions">{{/* TODO: Convert to base/modal_actions_confirm */}} |
74 | 72 | <button class="ui red basic inverted cancel button"> |
75 | 73 | {{svg "octicon-trash" 16 "gt-mr-2"}} |
76 | 74 | {{$.locale.Tr "modal.no"}} |
|
0 commit comments