basic new Event page

This commit is contained in:
Davide Alberani 2015-03-21 13:21:47 +01:00
parent 4e7fff358e
commit 0db7feb547
2 changed files with 22 additions and 9 deletions

View file

@ -1,11 +1,16 @@
<div class="container-fluid">
<div class="row">
<div class="col-md-10">
<h1><span class="label label-primary">{{event.title}}</span></h1>
<p>Date: {{event['begin-datetime']}}</p>
</div>
</div>
<div class="container-fluid">
<div class="input-group input-group-lg">
<span class="input-group-addon" id="basic-addon1">Title</span>
<input type="text" class="form-control" placeholder="Title" aria-describedby="basic-addon-2" value="{{event.title}}">
</div>
<div class="input-group top5">
<span class="input-group-addon" id="basic-addon1">Begin time</span>
<input type="text" class="form-control" placeholder="Date and time" aria-describedby="basic-addon1" value="{{event['begin-datetime']}}">
</div>
<div class="input-group top5">
<span class="input-group-addon" id="basic-addon1">End time</span>
<input type="text" class="form-control" placeholder="Date and time" aria-describedby="basic-addon1" value="{{event['end-datetime']}}">
</div>
</div>

View file

@ -23,6 +23,14 @@ eventManApp.config(['$routeProvider',
templateUrl: 'event-detail.html',
controller: 'EventDetailsCtrl'
}).
when('/new-event', {
templateUrl: 'event-detail.html',
controller: 'EventDetailsCtrl'
}).
when('/new-person', {
templateUrl: 'person-detail.html',
controller: 'PersonDetailsCtrl'
}).
otherwise({
redirectTo: '/events'
});