Noosfero/noosfero

View on GitHub
app/views/circles/index.html.erb

Summary

Maintainability
Test Coverage
<h1><%= _('Manage circles') %></h1>

<table>
  <tr>
    <th><%= _('Circle name') %></th>
    <th><%= _('Profile type') %></th>
    <th><%= _('Actions') %></th>
  </tr>
  <% @circles.each do |circle| %>
    <tr>
      <td>
        <%= circle.name %>
      </td>
      <td>
        <%= _(circle.profile_type) %>
      </td>
      <td>
        <div style="text-align: center;">
          <%= button_without_text :edit, _('Edit'), :action => 'edit', :id => circle %>
          <%= button_without_text :trash, _('Delete'), { :action => 'destroy', :id => circle }, { "data-method" => "DELETE" } %>
        </div>
      </td>
    </tr>
  <% end %>
</table>

<%= button_bar do %>
  <%= button :back, _('Back to control panel'), :controller => 'profile_editor' %>
  <%= button :add, _('Create a new circle'), :action => 'new' %>
<% end %>