Sha256: d3827c2420b6029c69c1bb22a70cf9187ca7bb56c4e46ef16094b941e9cdd4eb

Contents?: true

Size: 555 Bytes

Versions: 7

Compression:

Stored size: 555 Bytes

Contents

<%= form_tag admin_post_tags_path(post), as: 'Post.Tags.Form' do |f| %>

  <h2>Change tags</h2>

  <%= text_field_tag 'tag[name]', nil, id: 'TagName', placeholder: 'Create a new tag', autocomplete: :off %>
  <p class='message'>A new tag will be created if no match can be found. The tag it finds will be toggled.</p>
<% end %>

<ul class='tags' as='Post.Tags.List'>
  <% if tags.any? %>
    <%= render partial: 'admin/posts/tags/tag', collection: tags, locals: { post: post } %>
  <% else %>
    <li class='empty'>No tag was found.</li>
  <% end %>
</ul>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ecrire-0.31.2 lib/ecrire/app/views/admin/posts/tags/_tags.html.erb
ecrire-0.31.1 lib/ecrire/app/views/admin/posts/tags/_tags.html.erb
ecrire-0.31.0 lib/ecrire/app/views/admin/posts/tags/_tags.html.erb
ecrire-0.30.3 lib/ecrire/app/views/admin/posts/tags/_tags.html.erb
ecrire-0.30.2 lib/ecrire/app/views/admin/posts/tags/_tags.html.erb
ecrire-0.30.1 lib/ecrire/app/views/admin/posts/tags/_tags.html.erb
ecrire-0.30.0 lib/ecrire/app/views/admin/posts/tags/_tags.html.erb