From d79b3f4f3cf2cba9793d08ef5f4b6ed1285380a7 Mon Sep 17 00:00:00 2001 From: albert Date: Mon, 3 Oct 2011 15:06:45 -0400 Subject: [PATCH] added reltags/find artist/similar to post/edit page --- .../stylesheets/specific/related_tags.css.scss | 4 ++++ app/views/posts/partials/show/_edit.html.erb | 15 +++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/specific/related_tags.css.scss b/app/assets/stylesheets/specific/related_tags.css.scss index bb312d109..9d2f95317 100644 --- a/app/assets/stylesheets/specific/related_tags.css.scss +++ b/app/assets/stylesheets/specific/related_tags.css.scss @@ -5,6 +5,10 @@ div#related-tags { width: 100%; margin-bottom: 1em; + div.artist { + margin-bottom: 1em; + } + div.tag-column { max-width: 15em; margin-right: 2em; diff --git a/app/views/posts/partials/show/_edit.html.erb b/app/views/posts/partials/show/_edit.html.erb index 30904d25a..ef72ed4e2 100644 --- a/app/views/posts/partials/show/_edit.html.erb +++ b/app/views/posts/partials/show/_edit.html.erb @@ -48,13 +48,24 @@
<%= f.label :source %> <%= f.text_field :source %> + <%= button_tag "Similar", :id => "similar-button" %> + <%= button_tag "Artist", :id => "find-artist-button" %>
- <%= f.label :tag_string, "Tags" %> - <%= f.text_area :tag_string , :size => "50x3" %> +
+ <%= f.label :tag_string, "Tags" %> + <%= f.text_area :tag_string , :size => "50x3" %> +
+ + <%= button_tag "Related tags", :id => "related-tags-button" %> + <%= button_tag "Artists", :id => "related-artists-button" %> + <%= button_tag "Characters", :id => "related-characters-button" %> + <%= button_tag "Copyrights", :id => "related-copyrights-button" %>
+ +
<%= submit_tag "Submit" %>