Show More
Commit Description:
default config
Commit Description:
default config
References:
File last commit:
Show/Diff file:
Action:
app/views/user_admin/new_list.html.haml
| 56 lines
| 2.1 KiB
| text/x-haml
| HamlLexer
|
r762 | .container-fluid | |||
.row | ||||
.col-md-6 | ||||
%h1 Adding list of users | ||||
r875 | .row.my-3 | |||
r762 | .col-md-6 | |||
r875 | = form_with url: create_from_list_user_admin_index_path do |f| | |||
.row.align-items-center.mb-3 | ||||
.col-auto | ||||
= f.submit 'Create following users',class: 'btn btn-success' | ||||
.col-auto | ||||
.form-check | ||||
= f.check_box :add_to_group, class: 'form-check-input' | ||||
= f.label :add_to_group, 'Also add these users to the following group', class: 'form-check-label' | ||||
.col-4 | ||||
= f.select "group_id", options_from_collection_for_select( Group.all, 'id','name',params[:group_name]), {}, class: 'select2 form-control' | ||||
.row.mb-3 | ||||
.col-12 | ||||
= f.text_area :user_list, value: nil, class: 'form-control', style: 'height: 30rem' | ||||
.col-md-6 | ||||
.card.card-default | ||||
.card-header | ||||
.card-title Info | ||||
.card-body | ||||
r762 | %ul | |||
%li | ||||
List of user information in this format: | ||||
%tt user_id,name(,passwd(,alias(,remark))) | ||||
%li | ||||
Note that | ||||
%tt passwd, alias | ||||
and | ||||
%tt remark | ||||
is optional. | ||||
%li | ||||
When | ||||
%tt passwd | ||||
or | ||||
%tt alias | ||||
is empty, the original value will be used instead. | ||||
%li | ||||
If the users with the same user_id already exists, existing information will be overwritten. | ||||
r798 | Example: | |||
%ol | ||||
%li | ||||
%pre user1,Somchai Jaidee | ||||
will create (or update) a user with login "user1" and setting the fullname to "Somchai Jaidee", also setting a random password. | ||||
%li | ||||
%pre user1,Somchai Jaidee, | ||||
will create (or update) a user with login "user1" and and setting the fullname "Somchai Jaidee". No change is made to the password unless this is a new user. If this is a new user, a random password will be generated. | ||||
r875 | :javascript | |||
$(document).on('import-map-loaded',(e) => { | ||||
$('.select2').select2() | ||||
}); | ||||
r762 | ||||