Sha256: f9198ee7f24816e36df5c7f36bc6eb6607218187984f655c3345b917afe3df5d
Contents?: true
Size: 708 Bytes
Versions: 17
Compression:
Stored size: 708 Bytes
Contents
<%- if @template_options.nil? || @template_options.empty? -%> <%= javascript_tag "Element.hide('edit_page_template_options');" %> <%- else -%> <%= javascript_tag "Element.show('edit_page_template_options');" %> <%- end -%> <%- @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 -%>
Version data entries
17 entries across 17 versions & 1 rubygems