Sha256: 3bd4ccaff943ce39b4463bd62fc2fafcc1a81e4a25fe9a03898a4d0518ba0e5a
Contents?: true
Size: 1.53 KB
Versions: 11
Compression:
Stored size: 1.53 KB
Contents
<% content_for :page_heading do %> <h2> <%= t('.manage_tags') %> </h2> <% end %> <div class='row'> <div class='col-md-4'> <%= form_for([:admin, @tag]) do |f| %> <% if @tag.errors.any? %> <ul> <% @tag.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> <% end %> <div class="form-group"> <%= f.text_field :display_name, class: 'form-control', placeholder: 'Name' %> </div> <div class="form-group"> <hr /> <%= link_to(t('.cancel'), action: 'index') %> <%= t('.or') %> <%= f.submit t('.save'), class: 'btn btn-success' %> </div> <% end %> </div> <div class='col-md-8'> <table class="table table-hover"> <thead> <tr class='noborder'> <th><%= t('.display_name') %></th> <th><%= t('.name') %></th> </tr> </thead> <% if @tags.empty? %> <tr> <td colspan="3"> <%= t('.no_tags') %> </td> </tr> <% end %> <% for tag in @tags %> <tr> <td> <%= link_to tag.display_name, edit_admin_tag_path(tag), class: 'edit' %> <%= button_to_edit tag %> <%= button_to_delete tag %> <%= link_to_permalink(tag, "#{tag.contents.size} #{t(".view")}".html_safe, nil, 'btn btn-success btn-xs') %> </td> <td><%= tag.name %></td> </tr> <% end %> <%= display_pagination(@tags, 3) %> </table> </div> </div>
Version data entries
11 entries across 11 versions & 1 rubygems