Remove selectbox from abuse form. Added pagination in admin area

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-08-06 15:13:47 +02:00
parent 7a9d432cdb
commit 4ba2698810
No known key found for this signature in database
GPG Key ID: 161B5D6A44D3D88A
2 changed files with 3 additions and 5 deletions

View File

@ -11,8 +11,8 @@
.form-group
= f.label :user_id, class: 'control-label'
.col-sm-10
= users_select_tag("abuse_reports[user_id]", placeholder: 'Select user to report abuse',
class: 'custom-form-control js-select2', selected: @abuse_report.user_id, scope: :all)
- name = "#{@abuse_report.user.name} (@#{@abuse_report.user.username})"
= text_field_tag :user_name, name, class: "form-control", readonly: true
.form-group
= f.label :message, class: 'control-label'
.col-sm-10
@ -24,6 +24,3 @@
.form-actions
= f.submit "Send report", class: "btn btn-create"
:coffeescript
new UsersSelect()

View File

@ -12,5 +12,6 @@
%th
%th
= render @abuse_reports
= paginate @abuse_reports
- else
%h4 There are no abuse reports