improve tag edit error message

This commit is contained in:
byte[] 2019-11-24 21:21:11 -05:00
parent dd8ecd531c
commit 9ba679f3a5

View file

@ -1,9 +1,8 @@
- form_class = if @changeset.action, do: "", else: "hidden" - form_class = if @changeset.action, do: "", else: "hidden"
.js-tagsauce#image_tags_and_source .js-tagsauce#image_tags_and_source
= if can?(@conn, :update_metadata, @image) and !@conn.assigns.current_ban do .js-imageform class=form_class
= if can?(@conn, :update_metadata, @image) and !@conn.assigns.current_ban do
.js-imageform class=form_class
= form_for @changeset, Routes.image_tag_path(@conn, :update, @image), [id: "tags-form", method: "put", data: [remote: true]], fn f -> = form_for @changeset, Routes.image_tag_path(@conn, :update, @image), [id: "tags-form", method: "put", data: [remote: true]], fn f ->
= if @changeset.action do = if @changeset.action do
@ -43,9 +42,9 @@
button.button.js-tag-sauce-toggle data-click-toggle=".tagsauce, .js-imageform" data-click-focus=".js-taginput-plain:not(.hidden), .js-taginput-input" button.button.js-tag-sauce-toggle data-click-toggle=".tagsauce, .js-imageform" data-click-focus=".js-taginput-plain:not(.hidden), .js-taginput-input"
' Cancel ' Cancel
- else - else
p p
' You can't edit the tags on this image. ' You can't edit the tags on this image.
.tagsauce .tagsauce
.block .block