scaffolds a tag list to mark tags as featured on the admin section
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
<div id="admin_menu">
|
||||
Admin links
|
||||
</div>
|
||||
<%= link_to t('admin.tags.index.title'), admin_tags_path %>
|
||||
</div>
|
||||
|
||||
18
app/views/admin/tags/index.html.erb
Normal file
18
app/views/admin/tags/index.html.erb
Normal file
@@ -0,0 +1,18 @@
|
||||
<div class="left">
|
||||
<h1><%= t("admin.tags.index.title") %></h1>
|
||||
|
||||
<ul>
|
||||
<% @tags.each do |tag| %>
|
||||
<li>
|
||||
<strong><%= tag.name %></strong>
|
||||
|
||||
<%= form_for(tag, url: admin_tag_path(tag), as: :tag) do |f| %>
|
||||
<!-- <%= f.check_box :featured %> -->
|
||||
<%= f.check_box :featured, label: false %>
|
||||
<%= t("admin.tags.index.mark_as_featured") %>
|
||||
<%= f.submit(class: "button radius tiny") %>
|
||||
<% end %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
Reference in New Issue
Block a user