posts: show ratings in tag edit dialog box.
* Show the rating buttons in the tag edit dialog box. * Fix the tag counter not showing up in the tag edit dialog box on the uploads page.
This commit is contained in:
@@ -104,7 +104,6 @@ Post.open_edit_dialog = function() {
|
|||||||
$("#post-edit-link").parent("li").addClass("active");
|
$("#post-edit-link").parent("li").addClass("active");
|
||||||
|
|
||||||
var $tag_string = $("#post_tag_string,#upload_tag_string");
|
var $tag_string = $("#post_tag_string,#upload_tag_string");
|
||||||
$("div.input").has($tag_string).prevAll().hide();
|
|
||||||
$("#open-edit-dialog").hide();
|
$("#open-edit-dialog").hide();
|
||||||
|
|
||||||
var dialog = $("<div/>").attr("id", "edit-dialog");
|
var dialog = $("<div/>").attr("id", "edit-dialog");
|
||||||
|
|||||||
@@ -80,8 +80,13 @@ table article.post-preview {
|
|||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#edit-dialog textarea {
|
#edit-dialog {
|
||||||
margin-bottom: 0.25em;
|
/* Hide everything but the rating and tags fields. */
|
||||||
|
.post_has_embedded_notes_fieldset, .post_lock_fieldset, .post_parent_id,
|
||||||
|
.post_source, #filedropzone, .upload_as_pending, .upload_source_container,
|
||||||
|
.upload_parent_id, .upload_artist_commentary_container {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-preview {
|
.post-preview {
|
||||||
|
|||||||
@@ -21,13 +21,13 @@
|
|||||||
<%= f.input :rating, collection: [["Explicit", "e"], ["Questionable", "q"], ["Safe", "s"]], as: :radio_buttons, boolean_style: :inline %>
|
<%= f.input :rating, collection: [["Explicit", "e"], ["Questionable", "q"], ["Safe", "s"]], as: :radio_buttons, boolean_style: :inline %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<fieldset class="inline-fieldset">
|
<fieldset class="inline-fieldset post_has_embedded_notes_fieldset">
|
||||||
<label>Notes</label>
|
<label>Notes</label>
|
||||||
<%= f.input :has_embedded_notes, label: "Embed notes", as: :boolean, boolean_style: :inline, disabled: post.is_note_locked? %>
|
<%= f.input :has_embedded_notes, label: "Embed notes", as: :boolean, boolean_style: :inline, disabled: post.is_note_locked? %>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<% if policy(post).can_lock_rating? || policy(post).can_lock_notes? || policy(post).can_lock_status? %>
|
<% if policy(post).can_lock_rating? || policy(post).can_lock_notes? || policy(post).can_lock_status? %>
|
||||||
<fieldset class="inline-fieldset">
|
<fieldset class="inline-fieldset post_lock_fieldset">
|
||||||
<label>Lock</label>
|
<label>Lock</label>
|
||||||
|
|
||||||
<% if policy(post).can_lock_rating? %>
|
<% if policy(post).can_lock_rating? %>
|
||||||
|
|||||||
Reference in New Issue
Block a user