summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/templates/my/cakes/delete_modal.jst.ejs
blob: 370109d5c24ebb7a6fdb10aea47b167516e4062f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<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">&times;</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">&times;</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>
</div>