Compare commits

..

5 Commits

Author SHA1 Message Date
Frédéric Péters d1fc279963 translation update
gitea/gadjo/pipeline/head This commit looks good Details
2023-03-01 13:50:45 +01:00
Frédéric Péters df611929bf general: add reveal checkbox to password fields (#74652) 2023-03-01 13:50:44 +01:00
Lauréline Guérin c59715e912
style: add colored tags (#74582)
gitea/gadjo/pipeline/head This commit looks good Details
2023-02-28 10:51:59 +01:00
Valentin Deniaud 45bac77a26 templates: use field.id_for_label in field title id attribute (#74526)
gitea/gadjo/pipeline/head This commit looks good Details
2023-02-28 10:09:50 +01:00
Valentin Deniaud bbcd17465f templates: avoid empty id attribute in widget (#74541)
gitea/gadjo/pipeline/head This commit looks good Details
2023-02-28 10:08:44 +01:00
2 changed files with 22 additions and 3 deletions

View File

@ -827,6 +827,23 @@ ul.objects-list li span.tag {
left: -1ex;
}
span.meta {
position: relative;
padding: 0 0.5ex;
&.meta-success {
color: #268c26;
}
&.meta-warning {
color: #eb7500;
}
&.meta-error {
color: #cf1726;
}
&.meta-disabled {
color: #555;
}
}
#sidepage {
position: absolute;
top: 0px;

View File

@ -4,9 +4,9 @@
django-{{ field|field_class_name }}
{% if field.errors %}widget-with-error{% endif %}
{% if field.field.required %}widget-required{% else %}widget-optional{% endif %}{% endblock %}"
id="{{field.id_for_label}}_p">
{% if field.id_for_label %}id="{{field.id_for_label}}_p"{% endif %}>
{% block widget-title %}
<div class="title" id="{{ field.name }}">
<div class="title" {% if field.id_for_label %}id="{{ field.id_for_label }}_title"{% endif %}>
{{ field.label_tag }}
{% if field.field.required %}
<span title="{% trans "This field is required." %}" class="required">*</span>
@ -16,7 +16,9 @@
</div>
{% endblock %}
{% block widget-content %}
<div class="content" aria-labelledby="{{ field.name }}" {% block widget-attrs %}{% endblock %}>
<div class="content"
{% if field.id_for_label %}aria-labelledby="{{ field.id_for_label }}_title"{% endif %}
{% block widget-attrs %}{% endblock %}>
{% block widget-error %}
{% if field.errors %}
<div class="error"><p>