Add padding

This commit is contained in:
zandercymatics 2024-04-25 10:06:23 -06:00
parent 4fa777d671
commit 07ac2b8fa4
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 11 additions and 1 deletions

View file

@ -617,3 +617,7 @@ address.dja-address-contact-list {
.usa-button__small-text {
font-size: small;
}
.padding-left-0__important {
padding-left: 0px !important;
}

View file

@ -66,9 +66,15 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
{% endwith %}
{% endblock field_readonly %}
{% block help_text %}
<div class="help {% if field.is_readonly %}padding-left-0__important{% endif %}" {% if field.field.id_for_label %} id="{{ field.field.id_for_label }}_helptext"{% endif %}>
<div>{{ field.field.help_text|safe }}</div>
</div>
{% endblock help_text %}
{% block after_help_text %}
{% if field.field.name == "creator" %}
<div class="flex-container tablet:margin-top-1">
<div class="flex-container tablet:margin-top-2">
<label aria-label="Creator contact details"></label>
{% include "django/admin/includes/contact_detail_list.html" with user=original_object.creator no_title_top_padding=field.is_readonly user_verification_type=original_object.creator.get_verification_type_display%}
</div>