<%= content_for :html_head do %> <%= stylesheet_link_tag('cms/form_layout') %> <%= javascript_tag do %> jQuery(function($) { $('#group_group_type_id').selectbox(); }); <% end %> <% end %> <%= content_for :functions do %> <%= link_to(span_tag("List All"), groups_path, :id => "list_all_button", :class => "button") %> <% end %> <%= form_for @group do |f| %> <%= f.cms_error_messages %>
<%= f.label :name, "Group Name" %> <%= f.text_field :name %>
<% unless @group.guest? %>
<%= f.label :group_type_id, "Type of User" %>
<%= f.select :group_type_id, Cms::GroupType.non_guest.map { |g| [g.name, g.id] } %>
What kind of user does this group represent?

<% end %> <%= render :partial => 'permissions' %> <%= render :partial => 'sections' %>
<%= lt_button_wrapper(f.submit("Save", :class => "submit")) %>
<% end %>