Sha256: e29ba0a6cc348663f01ca3cf8764b3143ce4f4bd46a02a9916b907ab0741e525

Contents?: true

Size: 804 Bytes

Versions: 15

Compression:

Stored size: 804 Bytes

Contents

= form_for(@setting, :url => url) do  |f|
  = gb_error_messages_for(@setting)
  
  = block("Setting") do
    - if @setting.delete_able
      = f.label :name ,  "Setting Name"
      = f.text_field(:name)
      %br        
      = f.label :value ,  "Setting Value"
      = render :partial => "value_tag" , :locals => { :f => f}
      %br        
      = f.label :values_list ,  "Setting Value List (; seperated) (optional)"
      = f.text_area(:values_list , :class => "large tall")
      %br        
      = f.label :help
      = f.text_area(:help , :class => "large tall")
    - else
      = f.label :value , @setting.user_friendly_name
      = render :partial => "value_tag" , :locals => { :f => f}
    %br   
    %small= @setting.help
    
    %br
      
  = form_controls(admin_generic_settings_path)

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gluttonberg-core-2.6.4 app/views/gluttonberg/admin/settings/generic_settings/_form.html.haml
gluttonberg-core-2.6.3 app/views/gluttonberg/admin/settings/generic_settings/_form.html.haml
gluttonberg-core-2.6.2 app/views/gluttonberg/admin/settings/generic_settings/_form.html.haml
gluttonberg-core-2.6.1 app/views/gluttonberg/admin/settings/generic_settings/_form.html.haml
gluttonberg-core-2.6.0 app/views/gluttonberg/admin/settings/generic_settings/_form.html.haml
gluttonberg-core-2.5.9 app/views/gluttonberg/admin/settings/generic_settings/_form.html.haml
gluttonberg-core-2.5.8 app/views/gluttonberg/admin/settings/generic_settings/_form.html.haml
gluttonberg-core-2.5.7 app/views/gluttonberg/admin/settings/generic_settings/_form.html.haml
gluttonberg-core-2.5.6 app/views/gluttonberg/admin/settings/generic_settings/_form.html.haml
gluttonberg-core-2.5.5 app/views/gluttonberg/admin/settings/generic_settings/_form.html.haml
gluttonberg-core-2.5.4 app/views/gluttonberg/admin/settings/generic_settings/_form.html.haml
gluttonberg-core-2.5.3 app/views/gluttonberg/admin/settings/generic_settings/_form.html.haml
gluttonberg-core-2.5.2 app/views/gluttonberg/admin/settings/generic_settings/_form.html.haml
gluttonberg-core-2.5.1 app/views/gluttonberg/admin/settings/generic_settings/_form.html.haml
gluttonberg-core-2.5 app/views/gluttonberg/admin/settings/generic_settings/_form.html.haml