Commit 3cfe8b8231531c409a62c567618c278d3f01ab08

Authored by MoisesMachado
1 parent 3c0a92cc

ActionItem501: fixed the new.rhtml template to create roles


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2267 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/views/role/new.rhtml
1 1 <h2> <%= _('New Role') %> </h2>
2 2  
3 3 <% ActiveRecord::Base::PERMISSIONS.keys.each do |perm_class| %>
4   - <h3> <%= gettext(perm_class.downcase).capitalize %> </h3>
5   - <%= render :partial => 'form', :locals => { :mode => :new, :permissions => ActiveRecord::Base::PERMISSIONS[perm_class] } %>
  4 + <h3> <%= gettext(perm_class) %> </h3>
  5 + <%= render :partial => 'form', :locals => { :mode => :new, :role => @role, :permissions => ActiveRecord::Base::PERMISSIONS[perm_class] } %>
6 6 <% end %>
... ...