|
27 | 27 | </button> |
28 | 28 | <ul class="dropdown-menu" aria-labelledby="profileLabel"> |
29 | 29 | <li><a href="<%- url %>/features"><i class="fa fa-dot-circle-o fa-fw"></i> <%= __('Features') %></a></li> |
| 30 | + <li><a class="ui-delete-user" data-toggle="modal" data-target=".delete-user-modal"><i class="fa fa-trash fa-fw"></i> <%= __('Delete user') %></a></li> |
30 | 31 | <li><a href="<%- url %>/logout"><i class="fa fa-sign-out fa-fw"></i> <%= __('Sign Out') %></a></li> |
31 | 32 | </ul> |
32 | 33 | </span> |
|
108 | 109 | <span class="btn btn-default btn-file ui-open-history" title="<%= __('Import history') %>"> |
109 | 110 | <i class="fa fa-folder-open-o"></i><input type="file" /> |
110 | 111 | </span> |
111 | | - <a href="#" class="btn btn-default ui-clear-history" title="<%= __('Clear history') %>" data-toggle="modal" data-target=".delete-modal"><i class="fa fa-trash-o"></i></a> |
| 112 | + <a href="#" class="btn btn-default ui-clear-history" title="<%= __('Clear history') %>" data-toggle="modal" data-target=".delete-history-modal"><i class="fa fa-trash-o"></i></a> |
112 | 113 | </span> |
113 | 114 | <a href="#" class="btn btn-default ui-refresh-history" title="<%= __('Refresh history') %>"><i class="fa fa-refresh"></i></a> |
114 | 115 | </form> |
|
157 | 158 | </div> |
158 | 159 | </div> |
159 | 160 | </div> |
160 | | -<!-- delete modal --> |
161 | | -<div class="modal fade delete-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> |
| 161 | +<!-- delete history modal --> |
| 162 | +<div class="modal fade delete-history-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> |
162 | 163 | <div class="modal-dialog modal-sm"> |
163 | 164 | <div class="modal-content"> |
164 | 165 | <div class="modal-header"> |
|
167 | 168 | <h4 class="modal-title" id="myModalLabel"><%= __('Are you sure?') %></h4> |
168 | 169 | </div> |
169 | 170 | <div class="modal-body" style="color:black;"> |
170 | | - <h5 class="ui-delete-modal-msg"></h5> |
171 | | - <strong class="ui-delete-modal-item"></strong> |
| 171 | + <h5 class="ui-delete-history-modal-msg"></h5> |
| 172 | + <strong class="ui-delete-history-modal-item"></strong> |
172 | 173 | </div> |
173 | 174 | <div class="modal-footer"> |
174 | 175 | <button type="button" class="btn btn-default" data-dismiss="modal"><%= __('Cancel') %></button> |
175 | | - <button type="button" class="btn btn-danger ui-delete-modal-confirm"><%= __('Yes, do it!') %></button> |
| 176 | + <button type="button" class="btn btn-danger ui-delete-history-modal-confirm"><%= __('Yes, do it!') %></button> |
| 177 | + </div> |
| 178 | + </div> |
| 179 | + </div> |
| 180 | +</div> |
| 181 | +<!-- delete user modal --> |
| 182 | +<div class="modal fade delete-user-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> |
| 183 | + <div class="modal-dialog modal-sm"> |
| 184 | + <div class="modal-content"> |
| 185 | + <div class="modal-header"> |
| 186 | + <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span> |
| 187 | + </button> |
| 188 | + <h4 class="modal-title" id="myModalLabel"><%= __('Are you sure?') %></h4> |
| 189 | + </div> |
| 190 | + <div class="modal-body" style="color:black;"> |
| 191 | + <h5 class="ui-delete-user-modal-msg"><%= __('Do you really want to delete your user account?') %></h5> |
| 192 | + <strong class="ui-delete-user-modal-item"><%= __('This will delete your account, all notes that are owned by you and remove all references to your account from other notes.') %></strong> |
| 193 | + </div> |
| 194 | + <div class="modal-footer"> |
| 195 | + <button type="button" class="btn btn-default ui-delete-user-modal-cancel" data-dismiss="modal"><%= __('Cancel') %></button> |
| 196 | + <a type="button" class="btn btn-danger" href="<%- url %>/me/delete"><%= __('Yes, do it!') %></a> |
176 | 197 | </div> |
177 | 198 | </div> |
178 | 199 | </div> |
|
0 commit comments