eBooru/app/views/tickets/new.html.erb
Cinder f5aa020ad3
[Tickets] Add warnings to the comment report form (#588)
* [Tickets] Add warnings to the comment report form

* [Tickets] Add warnings to blip and forum reports

* Indent
2024-01-21 20:10:43 +01:00

51 lines
1.9 KiB
Plaintext

<div id="c-tickets">
<div id="a-new">
<%= custom_form_for(@ticket) do |f| %>
<% @found_item = true %>
<% if @ticket.qtype.nil? %>
<% @found_item = false %>
<div class="section">
To submit a ticket about a problematic comment, click "Report" on the comment itself.<br/>
To submit a ticket about a problematic forum post, click "Report" on the post itself.<br/>
To submit a ticket about a problematic pool, click "Report" on the pool page itself.<br/>
To submit a ticket about a problematic set, click "Report" on the set page itself.<br/>
To submit a ticket about a problematic user, click "Report" on the user's profile page.<br/>
To submit a ticket about a problematic private message, click "Report PM" above the PM itself.<br/>
To submit a username request, click "Request Username Change" on <a href='/user/home'>the user home page</a>.<br/>
</div>
<% else %>
<% if @ticket.content %>
<div class="section">
<%= render partial: "tickets/new_types/#{@ticket.qtype}" %>
</div>
<% else %>
<% @found_item = false %>
<div class="section">That <%= @ticket.model.name.underscore.tr("_", " ") %> does not exist.</div>
<% end %>
<% end %>
<% if @found_item %>
<%= f.hidden_field :disp_id %>
<%= f.hidden_field :qtype %>
<div class="section">
<span class="ticket-warning">
<strong>Note:</strong> Abuse of this system will lead to disciplinary action
</span>
<%= f.input :reason, as: :dtext, limit: Danbooru.config.ticket_max_size %>
</div>
<%= submit_tag "Submit Complaint" %>
<% end %>
<% end %>
</div>
</div>
<% render partial: "secondary_links" %>
<% content_for(:page_title) do %>
New Ticket
<% end %>