|
1 | 1 | <h1>Create a new ponctual event</h1>
|
2 | 2 | <div class="container " ng-controller="ponctualEventCreationPageController">
|
| 3 | + |
3 | 4 | <div class="row">
|
4 |
| - <!-- |
5 |
| - <div name="formRegistration" class="col-md-3 col-lg-offset-4"> |
6 |
| - <form ng-submit="register()"> |
7 | 5 |
|
8 |
| - <div class="form-group"> |
9 |
| - <input type="email" class="form-control" ng-model="user.mail" placeholder="Event name" required> |
10 |
| - </div> |
| 6 | + <div name="formPonctualEvent" class="col-md-3 col-lg-offset-4"> |
11 | 7 |
|
| 8 | + <form ng-submit="createEvent()"> |
| 9 | + |
12 | 10 | <div class="form-group">
|
13 |
| - <input type="password" id="password" name="user.password" class="form-control" ng-model="user.password" placeholder="Password" required> |
| 11 | + <input class="form-control" ng-model="ponctualEvent.event.eventName" placeholder="Event name" required> |
14 | 12 | </div>
|
15 | 13 |
|
16 | 14 | <div class="form-group">
|
17 |
| - <input type="password" id="passwordBis" name="passwordBis" class="form-control" ng-model="user.passwordBis" placeholder="Password Confirmation" required samepassword="password"> |
| 15 | + <div class="input-group"> |
| 16 | + <div class="input-group-btn"> |
| 17 | + <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Select an activity <span class="caret"></span></button> |
| 18 | + <ul class="dropdown-menu" ng-repeat="activity in filtered = (activities | filter: query)"> |
| 19 | + <li><a ng-click="activitySelected(activity)">{{activity.activityName}}</a></li> |
| 20 | + </ul> |
| 21 | + </div> |
| 22 | + <input type="text" class="form-control" id="selectedActivity" disabled> |
| 23 | + </div> |
18 | 24 | </div>
|
19 |
| - <p class="text-danger" ng-if="passNotMatch">Passwords don't match</p> |
20 | 25 |
|
21 | 26 | <div class="form-group">
|
22 |
| - <input type="text" class="form-control" ng-model="user.firstName" placeholder="Firstname"> |
| 27 | + <div class="input-group"> |
| 28 | + <div class="input-group-btn"> |
| 29 | + <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Select a room <span class="caret"></span></button> |
| 30 | + <ul class="dropdown-menu" ng-repeat="room in filtered = (rooms | filter: query)"> |
| 31 | + <li><a ng-click="roomSelected(room)">{{room.roomName}}</a></li> |
| 32 | + </ul> |
| 33 | + </div> |
| 34 | + <input type="text" class="form-control" id="selectedRoom" disabled> |
| 35 | + </div> |
23 | 36 | </div>
|
24 | 37 |
|
25 | 38 | <div class="form-group">
|
26 |
| - <input type="text" class="form-control" ng-model="user.lastName" placeholder="Lastname"> |
| 39 | + <input type="date" format="yyyy-MM-dd" name="ponctualEvent.eventDate" class="form-control" ng-model="ponctualEvent.eventDate" placeholder="Date" required> |
| 40 | + <p class="text-danger" ng-if="dateError">You can't create an event in the past. Unless you are a wizard. Which I doubt.</p> |
27 | 41 | </div>
|
28 | 42 |
|
29 | 43 | <div class="form-group">
|
30 |
| - <input type="text" class="form-control" ng-model="user.adr1" placeholder="Address"> |
| 44 | + <input type="time" format="HH:mm" min="08:00" max="20:00" name="ponctualEvent.event.timeBegin" class="form-control" ng-model="ponctualEvent.event.timeBegin" placeholder="Time of the event beginning" required> |
31 | 45 | </div>
|
32 | 46 |
|
33 | 47 | <div class="form-group">
|
34 |
| - <input type="text" class="form-control" ng-model="user.adr2" placeholder="Rest of the address "> |
| 48 | + <input type="number" min="0.5" step="0.5" name="ponctualEvent.event.eventDurationHours" class="form-control" ng-model="ponctualEvent.event.eventDurationHours" placeholder="Duration in hours (can be 1.5)" required> |
35 | 49 | </div>
|
36 | 50 |
|
37 | 51 | <div class="form-group">
|
38 |
| - <input type="text" class="form-control" ng-model="user.pc" placeholder="Postal Code "> |
| 52 | + <input name="ponctualEvent.event.eventDescription" class="form-control" ng-model="ponctualEvent.event.eventDescription" placeholder="Description" required> |
39 | 53 | </div>
|
40 | 54 |
|
41 | 55 | <div class="form-group">
|
42 |
| - <input type="text" class="form-control" ng-model="user.town" placeholder="Town "> |
| 56 | + <input type="number" min="0" step="0.01" name="ponctualEvent.event.eventPrice" class="form-control" ng-model="ponctualEvent.event.eventPrice" placeholder="Price (€)" required> |
43 | 57 | </div>
|
44 | 58 |
|
45 | 59 | <div class="form-group">
|
46 |
| - <input type="text" class="form-control" ng-model="user.phone" placeholder="Phone "> |
| 60 | + <input type="number" min="0" name="ponctualEvent.event.eventMaxPeople" class="form-control" ng-model="ponctualEvent.event.eventMaxPeople" placeholder="Maximum number of participants" required> |
47 | 61 | </div>
|
48 | 62 |
|
49 |
| - <input type="submit" id="submit" value="Sign in" class="btn btn-primary" /> |
50 |
| - </form> |
| 63 | + <input type="submit" id="submit" value="Validate" class="btn btn-primary" /> |
| 64 | +</form> |
51 | 65 | </div>
|
52 |
| ---> |
53 | 66 | </div>
|
54 | 67 | </div>
|
55 | 68 |
|
0 commit comments