Skip to content

Commit 54cdc3c

Browse files
committed
#234 fix required fields
1 parent ac9954c commit 54cdc3c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/webapp/resources/js/admin/feature/reservation/create/reservation-create.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,27 @@ <h3>Contact info</h3>
1212
<div class="col-xs-12 col-sm-6">
1313
<div class="form-group">
1414
<label for="customerFirstName">First name</label>
15-
<input class="form-control" id="customerFirstName" name="customerFirstName" ng-model="$ctrl.reservation.customerData.firstName">
15+
<input class="form-control" id="customerFirstName" name="customerFirstName" ng-model="$ctrl.reservation.customerData.firstName" required>
1616
</div>
1717
</div>
1818
<div class="col-xs-12 col-sm-6">
1919
<div class="form-group">
2020
<label for="customerLastName">Last name</label>
21-
<input class="form-control" id="customerLastName" name="customerLastName" ng-model="$ctrl.reservation.customerData.lastName">
21+
<input class="form-control" id="customerLastName" name="customerLastName" ng-model="$ctrl.reservation.customerData.lastName" required>
2222
</div>
2323
</div>
2424
</div>
2525
<div class="row">
2626
<div class="col-xs-12 col-sm-6">
2727
<div class="form-group">
2828
<label for="customerEmailAddress">Email Address</label>
29-
<input type="email" class="form-control" id="customerEmailAddress" name="customerEmailAddress" ng-model="$ctrl.reservation.customerData.emailAddress">
29+
<input type="email" class="form-control" id="customerEmailAddress" name="customerEmailAddress" ng-model="$ctrl.reservation.customerData.emailAddress" required>
3030
</div>
3131
</div>
3232
<div class="col-xs-12 col-sm-6">
3333
<div class="form-group">
3434
<label for="language">Language</label>
35-
<select class="form-control" id="language" ng-options="l.locale as l.displayLanguage for l in $ctrl.languages" name="language" ng-model="$ctrl.reservation.language"></select>
35+
<select class="form-control" id="language" ng-options="l.locale as l.displayLanguage for l in $ctrl.languages" name="language" ng-model="$ctrl.reservation.language" required></select>
3636
</div>
3737
</div>
3838
</div>
@@ -46,7 +46,7 @@ <h3>Reservation details</h3>
4646
<div class="col-xs-12 col-sm-6">
4747
<div class="form-group">
4848
<label for="expiration">Expiration</label>
49-
<input class="form-control" id="expiration" name="expiration" ng-model="$ctrl.reservation.expirationStr" single-date start-model="$ctrl.reservation.expiration">
49+
<input class="form-control" id="expiration" name="expiration" ng-model="$ctrl.reservation.expirationStr" single-date start-model="$ctrl.reservation.expiration" required>
5050
</div>
5151
</div>
5252
<div class="hidden-xs col-sm-6">
@@ -152,7 +152,7 @@ <h4>Attendees:</h4>
152152
<div class="col-xs-12">
153153
<div class="form-group">
154154
<label for="ticketInfo-{{$index}}-currentAttendees">Nr. of seats</label>
155-
<input type="number" class="form-control" id="ticketInfo-{{$index}}-currentAttendees" min="1" step="1" ng-change="$ctrl.updateAttendeesSize(ticketInfo)" ng-model="ticketInfo.currentAttendeesLength">
155+
<input type="number" class="form-control" id="ticketInfo-{{$index}}-currentAttendees" min="1" step="1" ng-change="$ctrl.updateAttendeesSize(ticketInfo)" ng-model="ticketInfo.currentAttendeesLength" required>
156156
</div>
157157
</div>
158158
</div>

0 commit comments

Comments
 (0)