Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions core/static/core/scss/base/general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ input[readonly] {
background: gainsboro;
}

input[readonly]:focus {
outline: none;
border: none;
background: gainsboro;
}


label {
display: inline-block;
font-weight: 500;
Expand Down Expand Up @@ -272,3 +279,19 @@ input[type="radio"] {
font-style: italic;
color: $mid-grey;
}

.form-inline-align .checkbox-inline {
display: flex;
align-items: flex-start; /* key change */
gap: 8px;
cursor: pointer;
}

.form-inline-align input[type="checkbox"] {
margin-top: 3px; /* fine-tune vertical alignment */
}

.form-inline-align small {
margin-top: 1px;
font-size: 0.85em;
}
15 changes: 8 additions & 7 deletions person/templates/person/component/date_fields.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
<div class="margin-bottom">
{% include "core/component/common_form_choices.html" with label_text='Calendar of '|add:title_name choices_field=calendar %}
</div>
<div class="is-range-div margin-bottom">
{{ is_range }}
<label for="{{ is_range.id_for_label }}">Date range?</label>
<small>
{{ date_range_msg }}
</small>
</div>

<div class="is-range-div margin-bottom form-inline-align">
<div class="checkbox-inline">
{{ is_range }}
<label for="{{ is_range.id_for_label }}">Date range?</label>
<small>{{ date_range_msg }}</small>
</div>
</div>

<div class="margin-bottom">
<div class="row-no-margin">
<div class="from-div">
Expand Down
13 changes: 8 additions & 5 deletions person/templates/person/init_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,16 @@
<div class="margin-bottom">
{% include "core/component/common_form_choices.html" with label_text='Gender' choices_field=person_form.gender %}
</div>
<div class="margin-bottom">
{{ person_form.is_organisation }}
<label for="{{ person_form.is_organisation.id_for_label }}">Organization?</label>
<small> (Leave this checkbox blank if the correspondent was an individual person; tick if the

<div class="margin-bottom form-inline-align">
<div class="checkbox-inline">
{{ person_form.is_organisation }}
<label for="{{ person_form.is_organisation.id_for_label }}">Organization?</label>
<small> (Leave this checkbox blank if the correspondent was an individual person; tick if the
correspondent was a group or organization.)</small>
</div>
</div>

<div class="org-type-div margin-bottom"
{% if not is_org_form %}
style="display: none"
Expand Down