add saved search category change ui
This commit is contained in:
25
app/views/saved_search_category_changes/new.html.erb
Normal file
25
app/views/saved_search_category_changes/new.html.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<div id="c-saved-searches">
|
||||
<div id="a-edit">
|
||||
<h1>Change Category</h1>
|
||||
|
||||
<%= form_tag(saved_search_category_change_path, :class => "simple_form") do %>
|
||||
<div class="input">
|
||||
<label for="old">Old Category</label>
|
||||
<%= text_field_tag "old", params[:old] %>
|
||||
</div>
|
||||
|
||||
<div class="input">
|
||||
<label for="new">New Category</label>
|
||||
<%= text_field_tag "new" %>
|
||||
</div>
|
||||
|
||||
<%= submit_tag %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "saved_searches/secondary_links" %>
|
||||
|
||||
<% content_for(:page_title) do %>
|
||||
Edit Category - <%= Danbooru.config.app_name %>
|
||||
<% end %>
|
||||
@@ -6,6 +6,7 @@
|
||||
<h2>
|
||||
<% if category.present? %>
|
||||
<%= link_to_if SavedSearch.posts_search_available?, category.tr("_", " "), posts_path(:tags => "search:#{category}") %>
|
||||
(<%= link_to "rename", new_saved_search_category_change_path(:old => category) %>)
|
||||
<% else %>
|
||||
<%= link_to_if SavedSearch.posts_search_available?, SavedSearch::UNCATEGORIZED_NAME, posts_path(:tags => "search:all") %>
|
||||
<% end %>
|
||||
@@ -13,8 +14,8 @@
|
||||
<table class="striped" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="90%">Tags</th>
|
||||
<th width="10%"></th>
|
||||
<th width="80%">Tags</th>
|
||||
<th width="20%"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user