So let's create the CreateEventView
view class. Now, let's throw a twist in; since we have Bootstrap on our page, why don't we use its modal component to display our form?
To do this, we'll begin by creating our template. Create templates/createEvent.html
and put this in that file:
<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button class="close">×</button> <h4 class="modal-title"> Create New Event </h4> </div> <div class="modal-body"> <form> <label>Title</label> <input type="text" class="form-control" id="title" /> <label>Details</label> <textarea id="details" class="form-control"></textarea> <label>Date</label> <input type="datetime-local" class="form-control" id="date" /> </form> </div> <div class="modal-footer...