Sha256: 53e29dedc60ebb633939eb6d79fc9c86ae0e40bfa3b3e4478386a3fa253c0f73

Contents?: true

Size: 692 Bytes

Versions: 9

Compression:

Stored size: 692 Bytes

Contents

<%- unless @template_options.empty? -%>
<div style="background-color: white; width: 100%; border: 1px solid #aaaaaa;">
  <%- @template_options.each do |name, type| -%>
    <%- key = name.gsub(/[^\w\d]/, '_') -%>
    <table width="100%">
      <col width="45%" /><col width="55%" />
      <tr>
        <td><%= name %></td>
        <td>
          <%=
            case type
            when :checkbox
              check_box :page_objects, "obj-option-checkbox-#{key}"
            when :string, :text
              text_field :page_objects, "obj-option-string-#{key}", :style => 'width: 100%;'
            end
          %>
        </td>
      </tr>
    </table>
  <%- end -%>
</div>
<%- end -%>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
imagine_cms-4.1.4 app/views/management/cms/_template_options.html.erb
imagine_cms-4.1.3 app/views/management/cms/_template_options.html.erb
imagine_cms-4.1.2 app/views/management/cms/_template_options.html.erb
imagine_cms-4.1.1 app/views/management/cms/_template_options.html.erb
imagine_cms-4.1.0 app/views/management/cms/_template_options.html.erb
imagine_cms-4.0.1 app/views/management/cms/_template_options.html.erb
imagine_cms-4.0.0 app/views/management/cms/_template_options.html.erb
imagine_cms-3.0.33 app/views/management/cms/_template_options.html.erb
imagine_cms-3.0.32 app/views/management/cms/_template_options.html.erb