Sha256: 1e0558fe6805c0572b2697c2fb1a1499645745b3c5ae7b36bda1abaeae582133
Contents?: true
Size: 1.02 KB
Versions: 49
Compression:
Stored size: 1.02 KB
Contents
<h1>Editing User Group</h1> <%% form_for(<%= namespace.blank? ? '@user_group' : "[:#{namespace}, @user_group]" %>) do |f| %> <%%= f.error_messages %> <p> <b>Name</b><br /> <%%= f.text_field :name %> </p> <p> <b>Permissions</b><br /> <ul style="list-style: none;"> <%% @all_permissions.each_with_index do |perm,i| input_id = "perm_#{perm.id}" checked = (@user_group.permission_ids.include?(perm.id) ? "checked" : "") %> <li id="li_<%%= input_id %>"> <label for="<%%= input_id %>"> <input id="<%%= input_id %>" name="<%%= input_id %>" type="checkbox" <%%= checked %>/> <%%= perm.name %> </label> </li> <%% end %> </ul> </p> <p> <%%= f.submit "Update" %> </p> <%% end %> <%%= link_to 'Show', <%= namespace.blank? ? '@user_group' : "#{namespace}_user_group_path(@user_group)" %> %> | <%%= link_to 'Back', <%= namespace.blank? ? 'user_groups_path' : "#{namespace}_user_groups_path" %> %>
Version data entries
49 entries across 49 versions & 6 rubygems