From b583fa48cb54b72b788c8c010bc43227408c0add Mon Sep 17 00:00:00 2001 From: Nat Tuck Date: Tue, 21 Jan 2025 18:33:40 -0500 Subject: [PATCH] fix archive switch --- .../templates/admin/course/form.html.eex | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/inkfish_web/templates/admin/course/form.html.eex b/lib/inkfish_web/templates/admin/course/form.html.eex index ae71a58..65290d0 100644 --- a/lib/inkfish_web/templates/admin/course/form.html.eex +++ b/lib/inkfish_web/templates/admin/course/form.html.eex @@ -13,13 +13,17 @@
<%= label f, :start_date, class: "form-label" %> -
- <%= text_input(f, :start_date, class: "form-control date-picker") %> - <%= checkbox f, :archived, class: "form-check-input form-switch" %> -   - <%= 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) %> +
+ +
+
+ <%= checkbox f, :archived, class: "form-check-input" %>
+   + <%= label f, :archived, "archive old course", class: "form-check-label" %> + <%= error_tag f, :archived %>