Support source fetching and translated tags while editing posts
(manual only)
This commit is contained in:
@@ -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] %>
|
||||
|
||||
14
app/views/sources/_info_for_post.html.erb
Normal file
14
app/views/sources/_info_for_post.html.erb
Normal 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>
|
||||
Reference in New Issue
Block a user