Skip to content

Commit

Permalink
fix(source): change templates to include required fields
Browse files Browse the repository at this point in the history
- holding institution and shelfmark fields are now required
- fixes incorrect use of <small> tag on these fields
  • Loading branch information
lucasmarchd01 committed Aug 23, 2024
1 parent 5e72103 commit c7f760c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions django/cantusdb_project/main_app/templates/source_create.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,21 @@ <h3>Create Source</h3>
<form method="post" style="line-height: normal">{% csrf_token %}
<div class="form-row">
<div class="form-group m-1 col-lg-3">
<label for="{{ form.holding_institution.id_for_label }}">
<small>Holding Institution:</small>
<label for="{{ form.holding_institution.id_for_label }}" class="form-control-sm">
Holding Institution:<span class="text-danger" title="This field is required">*</span>
</label>
<br>{{ form.holding_institution }}
{{ form.holding_institution }}
<p class=text-muted>
<small>{{ form.holding_institution.help_text }}</small>
</p>
</div>
</div>
<div class="form-row">
<div class="form-group m-1 col-lg-3">
<label for="{{ form.shelfmark.id_for_label }}">
<small>Shelfmark:</small><span class="text-danger" title="This field is required">*</span></small>
<label for="{{ form.shelfmark.id_for_label }}" class="form-control-sm">
Shelfmark:<span class="text-danger" title="This field is required">*</span>
</label>
<br>{{ form.shelfmark }}
{{ form.shelfmark }}
<p class=text-muted>
<small>{{ form.shelfmark.help_text }}</small>
</p>
Expand Down
12 changes: 6 additions & 6 deletions django/cantusdb_project/main_app/templates/source_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,21 @@ <h3>
<form method="post" style="line-height: normal">{% csrf_token %}
<div class="form-row">
<div class="form-group m-1 col-lg-3">
<label for="{{ form.holding_institution.id_for_label }}">
<small>Holding Institution:</small>
<label for="{{ form.holding_institution.id_for_label }}" class="form-control-sm">
Holding Institution:<span class="text-danger" title="This field is required">*</span>
</label>
<br>{{ form.holding_institution }}
{{ form.holding_institution }}
<p class=text-muted>
<small>{{ form.holding_institution.help_text }}</small>
</p>
</div>
</div>
<div class="form-row">
<div class="form-group m-1 col-lg-3">
<label for="{{ form.shelfmark.id_for_label }}">
<small>Shelfmark:</small><span class="text-danger" title="This field is required">*</span></small>
<label for="{{ form.shelfmark.id_for_label }}" class="form-control-sm">
Shelfmark:<span class="text-danger" title="This field is required">*</span>
</label>
<br>{{ form.shelfmark }}
{{ form.shelfmark }}
<p class=text-muted>
<small>{{ form.shelfmark.help_text }}</small>
</p>
Expand Down

0 comments on commit c7f760c

Please sign in to comment.