Update category and tag
This commit is contained in:
1 parent
e0f7d92d7a
commit
2d8d079ba5
4 files changed
+25
-10
No files matched your search
@@ -27,7 +27,7 @@
|
||||
<div class="control-group">
|
||||
<label class="control-label muted"><%= t(:category) %></label>
|
||||
<div class="controls">
|
||||
<%= f.select :category_id, @categories.collect{|t| [ t.title, t.id ]} %>
|
||||
<%= select_category(f, @module_app) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -61,13 +61,7 @@
|
||||
<!-- Tag -->
|
||||
<div class="control-group">
|
||||
<label class="control-label muted"><%= t(:tags) %></label>
|
||||
<div class="controls" data-toggle="buttons-checkbox">
|
||||
<% @tags.each do |tag| %>
|
||||
<label class="checkbox inline btn <%= 'active' if @link.tags.include?(tag) %>">
|
||||
<%= check_box_tag 'web_link[tags][]', tag.id, @link.tags.include?(tag) %> <%= tag.name %>
|
||||
</label>
|
||||
<% end %>
|
||||
</div>
|
||||
<%= select_tag(f, @module_app) %>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user