diff options
| author | mo <mokha@cisco.com> | 2017-08-31 21:40:42 -0600 |
|---|---|---|
| committer | mo <mokha@cisco.com> | 2017-08-31 21:40:42 -0600 |
| commit | e32d16e60ddc9768b394613139b9bb42bb4f49d3 (patch) | |
| tree | 671de4442c82b4565a7ac4b4e0455d175eb0fe0d | |
| parent | 4b03a55e53b7e5139c1c333199a093cd95dc02cb (diff) | |
update delete modal.
| -rw-r--r-- | app/assets/javascripts/backbone/templates/cakes/delete_modal.jst.ejs | 52 |
1 files changed, 30 insertions, 22 deletions
diff --git a/app/assets/javascripts/backbone/templates/cakes/delete_modal.jst.ejs b/app/assets/javascripts/backbone/templates/cakes/delete_modal.jst.ejs index 30d53f86..370109d5 100644 --- a/app/assets/javascripts/backbone/templates/cakes/delete_modal.jst.ejs +++ b/app/assets/javascripts/backbone/templates/cakes/delete_modal.jst.ejs @@ -1,24 +1,32 @@ -<div class="modal-header"> - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> - <h2>Are you ABSOLUTELY sure?</h2> -</div> -<div class="modal-body"> - <% if (hasError()) { %> - <div class="alert"> - <button type="button" class="close" data-dismiss="alert">×</button> - <strong>Error!</strong> <%= errorMessage %> +<div class="modal-dialog" role="document"> + <div class="modal-content"> + <div class="modal-header"> + <h5 class="modal-title">Are you ABSOLUTELY sure?</h5> + <button type="button" class="close" data-dismiss="modal" aria-label="Close"> + <span aria-hidden="true">×</span> + </button> + </div> + <div class="modal-body"> + <% if (hasError()) { %> + <div class="alert alert-dismissible fade show alert-danger" role="alert"> + <button type="button" class="close" data-dismiss="alert" aria-label="Close"> + <span aria-hidden="true">×</span> + </button> + <strong>Error!</strong> <%= errorMessage %> + </div> + <% } %> + <p> + This action <b>CANNOT</b> be undone. + This will permanently delete <em><%= name %></em> photos, and comments. + </p> + <p> + Please type in the name of the cake to confirm. + <input id="confirmation-textbox" type="text" class="form-control" autofocus="" required="" aria-label="Type in the name of the cake to confirm that you want to delete this repository."> + </p> + </div> + <div class="modal-footer"> + <button id="remove-button" type="button" class="btn btn-danger" disabled="disabled">I understand the consequences, delete this cake</button> + <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> + </div> </div> - <% } %> - <p> - This action <b>CANNOT</b> be undone. - This will permanently delete <b><%= name %></b> photos, and comments. - </p> - <p> - Please type in the name of the cake to confirm. - <input id="confirmation-textbox" type="text" class="input-xxlarge" autofocus="" required="" aria-label="Type in the name of the cake to confirm that you want to delete this repository."> - </p> -</div> -<div class="modal-footer"> - <a href="#" class="btn" data-dismiss="modal">Cancel</a> - <button id="remove-button" type="submit" class="btn btn-danger" disabled="disabled">I understand the consequences, delete this cake</button> </div> |
