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:
Jens Langhammer 2022-02-23 23:31:03 +01:00
parent 677bcaadd7
commit 4daad4b514
12 changed files with 2464 additions and 3551 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2254,6 +2254,10 @@ msgstr "Group"
msgid "Group Property Mappings" msgid "Group Property Mappings"
msgstr "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 #: src/pages/sources/ldap/LDAPSourceForm.ts
msgid "Group membership field" msgid "Group membership field"
msgstr "Group membership field" msgstr "Group membership field"
@ -3561,7 +3565,6 @@ msgstr "Please enter your password"
msgid "Policies" msgid "Policies"
msgstr "Policies" msgstr "Policies"
#: src/pages/policies/PolicyBindingForm.ts
#: src/pages/policies/PolicyBindingForm.ts #: src/pages/policies/PolicyBindingForm.ts
#: src/pages/policies/PolicyBindingForm.ts #: src/pages/policies/PolicyBindingForm.ts
msgid "Policy" msgid "Policy"
@ -5771,6 +5774,10 @@ msgstr "User fields"
msgid "User interface" msgid "User interface"
msgstr "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/oauth/OAuthSourceForm.ts
#: src/pages/sources/plex/PlexSourceForm.ts #: src/pages/sources/plex/PlexSourceForm.ts
msgid "User matching mode" msgid "User matching mode"

View File

@ -2213,6 +2213,10 @@ msgstr "Grupo"
msgid "Group Property Mappings" msgid "Group Property Mappings"
msgstr "Asignaciones de propiedades de grupos" 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 #: src/pages/sources/ldap/LDAPSourceForm.ts
msgid "Group membership field" msgid "Group membership field"
msgstr "Campo pertenencia a grupos" msgstr "Campo pertenencia a grupos"
@ -3498,7 +3502,6 @@ msgstr "Por favor, introduzca su contraseña"
msgid "Policies" msgid "Policies"
msgstr "Políticas" msgstr "Políticas"
#: src/pages/policies/PolicyBindingForm.ts
#: src/pages/policies/PolicyBindingForm.ts #: src/pages/policies/PolicyBindingForm.ts
#: src/pages/policies/PolicyBindingForm.ts #: src/pages/policies/PolicyBindingForm.ts
msgid "Policy" msgid "Policy"
@ -5650,6 +5653,10 @@ msgstr "Campos de usuario"
msgid "User interface" msgid "User interface"
msgstr "Interfaz de usuario" 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/oauth/OAuthSourceForm.ts
#: src/pages/sources/plex/PlexSourceForm.ts #: src/pages/sources/plex/PlexSourceForm.ts
msgid "User matching mode" msgid "User matching mode"

View File

@ -2238,6 +2238,10 @@ msgstr "Group"
msgid "Group Property Mappings" msgid "Group Property Mappings"
msgstr "Mapping des propriétés de groupes" 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 #: src/pages/sources/ldap/LDAPSourceForm.ts
msgid "Group membership field" msgid "Group membership field"
msgstr "Champ d'appartenance au groupe" msgstr "Champ d'appartenance au groupe"
@ -3534,7 +3538,6 @@ msgstr "Veuillez saisir votre mot de passe"
msgid "Policies" msgid "Policies"
msgstr "Politiques" msgstr "Politiques"
#: src/pages/policies/PolicyBindingForm.ts
#: src/pages/policies/PolicyBindingForm.ts #: src/pages/policies/PolicyBindingForm.ts
#: src/pages/policies/PolicyBindingForm.ts #: src/pages/policies/PolicyBindingForm.ts
msgid "Policy" msgid "Policy"
@ -5710,6 +5713,10 @@ msgstr "Champs de l'utilisateur"
msgid "User interface" msgid "User interface"
msgstr "Interface utilisateur" 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/oauth/OAuthSourceForm.ts
#: src/pages/sources/plex/PlexSourceForm.ts #: src/pages/sources/plex/PlexSourceForm.ts
msgid "User matching mode" msgid "User matching mode"

View File

@ -2210,6 +2210,10 @@ msgstr "Grupa"
msgid "Group Property Mappings" msgid "Group Property Mappings"
msgstr "Mapowanie właściwości grupy" 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 #: src/pages/sources/ldap/LDAPSourceForm.ts
msgid "Group membership field" msgid "Group membership field"
msgstr "Pole członkostwa w grupie" msgstr "Pole członkostwa w grupie"
@ -3495,7 +3499,6 @@ msgstr "Wprowadź hasło"
msgid "Policies" msgid "Policies"
msgstr "Zasady" msgstr "Zasady"
#: src/pages/policies/PolicyBindingForm.ts
#: src/pages/policies/PolicyBindingForm.ts #: src/pages/policies/PolicyBindingForm.ts
#: src/pages/policies/PolicyBindingForm.ts #: src/pages/policies/PolicyBindingForm.ts
msgid "Policy" msgid "Policy"
@ -5647,6 +5650,10 @@ msgstr "Pola użytkownika"
msgid "User interface" msgid "User interface"
msgstr "Interfejs użytkownika" 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/oauth/OAuthSourceForm.ts
#: src/pages/sources/plex/PlexSourceForm.ts #: src/pages/sources/plex/PlexSourceForm.ts
msgid "User matching mode" msgid "User matching mode"

View File

@ -2246,6 +2246,10 @@ msgstr ""
msgid "Group Property Mappings" msgid "Group Property Mappings"
msgstr "" 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 #: src/pages/sources/ldap/LDAPSourceForm.ts
msgid "Group membership field" msgid "Group membership field"
msgstr "" msgstr ""
@ -3551,7 +3555,6 @@ msgstr ""
msgid "Policies" msgid "Policies"
msgstr "" msgstr ""
#: src/pages/policies/PolicyBindingForm.ts
#: src/pages/policies/PolicyBindingForm.ts #: src/pages/policies/PolicyBindingForm.ts
#: src/pages/policies/PolicyBindingForm.ts #: src/pages/policies/PolicyBindingForm.ts
msgid "Policy" msgid "Policy"
@ -5751,6 +5754,10 @@ msgstr ""
msgid "User interface" msgid "User interface"
msgstr "" 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/oauth/OAuthSourceForm.ts
#: src/pages/sources/plex/PlexSourceForm.ts #: src/pages/sources/plex/PlexSourceForm.ts
msgid "User matching mode" msgid "User matching mode"

View File

@ -2213,6 +2213,10 @@ msgstr "Grup"
msgid "Group Property Mappings" msgid "Group Property Mappings"
msgstr "Grup Özellik Eşlemeleri" 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 #: src/pages/sources/ldap/LDAPSourceForm.ts
msgid "Group membership field" msgid "Group membership field"
msgstr "Grup üyelik alanı" msgstr "Grup üyelik alanı"
@ -3500,7 +3504,6 @@ msgstr "Lütfen parolanızı girin"
msgid "Policies" msgid "Policies"
msgstr "İlkeler" msgstr "İlkeler"
#: src/pages/policies/PolicyBindingForm.ts
#: src/pages/policies/PolicyBindingForm.ts #: src/pages/policies/PolicyBindingForm.ts
#: src/pages/policies/PolicyBindingForm.ts #: src/pages/policies/PolicyBindingForm.ts
msgid "Policy" msgid "Policy"
@ -5652,6 +5655,10 @@ msgstr "Kullanıcı alanları"
msgid "User interface" msgid "User interface"
msgstr "Kullanıcı arayüzü" 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/oauth/OAuthSourceForm.ts
#: src/pages/sources/plex/PlexSourceForm.ts #: src/pages/sources/plex/PlexSourceForm.ts
msgid "User matching mode" 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

View File

@ -185,7 +185,7 @@ export class BoundPoliciesList extends Table<PolicyBinding> {
} }
renderToolbar(): TemplateResult { 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="submit"> ${t`Create`} </span>
<span slot="header"> ${t`Create Binding`} </span> <span slot="header"> ${t`Create Binding`} </span>
<ak-policy-binding-form <ak-policy-binding-form

View File

@ -119,14 +119,6 @@ export class PolicyBindingForm extends ModelForm<PolicyBinding, string> {
} }
renderModeSelector(): TemplateResult { 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"> return html` <div class="pf-c-toggle-group__item">
<button <button
class="pf-c-toggle-group__button ${this.policyGroupUser === target.policy 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>`, html`<option>${t`Loading...`}</option>`,
)} )}
</select> </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>
<ak-form-element-horizontal <ak-form-element-horizontal
label=${t`User`} label=${t`User`}
@ -253,6 +250,11 @@ export class PolicyBindingForm extends ModelForm<PolicyBinding, string> {
html`<option>${t`Loading...`}</option>`, html`<option>${t`Loading...`}</option>`,
)} )}
</select> </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> </ak-form-element-horizontal>
</div> </div>
</div> </div>