diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-20 13:59:15 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-20 13:59:15 +0100 |
| commit | ccf588845a6e595d1c9b2726a05eddd34bc92488 (patch) | |
| tree | 80ff56c17f5723ae8fff4f164bd0466df42ca348 /app/views | |
| parent | 37d4967780f5b3dd06bb05337149811d7d7f8788 (diff) | |
| download | operum-ccf588845a6e595d1c9b2726a05eddd34bc92488.tar.gz operum-ccf588845a6e595d1c9b2726a05eddd34bc92488.zip | |
tags: added a way to update tags
It's useful to just rename tags which have quite some references that
you don't want to nuke.
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/tags/_tag.html.erb | 1 | ||||
| -rw-r--r-- | app/views/tags/edit.html.erb | 9 | ||||
| -rw-r--r-- | app/views/tags/new.html.erb | 2 |
3 files changed, 11 insertions, 1 deletions
diff --git a/app/views/tags/_tag.html.erb b/app/views/tags/_tag.html.erb index 65c6d4e..0a82898 100644 --- a/app/views/tags/_tag.html.erb +++ b/app/views/tags/_tag.html.erb @@ -3,6 +3,7 @@ <%= tag.name %> </div> <div class="action"> + <%= link_to I18n.t('general.edit'), edit_tag_path(tag) %> | <%= link_to I18n.t('general.delete'), tag_path(tag), data: { "turbo-method": :delete } %> </div> </div> diff --git a/app/views/tags/edit.html.erb b/app/views/tags/edit.html.erb new file mode 100644 index 0000000..44214a3 --- /dev/null +++ b/app/views/tags/edit.html.erb @@ -0,0 +1,9 @@ +<div class="center-contents"> + <div></div> + <div id="tag-page"> + <h3><%= I18n.t('tags.update') %> <span>— <%= link_to I18n.t('general.back-to-list'), tags_path %></span></h3> + + <%= render "form", tag: @tag %> + </div> + <div></div> +</div> diff --git a/app/views/tags/new.html.erb b/app/views/tags/new.html.erb index 9d6e1a8..97cd410 100644 --- a/app/views/tags/new.html.erb +++ b/app/views/tags/new.html.erb @@ -1,6 +1,6 @@ <div class="center-contents"> <div></div> - <div id="tag-new"> + <div id="tag-page"> <h3><%= I18n.t('tags.new') %> <span>— <%= link_to I18n.t('general.back-to-list'), tags_path %></span></h3> <%= render "form", tag: @tag %> |
