4. if set to "required" modern browser will check that this input box is filled when submitting the form,
4. Should be set to the translation of "Required" to mark this field as required,
5. if set to "autofocus" modern browser will put the cursur into this box once the page is loaded,
6. if set, it will be used for the input type, default is `text` (possible types: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#%3Cinput%3E_types).
@ -122,7 +122,7 @@ Field parameter:
1. Label for the field,
2. Value for the field, e.g. the old password,
3. Help text for the input field,
4. if set to "required" modern browser will check that this field is filled out,
4. Should be set to the translation of "Required" to mark this field as required,
5. if set to "autofocus" modern browser will put the cursor automatically into this input field.
### field_radio.tpl
@ -176,5 +176,5 @@ Field parameter:
0. Name of the input field,
1. Label for the input box,
2. Current text for the box,
3. Help text for the input box.
4. if set to "required" modern browser will check that this input box is filled when submitting the form,
3. Help text for the input box,
4. Should be set to the translation of "Required" to mark this field as required.
'domain'=>["domain[$id]",DI::l10n()->t('Blocked server domain pattern'),$b['domain'],'','required','',''],
'reason'=>["reason[$id]",DI::l10n()->t("Reason for the block"),$b['reason'],'','required','',''],
'domain'=>["domain[$id]",DI::l10n()->t('Blocked server domain pattern'),$b['domain'],'',DI::l10n()->t('Required'),'',''],
'reason'=>["reason[$id]",DI::l10n()->t("Reason for the block"),$b['reason'],'',DI::l10n()->t('Required'),'',''],
'delete'=>["delete[$id]",DI::l10n()->t("Delete server domain pattern").' ('.$b['domain'].')',false,DI::l10n()->t("Check to delete this entry from the blocklist")]
'$addtitle'=>DI::l10n()->t('Add new entry to block list'),
'$newdomain'=>['newentry_domain',DI::l10n()->t('Server Domain Pattern'),'',DI::l10n()->t('The domain pattern of the new server to add to the block list. Do not include the protocol.'),'required','',''],
'$newreason'=>['newentry_reason',DI::l10n()->t('Block reason'),'',DI::l10n()->t('The reason why you blocked this server domain pattern.'),'required','',''],
'$newdomain'=>['newentry_domain',DI::l10n()->t('Server Domain Pattern'),'',DI::l10n()->t('The domain pattern of the new server to add to the block list. Do not include the protocol.'),DI::l10n()->t('Required'),'',''],
'$newreason'=>['newentry_reason',DI::l10n()->t('Block reason'),'',DI::l10n()->t('The reason why you blocked this server domain pattern.'),DI::l10n()->t('Required'),'',''],
'$submit'=>DI::l10n()->t('Add Entry'),
'$savechanges'=>DI::l10n()->t('Save changes to the blocklist'),
'$currenttitle'=>DI::l10n()->t('Current Entries in the Blocklist'),
'$intro1'=>DI::l10n()->t('On this page you can delete an item from your node. If the item is a top level posting, the entire thread will be deleted.'),
'$intro2'=>DI::l10n()->t('You need to know the GUID of the item. You can find it e.g. by looking at the display URL. The last part of http://example.com/display/123456 is the GUID, here 123456.'),
'$deleteitemguid'=>['deleteitemguid',DI::l10n()->t("GUID"),'',DI::l10n()->t("The GUID of the item you want to delete."),'required','autofocus'],
'$deleteitemguid'=>['deleteitemguid',DI::l10n()->t("GUID"),'',DI::l10n()->t("The GUID of the item you want to delete."),DI::l10n()->t('Required'),'autofocus'],
'$permonlybox'=>['permonlybox',DI::l10n()->t('Note for the admin'),'',DI::l10n()->t('Leave a message for the admin, why you want to join this node'),'required'],
'$permonlybox'=>['permonlybox',DI::l10n()->t('Note for the admin'),'',DI::l10n()->t('Leave a message for the admin, why you want to join this node'),DI::l10n()->t('Required')],
'$invite_desc'=>DI::l10n()->t('Membership on this site is by invitation only.'),
'$recovery_message'=>DI::l10n()->t('Don’t have your phone? <a href="%s">Enter a two-factor recovery code</a>','2fa/recovery'),
'$verify_code'=>['verify_code',DI::l10n()->t('Please enter a code from your authentication app'),'','','required','autofocus placeholder="000000"','tel'],
'$verify_code'=>['verify_code',DI::l10n()->t('Please enter a code from your authentication app'),'','',DI::l10n()->t('Required'),'autofocus placeholder="000000"','tel'],
'$verify_label'=>DI::l10n()->t('Verify code and complete login'),
@ -125,7 +125,7 @@ class Index extends BaseSettings
'$app_specific_passwords_message'=>DI::l10n()->t('<p>These randomly generated passwords allow you to authenticate on apps not supporting two-factor authentication.</p>'),
'$action_title'=>DI::l10n()->t('Actions'),
'$password'=>['password',DI::l10n()->t('Current password:'),'',DI::l10n()->t('You need to provide your current password to change two-factor authentication settings.'),'required','autofocus'],
'$password'=>['password',DI::l10n()->t('Current password:'),'',DI::l10n()->t('You need to provide your current password to change two-factor authentication settings.'),DI::l10n()->t('Required'),'autofocus'],
@ -138,7 +138,7 @@ class Verify extends BaseSettings
'$holder'=>$holder,
'$secret'=>$secret,
'$verify_code'=>['verify_code',DI::l10n()->t('Please enter a code from your authentication app'),'','','required','autofocus placeholder="000000"'],
'$verify_code'=>['verify_code',DI::l10n()->t('Please enter a code from your authentication app'),'','',DI::l10n()->t('Required'),'autofocus placeholder="000000"'],
'$verify_label'=>DI::l10n()->t('Verify code and enable two-factor authentication'),