diff --git a/app/views/groups/show.html.erb b/app/views/groups/show.html.erb index 646cd4c..20db4ba 100644 --- a/app/views/groups/show.html.erb +++ b/app/views/groups/show.html.erb @@ -1,85 +1,87 @@ <% content_for :more_breadcrumbs do %>
Domain | Serial | Group | State | Slave | DNSSEC | Controls |
---|---|---|---|---|---|---|
<%= link_to domain.name, domain %> | <%= domain.serial %> | <%= link_to group.name, group_path(group) %> | <%= human_state(domain.state) %> | <%= domain.slave? ? domain.master : '-' %> | <%= domain.dnssec? ? 'secure' : '-' %> | <%= link_to_edit edit_domain_path(domain) %> <%= link_to_destroy domain, method: :delete, data: { confirm: 'Are you sure?' } if domain.can_remove? %> + <%= link_to_full_destroy full_destroy_domain_path(domain), + method: :delete, data: { confirm: 'Are you sure?' } if domain.can_remove? && domain.dnssec? %> |
<% if current_user.memberships.any? %> <%= link_to 'Add Domain', new_domain_path(group_id: @group.id), class: 'btn btn-primary' %> <% else %> <%= link_to 'Add Domain', new_domain_path(group_id: @group.id), class: 'btn btn-primary disabled' %> <% end %>
Member | Controls |
---|---|
<%= membership.user.email %><%= " (you)" if current_user == membership.user %> | <%= link_to_destroy destroy_member_group_path(@group, membership.user_id), method: :delete %> |
<%= bootstrap_form_tag(url: create_member_group_path(@group), layout: :inline) do |f| %> <%= f.text_field :email, prepend: 'Add Member', hide_label: true, id: 'js-search-member', data: { group: @group.id } %> <%= f.submit 'Add', class: 'btn btn-primary' %> <% end %>