Commit 4ba26988 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Remove selectbox from abuse form. Added pagination in admin area

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 7a9d432c
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
.form-group .form-group
= f.label :user_id, class: 'control-label' = f.label :user_id, class: 'control-label'
.col-sm-10 .col-sm-10
= users_select_tag("abuse_reports[user_id]", placeholder: 'Select user to report abuse', - name = "#{@abuse_report.user.name} (@#{@abuse_report.user.username})"
class: 'custom-form-control js-select2', selected: @abuse_report.user_id, scope: :all) = text_field_tag :user_name, name, class: "form-control", readonly: true
.form-group .form-group
= f.label :message, class: 'control-label' = f.label :message, class: 'control-label'
.col-sm-10 .col-sm-10
...@@ -24,6 +24,3 @@ ...@@ -24,6 +24,3 @@
.form-actions .form-actions
= f.submit "Send report", class: "btn btn-create" = f.submit "Send report", class: "btn btn-create"
:coffeescript
new UsersSelect()
...@@ -12,5 +12,6 @@ ...@@ -12,5 +12,6 @@
%th %th
%th %th
= render @abuse_reports = render @abuse_reports
= paginate @abuse_reports
- else - else
%h4 There are no abuse reports %h4 There are no abuse reports
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment