<div id="c-tag-aliases">
  <div id="a-request-new">
    <h1>Tag Alias Request</h1>

    <%= error_messages_for :tag_alias_request %>

    <p>You can request a new tag alias be created. This will create a corresponding forum topic for community review.</p>

    <%= form_tag(tag_alias_request_path, :class => "simple_form") do %>
      <div class="input">
        <label>From</label>
        <%= text_field "tag_alias_request", "antecedent_name", :data => { :autocomplete => "tag" } %>
      </div>

      <div class="input">
        <label>To</label>
        <%= text_field "tag_alias_request", "consequent_name", :data => { :autocomplete => "tag" } %>
      </div>

      <div class="input">
        <%= dtext_field "tag_alias_request", "reason", :name => "Reason" %>
      </div>

      <div class="input">
        <label class="checkbox optional" for="tag_alias_request_skip_secondary_validations">
          <%= check_box "tag_alias_request", "skip_secondary_validations" %>
          Skip validations
        </label>
        <p class="hint">You can ignore the wiki page and minimum count requirements</p>
      </div>

      <div class="input">
        <%= submit_tag "Submit", :data => { :disable_with => "Submitting..." } %>
        <%= dtext_preview_button "tag_alias_request", "reason" %>
      </div>
    <% end %>

    <%= render "tag_aliases/secondary_links" %>
  </div>
</div>

<% content_for(:page_title) do %>
  Tag Alias Request - <%= Danbooru.config.app_name %>
<% end %>
