-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit_booking_dialog.tmpl.html
97 lines (97 loc) · 4.34 KB
/
edit_booking_dialog.tmpl.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<md-dialog ng-attr-aria-label="{{ ariaLabel }}">
<form ng-cloak="ng-cloak"
ng-submit="answer(value)">
<md-toolbar class="md-secondary">
<div class="md-toolbar-tools">
<md-button class="md-icon-button"
ng-click="close()">
<md-icon md-svg-src="static/icons/close.svg"
aria-label="Close dialog"></md-icon>
</md-button>
<span flex="flex"></span>
<md-button type="submit"
class="md-button">
{{ 'SAVE' | translate }}
</md-button>
</div>
</md-toolbar>
<md-dialog-content>
<div layout="row"
flex="flex">
<md-input-container flex="100">
<label>
{{ 'LABEL_BOOKING_DATE' | translate }}
</label>
<md-datepicker name="dateField"
ng-model="date"
ng-required="true"
md-current-view="month">
</md-datepicker>
<div ng-messages="dateField.$error">
<div ng-message="valid">{{ 'INVALID_DATE' | translate }}</div>
<div ng-message="required">{{ 'REQUIRED_DATE' | translate }}</div>
</div>
</md-input-container>
</div>
<div layout="row"
flex="flex">
<md-input-container class="my-input-container"
flex="100">
<label>
{{ 'LABEL_BOOKING_TIME' | translate }}
({{ 'FORMAT_TIME' | translate}})
</label>
<md-button class="md-icon-button"
ng-click="focusTime()">
<md-icon md-svg-icon="static/icons/schedule_gry.svg"
class="s48"
aria-hidden="true"></md-icon>
</md-button>
<input name="timeField"
ng-model="time"
type="time"
focus-me="timeFocused"
required="required"
timevalid="timevalid" />
<div>
<div class="md-errors-spacer"></div>
</div>
<div ng-messages="timeField.$error">
<div ng-message="valid">{{ 'INVALID_TIME' | translate }}</div>
<div ng-message="required">{{ 'REQUIRED_TIME' | translate }}</div>
</div>
</md-input-container>
</div>
<div layout="row"
flex="flex">
<md-input-container class="md-icon-float my-input-container"
flex="100">
<label>
{{ 'LABEL_BOOKING_TYPE' | translate }}
</label>
<md-button class="md-icon-button"
ng-click="focusType()">
<md-icon md-svg-icon="static/icons/nature_gry.svg"
aria-hidden="true"></md-icon>
</md-button>
<md-select name="typeField"
ng-model="type"
focus-me="typeFocused"
required="required">
<md-option ng-repeat="type in availableTypes"
ng-value="type.value">
{{ type.html }}
</md-option>
</md-select>
<div>
<div class="md-errors-spacer"></div>
</div>
<div ng-messages="manualBookingForm.typeField.$error">
<div ng-message="valid">{{ 'INVALID_TYPE' | translate }}</div>
<div ng-message="required">{{ 'REQUIRED_TYPE' | translate }}</div>
</div>
</md-input-container>
</div>
</md-dialog-content>
</form>
</md-dialog>