Skip to content
Snippets Groups Projects
Commit 05ba3f1b authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Code standards try 2

parent d8fab34b
No related branches found
No related tags found
3 merge requests!297Feature/istwcms 5983 bulk account creation,!274Draft: ISTWCMS-5551: fixing office hours display,!260Feature/istwcms 5668 a5kulkar rename references to publications
...@@ -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_users as $user) { foreach ($submitted_users as $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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment