Skip to content

Commit

Permalink
More consistent naming
Browse files Browse the repository at this point in the history
  • Loading branch information
FSadrieh committed Nov 11, 2024
1 parent ad59616 commit 9aa6b34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion evap/evaluation/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
{% block additional_javascript %}{% endblock %}

<script type="text/javascript">
document.querySelectorAll("[data-earliest-possible-exam-date]").forEach(element => {
document.querySelectorAll("[data-earliest-possible-date]").forEach(element => {
element.addEventListener("change", () => {
if (element.value < element.dataset.earliestPossibleDate) {
element.setCustomValidity(element.dataset.earliestDateReason);
Expand Down
2 changes: 1 addition & 1 deletion evap/staff/templates/staff_semester_view_evaluation.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
<div slot="extra-inputs">
<label>
{% translate 'Exam Date:' %}
<input type="date" name="exam_date" data-earliest-possible-exam-date="{{ evaluation.earliest_possible_exam_date }}" data-earliest-date-reason="{% translate 'The end date of the main evaluation would be before its start date.' %}" class="form-control" required form="exam_creation_form_{{ evaluation.id }}"/>
<input type="date" name="exam_date" data-earliest-possible-date="{{ evaluation.earliest_possible_exam_date }}" data-earliest-date-reason="{% translate 'The end date of the main evaluation would be before its start date.' %}" class="form-control" required form="exam_creation_form_{{ evaluation.id }}"/>
</label>
</div>

Expand Down

0 comments on commit 9aa6b34

Please sign in to comment.