Support source fetching and translated tags while editing posts

(manual only)
This commit is contained in:
Toks
2014-06-07 14:10:02 -04:00
parent f6eb27d3c8
commit 9d47d7f7dd
4 changed files with 40 additions and 3 deletions

View File

@@ -4,6 +4,8 @@
</div>
<% end %>
<%= render "sources/info_for_post" %>
<%= form_for(post, :html => {:class => "simple_form", :id => "form"}) do |f| %>
<%= hidden_field_tag :tags_query, params[:tags] %>
<%= hidden_field_tag :pool_id, params[:pool_id] %>

View File

@@ -0,0 +1,14 @@
<!--
- source
-->
<div id="source-info">
<p><%= link_to "Fetch source data", source_path(:format => "json"), :id => "fetch-data-manual" %></p>
<p><%= content_tag "span", "Loading source data...", :id => "loading-data", :style => "display: none;" %></p>
<ul>
<li><strong>Artist</strong>: <span id="source-artist"></span></li>
<li><strong>Tags</strong>: <span id="source-tags"></span></li>
<li><strong>Record</strong>: <span id="source-record"></span></li>
</ul>
</div>