Sha256: 8b7979295fcd9f237677d591db45efff61964943eb987cccb9cedc7de4f3da81

Contents?: true

Size: 1.72 KB

Versions: 15

Compression:

Stored size: 1.72 KB

Contents

- need_browsers = {}
= form_for 'options', { :html => { :style => 'width:800px; height: 800px;' } } do |f| 

  .mercury-display-pane-container
    .mercury-display-pane
      - has_fields = false
      %h2 Options for '#{@block.name}' Block

      - @fields.each do |field|
        - has_fields = true
        - field_name,field_type,field_description = field.split(':')
        %fieldset.inputs(id="fieldset_#{field_name}")
          %ol
            %li(class="string input optional stringish" id="options_#{field_name}_input")
              %label.label
                = field_description
              - if field_type=='text'
                = render :partial=>"option_text", :locals=>{:field_name=>field_name, :friendly=>false}
              - elsif field_type=='friendly'
                = render :partial=>"option_text", :locals=>{:field_name=>field_name, :friendly=>true}
              - elsif field_type=='line'
                = render :partial=>"option_line", :locals=>{:field_name=>field_name}
              - elsif is_db_choice?(field_type)
                = render :partial=>"option_db_choice", :locals=>{:field_name=>field_name, :field_type=>field_type}
              - elsif field_type=="link"
                = render :partial=>"option_link", :locals=>{:field_name=>field_name, :field_type=>field_type, :mode=>"editor"}
              - elsif field_type=='image'
                = render :partial=>"option_image", :locals=>{:field_name=>field_name, :field_type=>field_type, :mode=>"editor"}
              
      - unless has_fields
        There are no parameters to set.  
    
  .mercury-display-controls
    %fieldset.buttons
      %ol
        %li(class="commit button")
          %input(class="submit" name="commit" type="submit" value="Insert")

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
kit_cms-2.3.22 app/views/blocks/options.html.haml
kit_cms-2.3.20 app/views/blocks/options.html.haml
kit_cms-2.3.19 app/views/blocks/options.html.haml
kit_cms-2.3.18 app/views/blocks/options.html.haml
kit_cms-2.3.17 app/views/blocks/options.html.haml
kit_cms-2.3.16 app/views/blocks/options.html.haml
kit_cms-2.3.15 app/views/blocks/options.html.haml
kit_cms-2.3.14 app/views/blocks/options.html.haml
kit_cms-2.3.13 app/views/blocks/options.html.haml
kit_cms-2.3.11 app/views/blocks/options.html.haml
kit_cms-2.3.10 app/views/blocks/options.html.haml
kit_cms-2.3.9 app/views/blocks/options.html.haml
kit_cms-2.3.8 app/views/blocks/options.html.haml
kit_cms-2.3.7 app/views/blocks/options.html.haml
kit_cms-2.3.6 app/views/blocks/options.html.haml