ref: master
app/views/box_organizer/edit.html.erb
<%= _(@block.class.description).html_safe %>
<%= form_tag(:action => 'save', :id => @block.id) do %> <%= labelled_form_field(_('Custom title for this block: '), text_field(:block, :title, :maxlength => 20)) %> <%= labelled_form_field(_('Custom subtitle for this block: '), text_field(:block, :subtitle)) %> <%= render_partial_for_class @block.class %><%= labelled_form_field _('Display this block:'), select_tag('block[display]', options_from_collection_for_select(@block.display_options, :first, :last, @block.display)) %><%= labelled_form_field _('Display to users:'), '' %> <%= select_tag('block[display_user]', options_from_collection_for_select(@block.display_user_options, :first, :last, @block.display_user)) %><%= labelled_form_field(_('Show for:'), select(:block, :language, [ [ _('all languages'), 'all']] + environment.locales.map {|key, value| [value, key]} )) %> <% if user.is_admin? %><%= labelled_form_field _('Edit options:'), select_tag('block[edit_modes]', options_from_collection_for_select(@block.edit_block_options, :first, :last, @block.edit_modes)) %><%= labelled_form_field _('Move options:'), select_tag('block[move_modes]', options_from_collection_for_select(@block.move_block_options, :first, :last, @block.move_modes)) %><% end %> <% if @block.owner.kind_of?(Profile) && @block.owner.is_template? %><%= labelled_check_box(_("Mirror"), "block[mirror]", value = "1", checked = @block.mirror) %><% end %> <%= button_bar do %> <%= submit_button(:save, _('Save')) %> <%= modal_close_button(_('Cancel')) %> <% end %> <% end %>