cirandas.net

ref: master

app/views/kinds/index.html.erb


<%= _('Manage Kinds') %>

<%= _('Manage the kinds of profiles available on this environment.') %> <% @kinds.each do |type, entries| %>

<%= _(type) %>

<%= button :add, _('New'), {:action => "new", :kind => {:type => type}} %> <% entries.each do |entry| %> <% end %> <% if entries.blank? %> <% end %>
<%= _('Kind') %> <%= _('Moderated?') %> <%= _('Actions') %>
<%= entry.name %> <%= entry.moderated ? _('Yes') : _('No') %> <%= button_without_text 'edit', _('Edit'), {:action => 'edit', :id => entry.id} %> <%= button_without_text 'delete', _('Delete'), {:action => 'destroy', :id => entry.id}, data: {confirm: _("Do you want to delete this kind?")} %>
<%= _('There no kinds of this type yet.') %>
<% end %> <%= button_bar do %> <%= button :back, _('Back to admin panel'), :controller => 'admin_panel' %> <% end %>