4 link(rel="stylesheet" href="/stylesheets/courseList.css")
13 form(@submit.prevent="submit")
15 input#code.validate(type="text" v-model="newCourse.code" autofocus required)
16 label(for="code") Code
18 input#description.validate(type="text" v-model="newCourse.description" required)
19 label(for="description") Description
22 a.waves-effect.waves-light.btn(href="#!" @click="addCourse()")
24 i.material-icons.right send
26 .col.s12.m10.offset-m1.l8.offset-l2.xl6.offset-xl3
31 a.waves-effect.waves-light.btn.modal-trigger(href="#newCourse") New course
38 tr.course(v-for="course in courseArray" @click.left="redirect(course.code)" @contextmenu.prevent="deleteCourse(course)")
40 td(v-html="course.description")
44 let courseArray = !{JSON.stringify(courseArray)};
45 const initials = "#{initials}";
46 const admin = #{teacher};
47 script(src="/javascripts/utils/validation.js")
48 script(src="/javascripts/courseList.js")