3
3
< head >
4
4
< title > Tech@NYU Intranet</ title >
5
5
< link rel ='stylesheet ' href ='css/app.css '/>
6
- < link rel =' stylesheet ' href ='css/bootstrap.min.css '/>
6
+ < link href ='http://netdna.bootstrapcdn.com/bootstrap/3.2.0/ css/bootstrap.min.css ' rel =' stylesheet ' />
7
7
8
8
< script src ="http://cdn.rawgit.com/jpillora/xdomain/0.6.15/dist/0.6/xdomain.min.js " slave ="https://api.tnyu.org/v1.0/proxy.html "> </ script >
9
9
10
10
< script type ='text/javascript ' src ='js/lib/jquery-2.1.1.min.js '> </ script >
11
11
< script type ='text/javascript ' src ='js/lib/bootstrap.min.js '> </ script >
12
- < script type ='text/javascript ' src ='js/lib/angular/angular.min.js '> </ script >
12
+ < script type ='text/javascript ' src ='http://code.angularjs.org/1.1.5/angular.min.js '> </ script >
13
+ < script type ='text/javascript ' src ='js/lib/angular/angular-ui-bootstrap-tpls-0.11.2.min.js '> </ script >
13
14
14
15
< script type ='text/javascript ' src ='js/app.js '> </ script >
15
16
< script type ='text/javascript ' src ='js/controllers.js '> </ script >
18
19
< script type ='text/javascript ' src ='js/services.js '> </ script >
19
20
</ head >
20
21
< body ng-app ='app '>
21
- <!-- <t-input maxlength="10"></t-input>
22
- <t-input maxlength="5"></t-input>
23
- <t-input maxlength="1"></t-input>
24
- <t-input maxlength="10"></t-input>
25
- <t-input maxlength="10"></t-input> -->
26
22
27
23
< main class ="content container ">
28
24
< div class ="content-header-container row ">
29
25
< header class ="content-header ">
30
26
< h2 > Add New Event</ h2 >
31
27
</ header >
32
28
</ div >
33
- < div class ="row " ng-controller ="EventAddCtrl ">
29
+ < div class ="row " ng-controller ="EventAddCtrl " >
34
30
< form id ="event-add-form " role ="form " ng-submit ="submit() " novalidate >
35
31
< fieldset id ="event-add-basic " class ="form-group ">
36
32
< legend > Basic Information</ legend >
@@ -57,21 +53,26 @@ <h2>Add New Event</h2>
57
53
</ div >
58
54
</ fieldset >
59
55
60
- <!-- We're gonna need some datepicker addon and probably something like moment.js to calc the date differences -->
61
- < fieldset class ="form-group ">
56
+ <!-- Need timepicker -->
57
+ < fieldset class ="form-group " ng-controller =" DatePickerCtrl " >
62
58
< div class ="col-md-3 ">
63
59
< label for ="startDateTime "> Starts</ label >
64
- < input name ="startDateTime " class ="form-control " type ="dateTime " placeholder ="yyyy-MM-ddTHH:mm:ss " ng-model ="event.startDateTime ">
60
+ < p class ="input-group ">
61
+ < input type ="text " name ="startDateTime " class ="form-control " datepicker-popup ="{{format}} " ng-model ="dt.start " is-open ="startDate " min-date ="minDate " datepicker-options ="dateOptions " ng-required ="true " close-text ="Close "/>
62
+ < span class ="input-group-btn "> < button ng-click ="toggleOpenDatePicker($event,'startDate') "> < i class ="glyphicon glyphicon-calendar "> </ i > </ button >
63
+ </ span >
64
+ </ p >
65
65
</ div >
66
66
< div class ="col-md-3 ">
67
67
< label for ="endDateTime "> Ends</ label >
68
- < input name =" endDateTime " class ="form-control " type =" dateTime " placeholder =" yyyy-MM-ddTHH:mm:ss " ng-model =" event.endDateTime ">
69
- </ div >
70
- < div class ="col-md-2 " >
71
- < label > Length </ label >
72
- < p class =" form-control-static " > {{ event.endDateTime - event.startDateTime }}h < /p >
68
+ < p class ="input-group ">
69
+ < input type =" text " name =" endDateTime " class =" form-control " datepicker-popup =" {{format}} " ng-model =" dt.start " is-open =" endDate " min-date =" minDate " datepicker-options =" dateOptions " ng-required =" true " close-text =" Close " / >
70
+ < span class ="input-group-btn " > < button ng-click =" toggleOpenDatePicker($event,'endDate') " > < i class =" glyphicon glyphicon-calendar " > </ i > </ button >
71
+ </ span >
72
+ </ p >
73
73
</ div >
74
74
</ fieldset >
75
+
75
76
< fieldset class ="form-group ">
76
77
< div class ="col-md-6 ">
77
78
< label for ="description "> Description</ label >
@@ -96,7 +97,16 @@ <h2>Add New Event</h2>
96
97
</ div >
97
98
</ fieldset >
98
99
</ fieldset >
99
- < fieldset id ="event-add-venue " class ="form-group ">
100
+
101
+ < fieldset id ="event-add-speaker " class ="form-group " ng-controller ="">
102
+ < legend > Speaker</ legend >
103
+ < div class ="col-md-10 ">
104
+ < label for ="speaker "> Speaker </ label >
105
+ < input type ="url " name ="speaker " class ="form-control " />
106
+ </ div >
107
+ </ fieldset >
108
+
109
+ < fieldset id ="event-add-venue " class ="form-group " ng-controller ="">
100
110
< legend > Venue</ legend >
101
111
102
112
<!-- We're gonna need some kind of typeahead library for this -->
@@ -125,19 +135,19 @@ <h4>Name</h4>
125
135
{{event.title}}
126
136
127
137
< h4 > Details</ h4 >
128
- < pre class ="copyable-plaintext ">
129
- {{event.description}}
138
+ < pre class ="copyable-plaintext ">
139
+ {{event.description}}
130
140
131
- {{event.details}}
141
+ {{event.details}}
132
142
133
- All tech@nyu events are covered by a strict anti-harassment policy: http://techatnyu.org/anti-harassment
134
- </ pre >
143
+ All tech@nyu events are covered by a strict anti-harassment policy: http://techatnyu.org/anti-harassment
144
+ </ pre >
135
145
136
146
< h4 > When</ h4 >
137
147
< p > {{event.startDateTime | date: 'MM/dd h:mma' : 'UTC'}} – {{event.endDateTime | date: 'MM/dd h:mma' : 'UTC'}}</ p >
138
148
</ div >
139
149
</ div >
140
150
</ div >
141
- </ main >
151
+ </ main >
142
152
</ body >
143
153
</ html >
0 commit comments