diff options
Diffstat (limited to 'views')
| -rw-r--r-- | views/admin/person_detail.erb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/views/admin/person_detail.erb b/views/admin/person_detail.erb index 448aaff..8a2f8fe 100644 --- a/views/admin/person_detail.erb +++ b/views/admin/person_detail.erb @@ -38,6 +38,14 @@ </section> <% end %> + <%# ── Delete cluster ──────────────────────────────────────────────────── %> + <section style="margin-bottom:28px"> + <form method="post" action="/admin/people/<%= ERB::Util.url_encode(@uuid) %>/delete" + onsubmit="return confirm('Delete this entire cluster (<%= @count %> photo<%= @count == 1 ? '' : 's' %>)? This cannot be undone.')"> + <button type="submit" class="btn btn-danger">Delete cluster</button> + </form> + </section> + <%# ── Face grid ────────────────────────────────────────────────────────── %> <p class="update-hint"> Hover a face to see the full photo. @@ -69,6 +77,7 @@ <option value="<%= ERB::Util.html_escape(p[:uuid]) %>"><%= ERB::Util.html_escape(p[:name]) %></option> <% end %> <option value="new">New person</option> + <option value="remove">Remove face</option> </select> </form> <% end %> |
