1
0
mirror of https://github.com/danbee/my-images synced 2025-03-04 08:49:05 +00:00
my-images/app/views/images/_info.html.erb

15 lines
466 B
Plaintext

<div class="image-info">
<div class="image-tags" data-controller="tags">
<%= render "tags/tags", image: image, tags: image.tags %>
<div class="new-tag-form">
<%= form_tag user_image_tags_path(image),
method: :post,
data: { action: "tags#create" } do %>
<%= text_field_tag :tag, nil, data: { target: "tags.tag" } %>
<%= submit_tag "Add Tag", data: { disable_with: false } %>
<% end %>
</div>
</div>
</div>