This commit is contained in:
r888888888
2014-06-16 17:29:27 -07:00
parent 7ea00d3ff6
commit 87ef2b8e0f
9 changed files with 51 additions and 14 deletions

View File

@@ -6,6 +6,7 @@
<thead>
<tr>
<th>Creator</th>
<th>Forum</th>
<th>Script</th>
<th>Status</th>
<th></th>
@@ -15,6 +16,7 @@
<% @bulk_update_requests.each do |request| %>
<tr id="request-<%= request.id %>">
<td><%= link_to_user(request.user) %></td>
<td><%= link_to(request.forum_topic_id, forum_topic_path(request.forum_topic_id)) %></td>
<td><%= request.script %></td>
<td><%= request.status %></td>
<td>

View File

@@ -4,19 +4,27 @@
<%= simple_form_for(@bulk_update_request) do |f| %>
<%= error_messages_for("bulk_update_request") %>
<pre>
Use the following format:
<%= f.input :title, :as => :string %>
<div class="input">
<label class="text optional" for="bulk_update_request_script">Script</label>
<pre class="hint">
Use the following format:
remove alias aaa -> bbb
remove implication aaa -> bbb
create alias aaa -> bbb
create implication aaa -> bbb
mass update aaa -> bbb
</pre>
</pre>
<%= text_area :bulk_update_request, :script, :size => "50x10" %>
</div>
<div class="input">
<%= dtext_field "bulk_update_request", "reason", :name => "Reason" %>
</div>
<%= f.input :script, :as => :text %>
<%= f.input :forum_topic_id %>
<%= f.button :submit, :value => "Submit" %>
<%= dtext_preview_button "bulk_update_request", "reason" %>
<% end %>
</div>

View File

@@ -7,6 +7,7 @@
<% else %>
<li><%= link_to "Request alias", new_tag_alias_request_path %></li>
<% end %>
<li><%= link_to "Request bulk update", new_bulk_update_request_path %></li>
<li><%= link_to "Help", wiki_pages_path(:title => "help:tag_aliases") %></li>
</menu>
<% end %>

View File

@@ -7,6 +7,7 @@
<% else %>
<li><%= link_to "Request implication", new_tag_implication_request_path %></li>
<% end %>
<li><%= link_to "Request bulk update", new_bulk_update_request_path %></li>
<li><%= link_to "Help", wiki_pages_path(:title => "help:tag_implications") %></li>
</menu>
<% end %>