Commit b1bb022e2166d86d8fb5a341bf4f4d6979477e1e
1 parent
2849a9c0
Exists in
master
and in
11 other branches
proposals_discussion: choose color with colorpicker
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
views/cms/proposals_discussion_plugin/_topic.html.erb
1 | +<%= stylesheet_link_tag 'spectrum.css' %> | |
2 | +<%= javascript_include_tag "spectrum.js" %> | |
3 | +<%= javascript_include_tag "colorpicker-noosfero.js" %> | |
4 | + | |
1 | 5 | <%= required_fields_message %> |
2 | 6 | |
3 | 7 | <%= required f.text_field('name', :size => '64', :maxlength => 150) %> |
... | ... | @@ -5,5 +9,5 @@ |
5 | 9 | |
6 | 10 | <%= labelled_form_field(_('Description:'), text_area(:article, :body, :rows => 3, :cols => 64)) %> |
7 | 11 | |
8 | -<!-- FIXME: Use the colorpicker component from AI2915 --> | |
9 | -<%= labelled_form_field(_('Color:'), text_field(:article, :color)) %> | |
12 | +<%= labelled_colorpicker_field(_('Color:'), :article, :color) %> | |
13 | +<span id="color_preview" class = "color_marker" style="background-color: <%= @article.color %>" ></span> | ... | ... |