Commit 9a01568ab726df707868fd7863c900440a21d78b

Authored by Antonio Terceiro
1 parent aabddb01

ActionItem1049: another UI review

Showing 1 changed file with 19 additions and 9 deletions   Show diff stats
app/views/role/index.rhtml
1 -<%= link_to _('New role'), :action => 'new' %>  
2 -<ul> 1 +<table>
  2 + <tr>
  3 + <th><%= _('Role') %></th>
  4 + <th><%= _('Ações') %></th>
  5 + </tr>
3 <% @roles.each do |role| %> 6 <% @roles.each do |role| %>
4 - <li>  
5 - <%= link_to role.name, :action => 'show', :id => role %>  
6 - <%= link_to _('Edit'), :action => 'edit', :id => role %>  
7 - <%= link_to _('Destroy'), :action => 'destroy', :id => role %>  
8 - </li> 7 + <tr>
  8 + <td>
  9 + <%= link_to role.name, :action => 'show', :id => role %>
  10 + </td>
  11 + <td>
  12 + <%= button_without_text :edit, _('Edit'), :action => 'edit', :id => role %>
  13 + <%= button_without_text :delete, _('Destroy'), :action => 'destroy', :id => role %>
  14 + </td>
  15 + </tr>
9 <% end %> 16 <% end %>
10 -</ul> 17 +</table>
11 18
12 -<p> <%= link_to _('Back'), :controller => 'admin_panel' %> </p> 19 +<% button_bar do %>
  20 + <%= button :new, _('New role'), :action => 'new' %>
  21 + <%= button :back, _('Back'), :controller => 'admin_panel' %>
  22 +<% end %>