* 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.
48 lines
1.9 KiB
Plaintext
48 lines
1.9 KiB
Plaintext
<%= simple_form_for(@bulk_update_request) do |f| %>
|
|
<%= error_messages_for("bulk_update_request") %>
|
|
|
|
<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>
|
|
|
|
<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">
|
|
<%= dtext_field "bulk_update_request", "reason", :name => "Reason" %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if @bulk_update_request.errors.any? %>
|
|
<div class="input">
|
|
<label class="checkbox optional" for="bulk_update_request_skip_secondary_validations">
|
|
<%= check_box "bulk_update_request", "skip_secondary_validations" %>
|
|
Skip validations
|
|
</label>
|
|
<p class="hint">You can ignore the wiki page and minimum count requirements</p>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if @bulk_update_request.persisted? && CurrentUser.is_admin? %>
|
|
<%= f.input :forum_topic_id %>
|
|
<%= f.input :forum_post_id %>
|
|
<% end %>
|
|
|
|
<%= f.submit value: "Submit" %>
|
|
<%= dtext_preview_button "bulk_update_request", "reason" %>
|
|
<% end %>
|