Sha256: d4f7a528aca46d8ab24a0ce0fa2f71327da153770c928d935edb7e9ea45e0e4a

Contents?: true

Size: 691 Bytes

Versions: 7

Compression:

Stored size: 691 Bytes

Contents

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
imagine_cms-5.2.6 app/views/manage/cms_pages/_template_options.html.erb
imagine_cms-5.2.5 app/views/manage/cms_pages/_template_options.html.erb
imagine_cms-5.2.4 app/views/manage/cms_pages/_template_options.html.erb
imagine_cms-5.2.3 app/views/manage/cms_pages/_template_options.html.erb
imagine_cms-5.2.2 app/views/manage/cms_pages/_template_options.html.erb
imagine_cms-5.2.1 app/views/manage/cms_pages/_template_options.html.erb
imagine_cms-5.2.0 app/views/manage/cms_pages/_template_options.html.erb