| .. | .. |
|---|
| 79 | 79 | <div class="col-md-4"> |
|---|
| 80 | 80 | <input type="date" id="end_valid_date" name="end_valid_date" placeholder="" |
|---|
| 81 | 81 | class="form-control" ng-model="pack.end_valid_date" |
|---|
| 82 | + min="{{pack.init_valid_date | date: 'yyyy-MM-dd'}}" |
|---|
| 82 | 83 | ng-required="mandatory.end_valid_date" /> |
|---|
| 83 | 84 | <div class="alert inline-alert alert-warning" |
|---|
| 84 | | - ng-show="packForm.initValidDate.$invalid"> |
|---|
| 85 | + ng-show="packForm.end_valid_date.$invalid"> |
|---|
| 85 | 86 | <span class="glyphicon glyphicon-warning-sign"></span> |
|---|
| 86 | 87 | <span ng-show="packForm.end_valid_date.$error.required" |
|---|
| 87 | 88 | ng-bind="mandatoryFieldErrorMsg('End valid date')"></span> |
|---|
| 89 | + <span ng-show="packForm.end_valid_date.$error.min" |
|---|
| 90 | + ng-bind="field1ShouldBeGreaterThanField2('End date', 'Init date')"></span> |
|---|
| 88 | 91 | </div> |
|---|
| 89 | 92 | </div> |
|---|
| 90 | 93 | </div> |
|---|
| .. | .. |
|---|
| 163 | 166 | <div class="col-md-8"> |
|---|
| 164 | 167 | <input type="checkbox" class="form-control" |
|---|
| 165 | 168 | ng-model="pack.license_preactivation" /> |
|---|
| 169 | + </div> |
|---|
| 170 | + </div> |
|---|
| 171 | + <div class="form-group"> |
|---|
| 172 | + <label class="col-md-3 control-label" for="license_preactivation" |
|---|
| 173 | + i18n>Default valid period (days)</label> |
|---|
| 174 | + <div class="col-md-8"> |
|---|
| 175 | + <input type="number" id="default_valid_period" name="default_valid_period" |
|---|
| 176 | + min="1" class="form-control" ng-model="pack.default_valid_period" |
|---|
| 177 | + ng-required="pack.license_preactivation" /> |
|---|
| 178 | + <div class="alert inline-alert alert-warning" |
|---|
| 179 | + ng-show="packForm.default_valid_period.$invalid"> |
|---|
| 180 | + <span class="glyphicon glyphicon-warning-sign"></span> |
|---|
| 181 | + <span ng-show="packForm.default_valid_period.$error.required" |
|---|
| 182 | + ng-bind="mandatoryFieldErrorMsg('Default valid period')"></span> |
|---|
| 183 | + <span ng-show="packForm.default_valid_period.$error.min" |
|---|
| 184 | + ng-bind="field1ShouldBeGreaterThanField2('The default valid period', '0')"></span> |
|---|
| 185 | + </div> |
|---|
| 166 | 186 | </div> |
|---|
| 167 | 187 | </div> |
|---|
| 168 | 188 | |
|---|
| .. | .. |
|---|
| 246 | 266 | </form> |
|---|
| 247 | 267 | </div> |
|---|
| 248 | 268 | |
|---|
| 269 | +<div class="modal fade" id="cancellationReasonDialog" tabindex="-1" role="dialog" aria-labelledby="cancelDialogLabel" aria-hidden="true"> |
|---|
| 270 | + <div class="modal-dialog"> |
|---|
| 271 | + <div class="modal-content"> |
|---|
| 272 | + <div class="modal-header"> |
|---|
| 273 | + <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> |
|---|
| 274 | + <h4 class="modal-title" id="cancelDialogLabel" i18n>Pack cancellation</h4> |
|---|
| 275 | + </div> |
|---|
| 276 | + <div class="modal-body"> |
|---|
| 277 | + |
|---|
| 278 | + </div> |
|---|
| 279 | + <div class="modal-footer"> |
|---|
| 280 | + <button type="button" class="btn btn-default" data-dismiss="modal" i18n>Close</button> |
|---|
| 281 | + <button type="button" class="btn btn-primary" i18n>Cancel pack</button> |
|---|
| 282 | + </div> |
|---|
| 283 | + </div> |
|---|
| 284 | + </div> |
|---|
| 285 | +</div> |
|---|
| 249 | 286 | |
|---|
| 250 | 287 | <div class="panel panel-default"> |
|---|
| 251 | 288 | <div class="panel-heading"> |
|---|
| .. | .. |
|---|
| 625 | 662 | |
|---|
| 626 | 663 | </div> |
|---|
| 627 | 664 | </div> |
|---|
| 628 | | - |
|---|