web/admin: always show group/user policy options and display disclaimer
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
677bcaadd7
commit
4daad4b514
File diff suppressed because it is too large
Load diff
|
@ -2254,6 +2254,10 @@ msgstr "Group"
|
|||
msgid "Group Property Mappings"
|
||||
msgstr "Group Property Mappings"
|
||||
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
msgid "Group mappings can only be checked if a user is already logged in when trying to access this source."
|
||||
msgstr "Group mappings can only be checked if a user is already logged in when trying to access this source."
|
||||
|
||||
#: src/pages/sources/ldap/LDAPSourceForm.ts
|
||||
msgid "Group membership field"
|
||||
msgstr "Group membership field"
|
||||
|
@ -3561,7 +3565,6 @@ msgstr "Please enter your password"
|
|||
msgid "Policies"
|
||||
msgstr "Policies"
|
||||
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
msgid "Policy"
|
||||
|
@ -5771,6 +5774,10 @@ msgstr "User fields"
|
|||
msgid "User interface"
|
||||
msgstr "User interface"
|
||||
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
msgid "User mappings can only be checked if a user is already logged in when trying to access this source."
|
||||
msgstr "User mappings can only be checked if a user is already logged in when trying to access this source."
|
||||
|
||||
#: src/pages/sources/oauth/OAuthSourceForm.ts
|
||||
#: src/pages/sources/plex/PlexSourceForm.ts
|
||||
msgid "User matching mode"
|
||||
|
|
|
@ -2213,6 +2213,10 @@ msgstr "Grupo"
|
|||
msgid "Group Property Mappings"
|
||||
msgstr "Asignaciones de propiedades de grupos"
|
||||
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
msgid "Group mappings can only be checked if a user is already logged in when trying to access this source."
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/sources/ldap/LDAPSourceForm.ts
|
||||
msgid "Group membership field"
|
||||
msgstr "Campo pertenencia a grupos"
|
||||
|
@ -3498,7 +3502,6 @@ msgstr "Por favor, introduzca su contraseña"
|
|||
msgid "Policies"
|
||||
msgstr "Políticas"
|
||||
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
msgid "Policy"
|
||||
|
@ -5650,6 +5653,10 @@ msgstr "Campos de usuario"
|
|||
msgid "User interface"
|
||||
msgstr "Interfaz de usuario"
|
||||
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
msgid "User mappings can only be checked if a user is already logged in when trying to access this source."
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/sources/oauth/OAuthSourceForm.ts
|
||||
#: src/pages/sources/plex/PlexSourceForm.ts
|
||||
msgid "User matching mode"
|
||||
|
|
|
@ -2238,6 +2238,10 @@ msgstr "Group"
|
|||
msgid "Group Property Mappings"
|
||||
msgstr "Mapping des propriétés de groupes"
|
||||
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
msgid "Group mappings can only be checked if a user is already logged in when trying to access this source."
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/sources/ldap/LDAPSourceForm.ts
|
||||
msgid "Group membership field"
|
||||
msgstr "Champ d'appartenance au groupe"
|
||||
|
@ -3534,7 +3538,6 @@ msgstr "Veuillez saisir votre mot de passe"
|
|||
msgid "Policies"
|
||||
msgstr "Politiques"
|
||||
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
msgid "Policy"
|
||||
|
@ -5710,6 +5713,10 @@ msgstr "Champs de l'utilisateur"
|
|||
msgid "User interface"
|
||||
msgstr "Interface utilisateur"
|
||||
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
msgid "User mappings can only be checked if a user is already logged in when trying to access this source."
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/sources/oauth/OAuthSourceForm.ts
|
||||
#: src/pages/sources/plex/PlexSourceForm.ts
|
||||
msgid "User matching mode"
|
||||
|
|
|
@ -2210,6 +2210,10 @@ msgstr "Grupa"
|
|||
msgid "Group Property Mappings"
|
||||
msgstr "Mapowanie właściwości grupy"
|
||||
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
msgid "Group mappings can only be checked if a user is already logged in when trying to access this source."
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/sources/ldap/LDAPSourceForm.ts
|
||||
msgid "Group membership field"
|
||||
msgstr "Pole członkostwa w grupie"
|
||||
|
@ -3495,7 +3499,6 @@ msgstr "Wprowadź hasło"
|
|||
msgid "Policies"
|
||||
msgstr "Zasady"
|
||||
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
msgid "Policy"
|
||||
|
@ -5647,6 +5650,10 @@ msgstr "Pola użytkownika"
|
|||
msgid "User interface"
|
||||
msgstr "Interfejs użytkownika"
|
||||
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
msgid "User mappings can only be checked if a user is already logged in when trying to access this source."
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/sources/oauth/OAuthSourceForm.ts
|
||||
#: src/pages/sources/plex/PlexSourceForm.ts
|
||||
msgid "User matching mode"
|
||||
|
|
|
@ -2246,6 +2246,10 @@ msgstr ""
|
|||
msgid "Group Property Mappings"
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
msgid "Group mappings can only be checked if a user is already logged in when trying to access this source."
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/sources/ldap/LDAPSourceForm.ts
|
||||
msgid "Group membership field"
|
||||
msgstr ""
|
||||
|
@ -3551,7 +3555,6 @@ msgstr ""
|
|||
msgid "Policies"
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
msgid "Policy"
|
||||
|
@ -5751,6 +5754,10 @@ msgstr ""
|
|||
msgid "User interface"
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
msgid "User mappings can only be checked if a user is already logged in when trying to access this source."
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/sources/oauth/OAuthSourceForm.ts
|
||||
#: src/pages/sources/plex/PlexSourceForm.ts
|
||||
msgid "User matching mode"
|
||||
|
|
|
@ -2213,6 +2213,10 @@ msgstr "Grup"
|
|||
msgid "Group Property Mappings"
|
||||
msgstr "Grup Özellik Eşlemeleri"
|
||||
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
msgid "Group mappings can only be checked if a user is already logged in when trying to access this source."
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/sources/ldap/LDAPSourceForm.ts
|
||||
msgid "Group membership field"
|
||||
msgstr "Grup üyelik alanı"
|
||||
|
@ -3500,7 +3504,6 @@ msgstr "Lütfen parolanızı girin"
|
|||
msgid "Policies"
|
||||
msgstr "İlkeler"
|
||||
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
msgid "Policy"
|
||||
|
@ -5652,6 +5655,10 @@ msgstr "Kullanıcı alanları"
|
|||
msgid "User interface"
|
||||
msgstr "Kullanıcı arayüzü"
|
||||
|
||||
#: src/pages/policies/PolicyBindingForm.ts
|
||||
msgid "User mappings can only be checked if a user is already logged in when trying to access this source."
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/sources/oauth/OAuthSourceForm.ts
|
||||
#: src/pages/sources/plex/PlexSourceForm.ts
|
||||
msgid "User matching mode"
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -185,7 +185,7 @@ export class BoundPoliciesList extends Table<PolicyBinding> {
|
|||
}
|
||||
|
||||
renderToolbar(): TemplateResult {
|
||||
return html` <ak-forms-modal size=${PFSize.Medium}>
|
||||
return html`<ak-forms-modal size=${PFSize.Medium}>
|
||||
<span slot="submit"> ${t`Create`} </span>
|
||||
<span slot="header"> ${t`Create Binding`} </span>
|
||||
<ak-policy-binding-form
|
||||
|
|
|
@ -119,14 +119,6 @@ export class PolicyBindingForm extends ModelForm<PolicyBinding, string> {
|
|||
}
|
||||
|
||||
renderModeSelector(): TemplateResult {
|
||||
if (this.policyOnly) {
|
||||
this.policyGroupUser = target.policy;
|
||||
return html` <div class="pf-c-toggle-group__item">
|
||||
<button class="pf-c-toggle-group__button pf-m-selected" type="button">
|
||||
<span class="pf-c-toggle-group__text">${t`Policy`}</span>
|
||||
</button>
|
||||
</div>`;
|
||||
}
|
||||
return html` <div class="pf-c-toggle-group__item">
|
||||
<button
|
||||
class="pf-c-toggle-group__button ${this.policyGroupUser === target.policy
|
||||
|
@ -225,6 +217,11 @@ export class PolicyBindingForm extends ModelForm<PolicyBinding, string> {
|
|||
html`<option>${t`Loading...`}</option>`,
|
||||
)}
|
||||
</select>
|
||||
${this.policyOnly
|
||||
? html`<p class="pf-c-form__helper-text">
|
||||
${t`Group mappings can only be checked if a user is already logged in when trying to access this source.`}
|
||||
</p>`
|
||||
: html``}
|
||||
</ak-form-element-horizontal>
|
||||
<ak-form-element-horizontal
|
||||
label=${t`User`}
|
||||
|
@ -253,6 +250,11 @@ export class PolicyBindingForm extends ModelForm<PolicyBinding, string> {
|
|||
html`<option>${t`Loading...`}</option>`,
|
||||
)}
|
||||
</select>
|
||||
${this.policyOnly
|
||||
? html`<p class="pf-c-form__helper-text">
|
||||
${t`User mappings can only be checked if a user is already logged in when trying to access this source.`}
|
||||
</p>`
|
||||
: html``}
|
||||
</ak-form-element-horizontal>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Reference in a new issue