Remove single alias/implication requests.
* Remove the single alias and implication request forms. From now on, bulk update requests are the only way to request aliases or implications. * Remove the forum topic ID field from the bulk update request form. Instead, to attach a BUR to an existing topic you go to the topic then you click "Request alias/implication" at the top of the page. * Update the bulk update request form to give better examples for the script format and to explain the difference between aliases and implications.
This commit is contained in:
@@ -1,23 +1,25 @@
|
||||
<%= simple_form_for(@bulk_update_request) do |f| %>
|
||||
<%= error_messages_for("bulk_update_request") %>
|
||||
|
||||
<% if @bulk_update_request.new_record? %>
|
||||
<%= f.input :title, :as => :string %>
|
||||
<% end %>
|
||||
<p>
|
||||
Request aliases or implications using the format shown below. An alias makes the first tag a
|
||||
synonym for the second tag. An implication makes the first tag automatically add the second tag.
|
||||
A mass update replaces the first tag with the second tag without making it a permanent alias.
|
||||
</p>
|
||||
|
||||
<div class="input">
|
||||
<label class="text optional" for="bulk_update_request_script">Script</label>
|
||||
<%= text_area :bulk_update_request, :script, :size => "50x10" %>
|
||||
<p><a href="#" id="script-help-link">Help</a></p>
|
||||
<ul class="hint" id="script-help" title="Bulk Update Request Help">
|
||||
<li>unalias aaa -> bbb</li>
|
||||
<li>unimply aaa -> bbb</li>
|
||||
<li>alias aaa -> bbb</li>
|
||||
<li>imply aaa -> bbb</li>
|
||||
<li>update aaa -> bbb</li>
|
||||
<li>category tag_name -> category_name</li>
|
||||
</ul>
|
||||
</div>
|
||||
<p>
|
||||
<% if @bulk_update_request.new_record? && @bulk_update_request.forum_topic.present? %>
|
||||
This request will be attached to
|
||||
<%= link_to "topic ##{@bulk_update_request.forum_topic_id}: #{@bulk_update_request.forum_topic.title}" %>.
|
||||
<% elsif @bulk_update_request.new_record? && @bulk_update_request.forum_topic.blank? %>
|
||||
This request will create a new forum topic. To attach this request to an existing topic, find
|
||||
the forum topic and click "Request alias/implication" at the top of the page.
|
||||
|
||||
<%= f.input :title, label: "Forum Title", as: :string %>
|
||||
<% end %>
|
||||
</p>
|
||||
|
||||
<%= f.input :script, label: "Request", as: :text, placeholder: bur_script_example, input_html: { size: "50x15" } %>
|
||||
|
||||
<% if @bulk_update_request.new_record? %>
|
||||
<div class="input">
|
||||
@@ -35,25 +37,11 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% if @bulk_update_request.new_record? %>
|
||||
<%= f.input :forum_topic_id, :hint => " (optional)" %>
|
||||
<% elsif @bulk_update_request.persisted? && CurrentUser.is_admin? %>
|
||||
<% if @bulk_update_request.persisted? && CurrentUser.is_admin? %>
|
||||
<%= f.input :forum_topic_id %>
|
||||
<%= f.input :forum_post_id %>
|
||||
<% end %>
|
||||
|
||||
<%= f.button :submit, :value => "Submit" %>
|
||||
<%= f.submit value: "Submit" %>
|
||||
<%= dtext_preview_button "bulk_update_request", "reason" %>
|
||||
<% end %>
|
||||
|
||||
<%= content_for(:html_header) do %>
|
||||
<script>
|
||||
$(function() {
|
||||
$("#script-help").hide();
|
||||
$("#script-help-link").click(function() {
|
||||
$("#script-help").dialog({width: "30em"});
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<% end %>
|
||||
@@ -1,5 +1,5 @@
|
||||
<div id="c-bulk-update-requests">
|
||||
<div id="a-new">
|
||||
<div id="a-new" class="fixed-width-container">
|
||||
<h1>New Bulk Update Request</h1>
|
||||
|
||||
<%= render "form" %>
|
||||
|
||||
@@ -4,10 +4,13 @@
|
||||
|
||||
<% if CurrentUser.is_member? %>
|
||||
<%= subnav_link_to "New", new_forum_topic_path %>
|
||||
<%= subnav_link_to "Request alias", new_tag_alias_request_path %>
|
||||
<%= subnav_link_to "Request implication", new_tag_implication_request_path %>
|
||||
<%= subnav_link_to "Request BUR", new_bulk_update_request_path %>
|
||||
<%= subnav_link_to "Mark all as read", mark_all_as_read_forum_topics_path, :method => :post, :"data-shortcut" => "shift+r" %>
|
||||
|
||||
<% if @forum_topic %>
|
||||
<%= subnav_link_to "Request alias/implication", new_bulk_update_request_path(bulk_update_request: { forum_topic_id: @forum_topic.id }) %>
|
||||
<% else %>
|
||||
<%= subnav_link_to "Request alias/implication", new_bulk_update_request_path %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<%= subnav_link_to "Search", search_forum_posts_path %>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<% content_for(:secondary_links) do %>
|
||||
<%= subnav_link_to "Listing", tag_aliases_path %>
|
||||
<%= subnav_link_to "MetaSearch", meta_searches_tags_path %>
|
||||
<%= subnav_link_to "Request alias", new_tag_alias_request_path %>
|
||||
<%= subnav_link_to "Request bulk update", new_bulk_update_request_path %>
|
||||
<%= subnav_link_to "Request alias", new_bulk_update_request_path %>
|
||||
<%= subnav_link_to "Help", wiki_pages_path(:title => "help:tag_aliases") %>
|
||||
<% end %>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<% content_for(:secondary_links) do %>
|
||||
<%= subnav_link_to "Listing", tag_implications_path %>
|
||||
<%= subnav_link_to "MetaSearch", meta_searches_tags_path %>
|
||||
<%= subnav_link_to "Request implication", new_tag_implication_request_path %>
|
||||
<%= subnav_link_to "Request bulk update", new_bulk_update_request_path %>
|
||||
<%= subnav_link_to "Request implication", new_bulk_update_request_path %>
|
||||
<%= subnav_link_to "Help", wiki_pages_path(:title => "help:tag_implications") %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user