-
Notifications
You must be signed in to change notification settings - Fork 8
/
create-student-data-page.html
executable file
·25 lines (19 loc) · 1.17 KB
/
create-student-data-page.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<template name="Create_Student_Data_Page">
<div style="margin-top: 20px" class="ui container">
<form class="ui form student-data-form {{ successClass }} {{ errorClass }}">
<h4 class="ui dividing header">Student Data</h4>
{{> Text_Form_Control label="Name" required=true errorMessage=(fieldError "name")}}
{{> TextArea_Form_Control label="Bio" placeholder="Short bio statement here" errorMessage=(fieldError "bio")}}
{{> Checkbox_Form_Control label="Hobbies" checkboxes=hobbies }}
{{> Radio_Form_Control label="Level" name="Level" required=true radios=levels errorMessage=(fieldError "level") }}
{{> Select_Form_Control label="GPA" required=true options=GPAs errorMessage=(fieldError "gpa") }}
{{> Select_Form_Control label="Majors" options=majors errorMessage=(fieldError "majors") multiple=true }}
<button class="ui primary button" type="submit">Submit</button>
{{#if displaySuccessMessage}}
<div class="ui success message">
<p>To update this entry, go to <a href="/studentdata/{{ displaySuccessMessage }}">/studentdata/{{ displaySuccessMessage }}</a></p>
</div>
{{/if}}
</form>
</div>
</template>