<% form_for [:admin, @refinery_setting] do |f| %> <%= f.error_messages %>
<% if action_name =~ /(new)|(create)/ %> <%= f.label :name %> <%= f.text_field :name, :class => "larger widest" %> <% else %> - (<%= h @refinery_setting.name %>) <% end %> <% unless action_name =~ /(new)|(create)/ or (help = I18n.translate("admin.refinery_settings.help.#{@refinery_setting.name}", :default => '')).blank? %>

<%= help %>

<% end %> <% if current_user.has_role?(:superuser) %> <%= f.label :restricted %> <%= refinery_help_tag t('.help.restricted') %> <%= f.check_box :restricted %> <%= f.label :restricted, t('.yes_make_this_setting_restricted'), :class => 'stripped' %> <% end %>
<%= f.label :value %> <%= f.text_area :value, :rows => 5, :class => 'widest' %>
<%= render :partial => "/shared/admin/form_actions", :locals => { :f => f, :continue_editing => false, :hide_cancel => from_dialog?, :submit_button_title => t('.restart_may_be_in_order'), :delete_title => t('admin.refinery_settings.refinery_setting.remove'), :delete_confirmation => t('admin.refinery_settings.refinery_setting.confirm', :title => h(@refinery_setting.name).titleize) } %> <% end -%>