Show More
Commit Description:
fix various bug
Commit Description:
fix various bug
References:
File last commit:
Show/Diff file:
Action:
app/views/user_admin/random_all_passwords.html.haml
| 39 lines
| 861 B
| text/x-haml
| HamlLexer
|
|
|
r200 | %h1 Random user passwords | ||
|
|
r340 | - if @changed | ||
|
|
r200 | %p | ||
| %b Done! | ||||
| Here's a new password list. | ||||
| Go back to | ||||
| = (link_to '[user list]', :action => 'index') + '.' | ||||
| %br/ | ||||
| %table | ||||
| %tr | ||||
| %th Login | ||||
| %th Fullname | ||||
| %th Password | ||||
|
|
r340 | - for u in @non_admin_users | ||
|
|
r200 | %tr | ||
| %td= u.login | ||||
| %td= u.full_name | ||||
| %td | ||||
| %tt= u.password | ||||
|
|
r340 | - else | ||
| - if @prefix!='' | ||||
|
|
r200 | Current prefix: | ||
| = @prefix | ||||
|
|
r340 | = form_tag((url_for :action => 'random_all_passwords'), :method => 'get') do | ||
|
|
r200 | Change prefix | ||
|
|
r340 | = text_field_tag 'prefix' | ||
| = submit_tag 'Change' | ||||
|
|
r200 | |||
| This will change passwords of the following users. | ||||
| %ul | ||||
|
|
r340 | - for u in @non_admin_users | ||
|
|
r200 | %li= u.login | ||
|
|
r340 | = form_tag((url_for :action => 'random_all_passwords'), :method => 'post') do | ||
| = hidden_field_tag 'prefix', @prefix | ||||
|
|
r200 | Are you sure? | ||
|
|
r340 | = submit_tag 'Go ahead' | ||
