diff --git a/README.md b/README.md index 856eed6..d19bdd5 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ To style the web interface you are advised to use Sass. Here's an example scss f @extend .col-md-12; @extend .form-group; - textarea, input[type=text], input[type=password] { + textarea, select, input[type=text], input[type=password] { @extend .form-control; } } diff --git a/app/views/admin/configurables/show.html.erb b/app/views/admin/configurables/show.html.erb index aa55959..6b96b79 100644 --- a/app/views/admin/configurables/show.html.erb +++ b/app/views/admin/configurables/show.html.erb @@ -18,7 +18,7 @@ <%- elsif options[:type] == 'text' -%> <%= text_area_tag key, Configurable.send(key) %> <%- elsif options[:type] == 'list' -%> - <%= text_area_tag key, Configurable.serialized_value(key) -%> + <%= select_tag key, options_for_select(options[:default], Configurable.send(key)) -%> <%- else -%> <%= text_field_tag key, Configurable.send(key) %> <%- end -%>