AzuraCast/config/forms/profile.php

123 lines
3.7 KiB
PHP
Raw Normal View History

2015-01-04 08:37:51 +01:00
<?php
/** @var \App\Environment $environment */
2021-07-08 22:03:54 +02:00
$locale_select = \App\Locale::SUPPORTED_LOCALES;
$locale_select = ['default' => __('Use Browser Default')] + $locale_select;
return [
2015-01-04 08:37:51 +01:00
'method' => 'post',
'groups' => [
'account_info' => [
'use_grid' => true,
'elements' => [
2015-01-04 08:37:51 +01:00
'name' => [
'text',
[
'label' => __('Name'),
'class' => 'half-width',
'form_group_class' => 'col-md-6',
2020-07-08 09:03:50 +02:00
],
],
'email' => [
'text',
[
'label' => __('E-mail Address'),
'class' => 'half-width',
'required' => true,
'autocomplete' => 'off',
'form_group_class' => 'col-md-6',
2020-07-08 09:03:50 +02:00
],
],
],
],
'reset_password' => [
'use_grid' => true,
'legend' => __('Reset Password'),
'description' => __('Leave these fields blank to continue using your current password.'),
'elements' => [
'password' => [
'password',
[
'label' => __('Current Password'),
'autocomplete' => 'off',
2019-05-09 00:23:26 +02:00
'form_group_class' => 'col-md-4',
2020-07-08 09:03:50 +02:00
],
],
'new_password' => [
'password',
[
'label' => __('New Password'),
'autocomplete' => 'new-password',
'class' => 'strength',
'confirm' => 'new_password_confirm',
2019-05-09 00:23:26 +02:00
'form_group_class' => 'col-md-4',
2020-07-08 09:03:50 +02:00
],
],
'new_password_confirm' => [
'password',
[
'label' => __('Confirm New Password'),
'autocomplete' => 'new-password',
2019-05-09 00:23:26 +02:00
'form_group_class' => 'col-md-4',
2020-07-08 09:03:50 +02:00
],
],
],
],
2015-01-04 08:37:51 +01:00
'customization' => [
'use_grid' => true,
'legend' => __('Customization'),
'elements' => [
'locale' => [
'radio',
[
'label' => __('Language'),
'options' => $locale_select,
'default' => 'default',
'form_group_class' => 'col-md-6',
2020-07-08 09:03:50 +02:00
],
],
'theme' => [
'radio',
[
'label' => __('Site Theme'),
'choices' => [
App\Customization::THEME_BROWSER => __('Prefer System Default'),
App\Customization::THEME_LIGHT => __('Light'),
App\Customization::THEME_DARK => __('Dark'),
],
2020-07-08 09:03:50 +02:00
'default' => App\Customization::DEFAULT_THEME,
'form_group_class' => 'col-md-6',
2020-07-08 09:03:50 +02:00
],
],
],
],
'submit' => [
'elements' => [
'submit' => [
'submit',
[
'type' => 'submit',
'label' => __('Save Changes'),
'class' => 'btn btn-lg btn-primary',
2020-07-08 09:03:50 +02:00
],
],
],
],
],
2018-09-11 06:03:22 +02:00
];