Sha256: 34f1426a8c7c53e732f5cccc0cf5f83b42e26198f263e7cbc8a153f2c9e630bc
Contents?: true
Size: 892 Bytes
Versions: 1
Compression:
Stored size: 892 Bytes
Contents
<h2>Config</h2> <%= form_tag(admin_configurable_path, :method => :put) do -%> <%- Configurable.defaults.each do |key, options| -%> <div class="configurable"> <%= label_tag key, options[:name] %> <%- if options[:type] == 'boolean' %> <%= hidden_field_tag key, "0", Configurable.send(key) %> <%= 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.send(key).collect{ |a| a.join(",")}.join("\n") %> <%- else -%> <%= text_field_tag key, Configurable.send(key) %> <%- end -%> </div> <%- end -%> <%= submit_tag 'Save' %> <%- end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
configurable_engine-0.2.4 | app/views/admin/configurables/show.html.erb |