Sha256: f6d60067fc17acc6f0e80a4e84b6fc6b4ea1e42a9be4fbc721a11ccbc96e3153
Contents?: true
Size: 1.22 KB
Versions: 6
Compression:
Stored size: 1.22 KB
Contents
- form_for [:admin, @forum] do |f| = hidden_field 'forum', 'lock_version' = render_region :form_top .form-area - render_region :form do |form| - form.edit_name do %p.title %label{:for=>"forum_name"} Name = text_field "forum", "name", :class => 'textbox', :maxlength => 100 - form.edit_description do %p.content %label{:for=>"forum_description"} Description ~ text_area "forum", "description", :class => "textarea", :style => "width: 100%" - form.edit_group do - if @group && @forum.new_record? - @forum.groups = [@group] .set %p = t('allowed_groups') - Group.find(:all).each do |group| = check_box_tag "forum[group_ids][]", group.id, @forum.has_group?(group), :id => "forum_group_#{group.id}" %label.checkbox{:for => "forum_group_#{group.id}"} = group.name = javascript_tag "$('forum_name').activate()" - render_region :form_bottom do |form_bottom| - form_bottom.edit_buttons do %p.buttons = save_model_button(@forum) = save_model_and_continue_editing_button(@forum) or = link_to 'Cancel', admin_forums_url
Version data entries
6 entries across 6 versions & 1 rubygems