Commit 6b958d38c4568b6b514009881f2a4ed33212638e

Authored by Antonio Terceiro
1 parent 358d87c7

ActionItem937: better checkbox

Showing 1 changed file with 6 additions and 1 deletions   Show diff stats
app/views/cms/edit.rhtml
@@ -11,7 +11,12 @@ @@ -11,7 +11,12 @@
11 11
12 <%= render :partial => partial_for_class(@article.class), :locals => { :f => f } %> 12 <%= render :partial => partial_for_class(@article.class), :locals => { :f => f } %>
13 13
14 - <%= f.check_box(:highlighted) if environment.is_portal_community?(profile) %> 14 + <% if environment.is_portal_community?(profile) %>
  15 + <div>
  16 + <%= check_box(:article, :highlighted) %>
  17 + <label for="article_highlighted"><%= _('Highlight this article')%></label>
  18 + </div>
  19 + <% end %>
15 20
16 <% button_bar do %> 21 <% button_bar do %>
17 <%= submit_button :save, _('Save') %> 22 <%= submit_button :save, _('Save') %>