Skip to content

Commit

Permalink
Semester-selection: change placeholders to 2024/25.
Browse files Browse the repository at this point in the history
A better way to do this is substitute the hard coded year to "currentYear" like in the template semesterselection.
  • Loading branch information
YiranDuan721 committed Nov 27, 2023
1 parent 2b5bca6 commit 8470149
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/template/partial/course/manage/semester-selection.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<label for="year" class="hidden">teachingTermYear</label>

<div class="flex">
<input id="year" x-model="year" x-data="{initialYear: 2022}" name="year" class="w-32 tl-input border"
<input id="year" x-model="year" x-data="{initialYear: 2024}" name="year" class="w-32 tl-input border"
:class="year === '' ? 'border-red-500 focus:border-red-500' : ''"
:placeholder="year === '' ? initialYear : ''"
type="number"
Expand All @@ -20,7 +20,7 @@
<label for="yearW" class="hidden">teachingTermYearW</label>
<input id="yearW" x-model="yearW" name="yearW" class="w-16 tl-input"
:class="yearW === '' ? 'border-red-500 focus:border-red-500' : ''"
:placeholder="year === '' ? '23' : ''"
:placeholder="year === '' ? '25' : ''"
type="text" readonly disabled>
</div>
</template>
Expand Down

0 comments on commit 8470149

Please sign in to comment.