@@ -24,8 +24,8 @@ class UwAddUsersForm extends FormBase {
...
@@ -24,8 +24,8 @@ class UwAddUsersForm extends FormBase {
// The list of users this form.
// The list of users this form.
$form['users']=[
$form['users']=[
'#title'=>t('WatIAM user ID(s) (maximum 8 characters per ID)'),
'#title'=>$this->t('WatIAM user ID(s) (maximum 8 characters per ID)'),
'#description'=>t('Enter a single WatIAM user ID, or multiple WatIAM user IDs, one per line.<br>You can use <a href="https://idm.uwaterloo.ca/search/" target="_blank">authenticated WatIAM search</a> if you don\'t know their user ID (will open a new window).'),
'#description'=>$this->t('Enter a single WatIAM user ID, or multiple WatIAM user IDs, one per line.<br>You can use <a href="https://idm.uwaterloo.ca/search/" target="_blank">authenticated WatIAM search</a> if you don\'t know their user ID (will open a new window).'),
'#type'=>'textarea',
'#type'=>'textarea',
'#required'=>TRUE,
'#required'=>TRUE,
];
];
...
@@ -52,6 +52,8 @@ class UwAddUsersForm extends FormBase {
...
@@ -52,6 +52,8 @@ class UwAddUsersForm extends FormBase {
// Step through each of the submitted users to create if needed/possible,
// Step through each of the submitted users to create if needed/possible,
// or show a message if not.
// or show a message if not.
foreach($submitted_usersas$user){
foreach($submitted_usersas$user){
// Let's be nice and remove whitespace.
$user=trim(user);
$this->messenger()->addStatus($this->t('Normally something would happen here...'));
$this->messenger()->addStatus($this->t('Normally something would happen here...'));
}
}
// Set the message that the users have been created.
// Set the message that the users have been created.