Skip to content

Commit

Permalink
fix archive switch
Browse files Browse the repository at this point in the history
  • Loading branch information
NatTuck committed Jan 21, 2025
1 parent 12e616c commit b583fa4
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions lib/inkfish_web/templates/admin/course/form.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@

<div class="mb-3">
<%= label f, :start_date, class: "form-label" %>
<div>
<%= text_input(f, :start_date, class: "form-control date-picker") %>
<%= checkbox f, :archived, class: "form-check-input form-switch" %>
&nbsp;
<%= label f, :archived, "archive old course", class: "form-check-label" %>
<%= error_tag f, :archived %>
<%= text_input(f, :start_date, class: "form-control date-picker") %>
<%= error_tag(f, :start_date) %>
</div>

<div class="mb-3">
<div class="form-check form-switch">
<%= checkbox f, :archived, class: "form-check-input" %>
</div>
&nbsp;
<%= label f, :archived, "archive old course", class: "form-check-label" %>
<%= error_tag f, :archived %>
</div>

<div class="mb-3">
Expand Down

0 comments on commit b583fa4

Please sign in to comment.