74 : StandardForm
75 {
76 $access = $this->rbac_system->checkAccess('write', $this->ref_id);
77
78 $form = $this->ui_factory->input()->container()->form()->standard(
79 $this->
ctrl->getFormAction($this->parentObject, $access ? $this->save_command : $this->show_command),
80 [
81 'apache_enable_auth' => $this->buildEnableAuthInput(),
82 'apache_enable_local' => $this->ui_field->checkbox($this->lng->txt('apache_enable_local'))
83 ->withValue((bool) ($this->values['apache_enable_local'] ?? true)),
84 'apache_enable_ldap' => $this->buildLdapEnableInput(),
85 'apache_auth_indicator_name' => $this->ui_field->text($this->lng->txt('apache_auth_indicator_name'))
86 ->withRequired(true)
87 ->withValue($this->values['apache_auth_indicator_name'] ?? ''),
88 'apache_auth_indicator_value' => $this->ui_field->text($this->lng->txt('apache_auth_indicator_value'))
89 ->withRequired(true)
90 ->withValue($this->values['apache_auth_indicator_value'] ?? ''),
91 'apache_auth_enable_override_login_page' => $this->buildAuthEnableOverrideLoginPageInput(),
92 'apache_auth_authenticate_on_login_page' => $this->ui_field->checkbox($this->lng->txt('apache_auth_authenticate_on_login_page'))
93 ->withValue((bool) ($this->values['apache_auth_authenticate_on_login_page'] ?? true)),
94 'apache_auth_username_config' => $this->ui_field->section([
95 'apache_auth_username_config_type' => $this->buildAuthUsernameConfigTypeInput()
96 ], $this->lng->txt('apache_auth_username_config')),
97 'apache_auth_security' => $this->ui_field->section([
98 'apache_auth_domains' => $this->ui_field->textarea(
99 $this->lng->txt('apache_auth_domains'),
100 $this->lng->txt('apache_auth_domains_description')
101 )->withValue($this->values['apache_auth_domains'] ?? '')
102 ], $this->lng->txt('apache_auth_security'))
103 ]
104 );
105
106 if (!$access) {
107 $form = $form->withSubmitLabel($this->
lng->txt(
'refresh'));
108 }
109
110 return $form;
111 }