Sha256: 5b1551c7727757099911fe1deae92b755407f2b7d5e7f7b0a108c1c15550e585
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
<div class='configurable-container'> <div class="header"> <h2>Config</h2> </div> <div class="configurable-options"> <%= form_tag(admin_configurable_path, :method => :put) do -%> <%- @keys.each do |key| -%> <%- options = Configurable.defaults[key] -%> <div class="configurable"> <%= label_tag key, options[:name] %> <%- if options[:type] == 'boolean' %> <%= hidden_field_tag key, "0" %> <%= check_box_tag key, "1", Configurable.send(key) %> <%- elsif options[:type] == 'password' -%> <%= password_field_tag key, Configurable.send(key) %> <%- elsif options[:type] == 'text' -%> <%= text_area_tag key, Configurable.send(key) %> <%- elsif options[:type] == 'list' -%> <%= text_area_tag key, Configurable.serialized_value(key) -%> <%- else -%> <%= text_field_tag key, Configurable.send(key) %> <%- end -%> </div> <%- end -%> <%= submit_tag 'Save' %> <%- end -%> </div> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
configurable_engine-1.0.0 | app/views/admin/configurables/show.html.erb |
configurable_engine-0.5.0 | app/views/admin/configurables/show.html.erb |