Commit 6b958d38c4568b6b514009881f2a4ed33212638e
1 parent
358d87c7
Exists in
master
and in
22 other branches
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 | 11 | |
| 12 | 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 | 21 | <% button_bar do %> |
| 17 | 22 | <%= submit_button :save, _('Save') %> | ... | ... |