blob: 657a1cbc8dbd969ebd645cddabc4f87818ebec70 [file] [log] [blame]
<!--
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<form name="processForm" class="mt10" novalidate id="processFormPropsStep">
<h5 class="col-xs-24">Timing</h5>
<div class="col-xs-24 mb10">
<label class="light">Timezone</label>
<time-zone-select ng-model="process.timezone" id="timeZoneSelect"></time-zone-select>
</div>
<div class="col-xs-9">
<div class="inlineInputsGroup">
<div>Frequency</div>
<span>Every</span>
<input type="text" class="form-control" validation-message="{{validations.messages.number}}"
ng-model="process.frequency.quantity" ng-keydown="validations.acceptOnlyNumber($event)"
id="frequencyQuantity"
ng-required="true"
ng-pattern="validations.patterns.twoDigits"/>
<select
ng-model="process.frequency.unit"
ng-required="true">
<option selected value="minutes">minutes</option>
<option value="hours">hours</option>
<option value="days">days</option>
<option value="months">months</option>
</select>
</div>
</div>
<div class="col-xs-7">
<div class="inlineInputsGroup">
<div>Maximum Parallel Instances</div>
<select
ng-model="process.parallel"
ng-required="true">
<option ng-repeat="value in [1,2,3,4,5,6,7,8,9,10,11,12]">{{value}}</option>
</select>
</div>
</div>
<div class="col-xs-8">
<div class="inlineInputsGroup">
<div>Order</div>
<select ng-model="process.order" ng-required="true" validation-message="{{validations.messages.option}}">
<option value="" disabled selected style='display:none;'>-Select order-</option>
<option ng-repeat="value in ['FIFO', 'LIFO', 'LAST_ONLY']">{{value}}</option>
</select>
</div>
</div>
<div class="clearfix mb10"></div>
<h4 class="col-xs-24">Retry</h4>
<div class="col-xs-9 inlineInputsGroup">
<div class="mt10 mb10">Policy</div>
<select ng-model="process.retry.policy" ng-required="true" validation-message="{{validations.messages.option}}">
<option value="" disabled selected style='display:none;'>-Select policy-</option>
<option ng-repeat="value in ['periodic', 'exp-backoff', 'final']">{{value}}</option>
</select>
</div>
</div>
<div class="col-xs-7 inlineInputsGroup">
<div class="mt10">Attempts</div>
<input type="text" class="form-control" validation-message="{{validations.messages.number}}"
ng-model="process.retry.attempts" ng-keydown="validations.acceptOnlyNumber($event)"
id="attemptsField"
ng-required="true"
ng-pattern="validations.patterns.twoDigits"/>
</div>
</div>
<div class="col-xs-8">
<div class="inlineInputsGroup">
<div class="mt10">Delay</div>
<span>Up to</span>
<input type="text" class="form-control"
ng-model="process.retry.delay.quantity" validation-message="{{validations.messages.number}}"
id="delayQuantity" ng-keydown="validations.acceptOnlyNumber($event)"
ng-required="true"
ng-pattern="validations.patterns.twoDigits"/>
<select ng-model="process.retry.delay.unit" ng-required="true" validation-message="{{validations.messages.option}}">
<option value="" disabled selected style='display:none;'>-Select delay-</option>
<option value="minutes">minutes</option>
<option value="hours">hours</option>
<option value="days">days</option>
<option value="months">months</option>
</select>
</div>
</div>
<div class="col-xs-24 mt20">
<button class="btn prevBtn"
type="button"
ng-click="goBack('forms.process.general')"
ng-disabled="buttonSpinners.backShow">
Previous <img src="css/img/ajax-loader.gif" ng-if="buttonSpinners.backShow" />
</button>
<button class="btn nextBtn pull-right"
ng-disabled="buttonSpinners.show"
ng-click="goNext(processForm.$invalid, 'forms.process.clusters')" >
Next <img src="css/img/ajax-loader.gif" ng-if="buttonSpinners.show" />
</button>
<a class="pull-right" ui-sref="main">
Cancel
</a>
</div>
</form>