1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

force user to use datepicker in close period modal

This commit is contained in:
Sylvain 2019-04-03 14:47:39 +02:00
parent 79c3cfaa27
commit 8e895e6b6a
2 changed files with 7 additions and 2 deletions

View File

@ -268,3 +268,7 @@ table.scrollable-3-cols {
.period-info-title {
font-weight: bold;
}
input.form-control.as-writable {
background-color: white;
}

View File

@ -29,7 +29,7 @@
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input type="text"
class="form-control"
class="form-control as-writable"
name="end_at"
ng-model="period.end_at"
uib-datepicker-popup="{{datePicker.format}}"
@ -40,7 +40,8 @@
init-date="period.end_at"
placeholder="{{datePicker.format}}"
ng-click="toggleDatePicker($event)"
required/>
required
readonly/>
</div>
<span class="help-block" ng-show="closePeriodForm.end_at.$dirty && closePeriodForm.end_at.$error.required" translate>{{ 'invoices.end_date_is_required' }}</span>
<span class="help-block error" ng-show="errors.end_at">{{ errors.end_at[0] }}</span>