ref: master
app/views/profile/report_abuse.html.erb
<%= form_for :abuse_report, :url => {:action => 'register_report'},
:html => {:onsubmit => "return send_request(this)", :id => 'report-abuse-form'} do |f| %>
<%= labelled_form_field('* ' + _('Report reasons'), f.text_area(:reason, :rows => 6, :cols => 60, :class => 'required')) %>
<%= hidden_field_tag(:content_type, params[:content_type]) %>
<%= hidden_field_tag(:content_id, params[:content_id]) %>
<% unless @user_is_admin %>
<%= render 'shared/captcha' %>
<% end %>
<%= submit_button(:send, _('Report profile'), :style => 'float: left; cursor: pointer;', :id => 'report-abuse-submit-button', :onclick => "jQuery('#form-submit-loading').show()") %>
<%= button(:cancel, _('Cancel'), {}, :style => 'float: left; padding-top: 0px; padding-bottom: 0px;', :onclick => 'noosfero.modal.close(); return false;')%>
<% end %>