diff --git a/weblate/templates/bootstrap5/layout/radioselect_access.html b/weblate/templates/bootstrap5/layout/radioselect_access.html index 6c7b99916f66..f43944011971 100644 --- a/weblate/templates/bootstrap5/layout/radioselect_access.html +++ b/weblate/templates/bootstrap5/layout/radioselect_access.html @@ -19,68 +19,91 @@ {% for choice in field.field.choices %} {% with choice_str=choice.0|stringformat:"s" %}
+
+ + +
+ + {% if choice_str == "0" %} +

{% translate "Visible to everybody." %}

+

{% translate "Any authenticated user can contribute." %}

+ + {% if has_gitexport %} +

+ {% translate "VCS repository is accessible to everybody." %} + {% documentation_icon 'admin/optionals' 'git-exporter' %} +

+ {% endif %} + + {% elif choice_str == "1" %} +

{% translate "Visible to everybody." %}

+

{% translate "Only chosen users can contribute." %}

+ + {% if has_gitexport %} +

+ {% translate "Only chosen users can access VCS repository." %} + {% documentation_icon 'admin/optionals' 'git-exporter' %} +

+ {% endif %} + + {% elif choice_str == "100" %} +

{% translate "Visible only to chosen users." %}

+

{% translate "Only chosen users can contribute." %}

+ + {% if has_gitexport %} +

+ {% translate "Only chosen users can access VCS repository." %} + {% documentation_icon 'admin/optionals' 'git-exporter' %} +

+ {% endif %} + + {% elif choice_str == "200" %} +

{% translate "Permissions are not managed in Weblate." %}

+

- {% translate "Only chosen users can access VCS repository." %} {% documentation_icon 'admin/optionals' 'git-exporter' %} + + {% translate "Only use this if you know what you are doing, enabling it might revoke your access to this project." %} +

{% endif %} - {% elif choice_str == "200" %} -

{% translate "Permissions are not managed in Weblate." %}

-

- - {% translate "Only use this if you know what you are doing, enabling it might revoke your access to this project." %} - -

- {% endif %} - {% endwith %} - + +
+ + + + + {% endfor %} + + {% if "disabled" in flat_attrs %} +
+

+ {% translate "You do not have permission to change project access control." %} + {% if has_billing %} + {% translate "Check your billing status" %} + {% endif %} +

- {% endfor %} + {% endif %} + - {% if "disabled" in flat_attrs %} -
-

- {% translate "You do not have permission to change project access control." %} - {% if has_billing %} - {% translate "Check your billing status" %} - {% endif %} -

-
- {% endif %} - - diff --git a/weblate/templates/mail/style.css b/weblate/templates/mail/style.css index f47bfbdd66b0..7bb8e331a7e9 100644 --- a/weblate/templates/mail/style.css +++ b/weblate/templates/mail/style.css @@ -1,3 +1,40 @@ +/* Fix: make radio options fully clickable */ + +.radio-option { + display: block; + width: 100%; + padding: 10px 8px; + cursor: pointer; + border-radius: 6px; +} + +.radio-option:hover { + background-color: rgba(0, 0, 0, 0.05); +} + +.radio-main { + display: flex; + align-items: center; + gap: 10px; +} + +.radio-main input[type="radio"] { + margin: 0; + cursor: pointer; +} + +.radio-text { + font-size: 16px; + font-weight: 500; +} + +.radio-description { + margin-left: 28px; + margin-top: 4px; + font-size: 14px; + color: #666; +} + button, hr, input {