Sha256: 79667d100f0ed3b1d4100883865aa4425e6a4dc78f5809f10961226cb35b4779

Contents?: true

Size: 1.88 KB

Versions: 10

Compression:

Stored size: 1.88 KB

Contents

<%= form_for [:admin, @refinery_setting] do |f| %>

  <%= render :partial => "/shared/admin/error_messages",
             :locals => {
               :object => @refinery_setting,
               :include_object_name => true
             } %>

  <div class='field'>
    <%= f.label :name %>
  <% if action_name =~ /(new)|(create)/ %>
    <%= f.text_field :name, :class => "larger widest" %>
  <% else %>
    <label class='stripped' for='refinery_setting_value'>
      <%= @refinery_setting.name.titleize %>
    </label>
    <span class="preview">- (<%= @refinery_setting.name %>)</span>
  <% end %>
  <% unless action_name =~ /(new)|(create)/ or (help = t(".help.#{@refinery_setting.name}", :default => '')).blank?  %>
    <p>
      <span><%= help %></span>
    </p>
  <% end %>
  <% if current_user.has_role?(:superuser) %>
    <span class='label_with_help'>
      <%= f.label :restricted %>
      <%= refinery_help_tag t('.help.restricted') %>
    </span>
    <%= f.check_box :restricted %>
    <%= f.label :restricted, t('.yes_make_this_setting_restricted'), :class => 'stripped' %>
  <% end %>
  </div>
  <div class='field'>
    <%= f.label :value %>
    <%= f.text_area :value, :value => @refinery_setting.form_value,
                    :rows => 5,
                    :class => 'widest' %>
  </div>

  <%= 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.delete'),
               :delete_confirmation => t('shared.admin.delete.message',
                                         :title => @refinery_setting.name.to_s.titleize),
               :hide_delete => (@refinery_setting.new_record? or !@refinery_setting.destroyable)
              } %>
<% end -%>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
refinerycms-0.9.8.9 vendor/refinerycms/settings/app/views/admin/refinery_settings/_form.html.erb
refinerycms-0.9.8.8 vendor/refinerycms/settings/app/views/admin/refinery_settings/_form.html.erb
refinerycms-0.9.8.7 vendor/refinerycms/settings/app/views/admin/refinery_settings/_form.html.erb
refinerycms-0.9.8.6 vendor/refinerycms/settings/app/views/admin/refinery_settings/_form.html.erb
refinerycms-0.9.8.5 vendor/refinerycms/settings/app/views/admin/refinery_settings/_form.html.erb
refinerycms-0.9.8.4 vendor/refinerycms/settings/app/views/admin/refinery_settings/_form.html.erb
refinerycms-0.9.8.3 vendor/refinerycms/settings/app/views/admin/refinery_settings/_form.html.erb
refinerycms-0.9.8.2 vendor/refinerycms/settings/app/views/admin/refinery_settings/_form.html.erb
refinerycms-0.9.8.1 vendor/refinerycms/settings/app/views/admin/refinery_settings/_form.html.erb
refinerycms-0.9.8 vendor/refinerycms/settings/app/views/admin/refinery_settings/_form.html.erb