fn make_edit_form(id: String, title: String, start: NaiveDate, end: NaiveDate) -> Template {
    let mut form = Template::new("admin/semesters/forms/edit");

    form.fields = json!({
        "id": id,
        "title": {"value": title},
        "start": {"value": start},
        "end": {"value": end}
    });

    return form;
}
/// Make the form template for the semester edits.
Make the form template for the semester edits.
Make the form template for the semester edits .
fn make_edit_form(id: String, title: String, start: NaiveDate, end: NaiveDate) -> Template {
    let mut form = Template::new("admin/semesters/forms/edit");
    form.fields = json!({
        "id": id,
        "title": {"value": title},
        "start": {"value": start},
        "end": {"value": end}
    });
    return form;
}
fn make_edit_form ( id : String , title : String , start : NaiveDate , end : NaiveDate ) -> Template { let mut form = Template :: new ( " " ) ; form . fields = json ! ( { " " id " " { " " title } " " { " " start } " " { " " end } } ) ; return form ; }
Make the form template for the semester edits.
Make the form template for the semester edits .
id
String
title
String
start
NaiveDate
end
NaiveDate
id
String
title
String
start
NaiveDate
end
NaiveDate