Description:
- panel the main page - bootstrapize user_admin
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r577:41b47d07f81f - - 2 files changed: 25 inserted, 39 deleted

@@ -9,7 +9,10
9 .row
9 .row
10 .col-md-7
10 .col-md-7
11 - if GraderConfiguration.show_submitbox_to?(@user)
11 - if GraderConfiguration.show_submitbox_to?(@user)
12 - .submitbox
12 + .panel.panel-primary
13 + .panel-heading
14 + Submission
15 + .panel-body
13 = render :partial => 'submission_box'
16 = render :partial => 'submission_box'
14 - if GraderConfiguration.show_tasks_to?(@user)
17 - if GraderConfiguration.show_tasks_to?(@user)
15 - if not GraderConfiguration.multicontests?
18 - if not GraderConfiguration.multicontests?
@@ -43,14 +46,6
43 %ul.list-group
46 %ul.list-group
44 = render :partial => 'announcement', :collection => @announcements
47 = render :partial => 'announcement', :collection => @announcements
45
48
46 -
47 -
48 - %hr/
49 -
50 -
51 -
52 - %hr/
53 -
54 %script{:type => 'text/javascript'}
49 %script{:type => 'text/javascript'}
55 = "Announcement.refreshUrl = '#{url_for :controller => 'main', :action => 'announcements'}';"
50 = "Announcement.refreshUrl = '#{url_for :controller => 'main', :action => 'announcements'}';"
56 Announcement.registerRefreshEventTimer();
51 Announcement.registerRefreshEventTimer();
@@ -26,36 +26,26
26 .panel-title.panel-heading
26 .panel-title.panel-heading
27 Import from site management
27 Import from site management
28 .panel-body
28 .panel-body
29 - = form_tag( {method: 'post',multipart: true, action: 'import'}, {class: 'form-inline'}) do
29 + = form_tag({:action => 'import'}, :multipart => true,class: 'form form-inline') do
30 - .form-group
31 - = label_tag 'user_login', 'Login'
32 - = text_field 'user', 'login', :size => 10,class: 'form-control'
33 - .form-group
34 - = label_tag 'user_full_name', 'Full Name'
35 - = text_field 'user', 'full_name', :size => 10,class: 'form-control'
36 - .form-group
37 - = label_tag 'user_password', 'Password'
38 - = text_field 'user', 'password', :size => 10,class: 'form-control'
39 - .form-group
40 - = label_tag 'user_password_confirmation', 'Confirm'
41 - = text_field 'user', 'password_confirmation', :size => 10,class: 'form-control'
42 .form-group
30 .form-group
43 - = label_tag 'user_email', 'email'
31 + = label_tag :file, 'File:'
44 - = text_field 'user', 'email', :size => 10,class: 'form-control'
32 + .input-group
45 - =submit_tag "Create", class: 'btn btn-primary'
33 + %span.input-group-btn
34 + %span.btn.btn-default.btn-file
35 + Browse
36 + = file_field_tag 'file'
37 + = text_field_tag '' , nil, {readonly: true, class: 'form-control'}
38 + = submit_tag 'Submit', class: 'btn btn-default'
46
39
47 - .submitbox
40 +
48 - %b Import from site management
41 + %p
49 - = form_tag({:action => 'import'}, :multipart => true) do
42 + = link_to '+ New user', { :action => 'new' }, { class: 'btn btn-success '}
50 - File: #{file_field_tag 'file'} #{submit_tag 'Import'}
43 + = link_to '+ New list of users', { :action => 'new_list' }, { class: 'btn btn-success '}
51 - %br/
44 + = link_to 'View administrators',{ :action => 'admin'}, { class: 'btn btn-default '}
52 - %b What else:
45 + = link_to 'Random passwords',{ :action => 'random_all_passwords'}, { class: 'btn btn-default '}
53 - = link_to 'New user', {:action => 'new'}, { class: 'btn btn-default btn-sm'}
46 + = link_to 'View active users',{ :action => 'active'}, { class: 'btn btn-default '}
54 - = link_to 'New list of users',{ :action => 'new_list'}, { class: 'btn btn-default btn-sm'}
47 + = link_to 'Mass mailing',{ :action => 'mass_mailing'}, { class: 'btn btn-default '}
55 - = link_to 'View administrators',{ :action => 'admin'}, { class: 'btn btn-default btn-sm'}
48 +
56 - = link_to 'Random passwords',{ :action => 'random_all_passwords'}, { class: 'btn btn-default btn-sm'}
57 - = link_to 'View active users',{ :action => 'active'}, { class: 'btn btn-default btn-sm'}
58 - = link_to 'Mass mailing',{ :action => 'mass_mailing'}, { class: 'btn btn-default btn-sm'}
59 - if GraderConfiguration.multicontests?
49 - if GraderConfiguration.multicontests?
60 %br/
50 %br/
61 %b Multi-contest:
51 %b Multi-contest:
@@ -64,6 +54,7
64 - @contests.each do |contest|
54 - @contests.each do |contest|
65 = link_to "[#{contest.name}]", :action => 'contests', :id => contest.id
55 = link_to "[#{contest.name}]", :action => 'contests', :id => contest.id
66 = link_to "[no contest]", :action => 'contests', :id => 'none'
56 = link_to "[no contest]", :action => 'contests', :id => 'none'
57 +
67 Total #{@user_count} users |
58 Total #{@user_count} users |
68 - if !@paginated
59 - if !@paginated
69 Display all users.
60 Display all users.
@@ -105,5 +96,5
105 %td= link_to 'Edit', {:action => 'edit', :id => user}, class: 'btn btn-default btn-xs btn-block'
96 %td= link_to 'Edit', {:action => 'edit', :id => user}, class: 'btn btn-default btn-xs btn-block'
106 %td= link_to 'Destroy', { :action => 'destroy', :id => user }, :confirm => 'Are you sure?', :method => :post, class: 'btn btn-danger btn-xs btn-block'
97 %td= link_to 'Destroy', { :action => 'destroy', :id => user }, :confirm => 'Are you sure?', :method => :post, class: 'btn btn-danger btn-xs btn-block'
107 %br/
98 %br/
108 - = link_to '[New user]', :action => 'new'
99 + = link_to '+ New user', { :action => 'new' }, { class: 'btn btn-success '}
109 - = link_to '[New list of users]', :action => 'new_list'
100 + = link_to '+ New list of users', { :action => 'new_list' }, { class: 'btn btn-success '}
You need to be logged in to leave comments. Login now