This commit is contained in:
Roland Gruber 2025-05-19 07:42:17 +02:00
parent 1aaf6574b5
commit c8734e860b
5 changed files with 4365 additions and 4108 deletions

View file

@ -58,7 +58,7 @@ class takUser extends baseModule {
// icon // icon
$return['icon'] = 'tak.png'; $return['icon'] = 'tak.png';
// alias name // alias name
$return["alias"] = _("TAK"); $return["alias"] = 'TAK';
// LDAP filter // LDAP filter
$return["ldap_filter"] = ['or' => "(objectClass=takUser)"]; $return["ldap_filter"] = ['or' => "(objectClass=takUser)"];
// RDN attribute // RDN attribute
@ -123,8 +123,8 @@ class takUser extends baseModule {
// profile options // profile options
$profileContainer = new htmlResponsiveRow(); $profileContainer = new htmlResponsiveRow();
$profileContainer->add(new htmlResponsiveInputField(_('Callsign'), 'takuser_takcallsign', null, 'takusercallsign')); $profileContainer->add(new htmlResponsiveInputField(_('Callsign'), 'takuser_takcallsign', null, 'takusercallsign'));
$profileContainer->add(new htmlResponsiveInputField(_('Team Role'), 'takuser_takrole', null, 'takuserrole')); $profileContainer->add(new htmlResponsiveInputField(_('Team role'), 'takuser_takrole', null, 'takuserrole'));
$profileContainer->add(new htmlResponsiveInputField(_('Team Color'), 'takuser_takcolor', null, 'takusercolor')); $profileContainer->add(new htmlResponsiveInputField(_('Team color'), 'takuser_takcolor', null, 'takusercolor'));
$return['profile_options'] = $profileContainer; $return['profile_options'] = $profileContainer;
// self-service field settings // self-service field settings
$return['selfServiceFieldSettings'] = [ $return['selfServiceFieldSettings'] = [
@ -139,10 +139,10 @@ class takUser extends baseModule {
* {@inheritDoc} * {@inheritDoc}
*/ */
public function load_Messages() { public function load_Messages() {
$this->messages['takcallsign'][0] = ['ERROR', _('Callsign'), _('Callsign contains invalid characters. Valid characters are: a-z, A-Z, 0-9 and .-_')]; $this->messages['takcallsign'][0] = ['ERROR', _('Callsign'), _('Callsign contains invalid characters. Valid characters are: a-z, A-Z, 0-9 and .-_.')];
$this->messages['takcallsign'][1] = ['ERROR', _('A TAK login with this callsign already exists. Please choose a different callsign.')]; $this->messages['takcallsign'][1] = ['ERROR', _('A TAK login with this callsign already exists. Please choose a different callsign.')];
$this->messages['takcallsign'][2] = ['ERROR', _('Callsign'), _('This field is required.')]; $this->messages['takcallsign'][2] = ['ERROR', _('Callsign'), _('This field is required.')];
$this->messages['takcallsign'][3] = ['ERROR', _('Account %s:') . ' takuser_takcallsign', _('Callsign contains invalid characters. Valid characters are: a-z, A-Z, 0-9 and .-_')]; $this->messages['takcallsign'][3] = ['ERROR', _('Account %s:') . ' takuser_takcallsign', _('Callsign contains invalid characters. Valid characters are: a-z, A-Z, 0-9 and .-_.')];
$this->messages['takrole'][0] = ['ERROR', _('Account %s:') . ' takuser_takrole', _('Please enter a valid option:') . ' ' . implode(', ', self::ROLE_TYPES)]; $this->messages['takrole'][0] = ['ERROR', _('Account %s:') . ' takuser_takrole', _('Please enter a valid option:') . ' ' . implode(', ', self::ROLE_TYPES)];
$this->messages['takcolor'][0] = ['ERROR', _('Account %s:') . ' takuser_takcolor', _('Please enter a valid option:') . ' ' . implode(', ', self::COLOR_TYPES)]; $this->messages['takcolor'][0] = ['ERROR', _('Account %s:') . ' takuser_takcolor', _('Please enter a valid option:') . ' ' . implode(', ', self::COLOR_TYPES)];
} }

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff