blob: 21bf4bfbc095b9a8112d925c1906b67a1d824705 [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="processFormClusterStep">
<div class="col-xs-offset-1 col-xs-22">
<div ng-repeat="cluster in process.clusters" class="row">
<div class="col-xs-24 detailsBox processCluster">
<h5>Cluster</h5>
<div class="row">
<div class="col-xs-24">
<label class="light">Name</label>
<select ng-model="cluster.name" ng-class="{firstSelectClusterStep: $index === 0}"
ng-required="true"
class="form-control padding0"
validation-message="{{validations.messages.cluster}}">
<option value="" disabled selected style='display:none;'>-Select cluster-</option>
<option ng-repeat="clusterItem in clusterList">{{clusterItem.name}}</option>
</select>
</div>
</div>
<div class="clearfix"></div>
<label class="col-xs-24"> Validity </label>
<div class="col-xs-24 validityBox">
<div class="startDateBox">
<label>Start
<input type="text"
name="startDateInput"
class="form-control dateInput"
placeholder="mm/dd/yyyy"
datepicker-popup="{{dateFormat}}"
ng-model="cluster.validity.start.date"
is-open="cluster.validity.start.opened"
ng-click="openDatePicker($event, cluster.validity.start)"
ng-required="true"
simple-date>
</label>
<label class="col-xs-24 custom-danger validationMessageGral"
ng-if="!cluster.validity.start.date">
{{validations.messages.date.empty}}
</label>
</div>
<div class="startTimeBox">
<label>Time
<timepicker
ng-model="cluster.validity.start.time"
hour-step="1"
minute-step="1"
show-meridian="true">
</timepicker>
</label>
</div>
<div class="endDateBox">
<label>End
<input type="text"
name="endDateInput"
class="form-control dateInput"
placeholder="mm/dd/yyyy"
datepicker-popup="{{dateFormat}}"
ng-model="cluster.validity.end.date"
is-open="cluster.validity.end.opened"
ng-click="openDatePicker($event, cluster.validity.end)"
ng-required="true"
min-date="cluster.validity.start.date"
simple-date>
</label>
<label class="col-xs-24 custom-danger validationMessageGral"
ng-if="!cluster.validity.end.date">
{{validations.messages.date.empty}}
</label>
</div>
<div class="endTimeBox">
<label>Time
<timepicker
ng-model="cluster.validity.end.time"
hour-step="1"
minute-step="1"
show-meridian="true">
</timepicker>
</label>
</div>
<div class="col-xs-24 mt10">
<button type="button" class="btn btn-default pull-right btn-xs" ng-click="removeCluster($index)" ng-if="!$first">
<span class="entypo minus"></span> delete
</button>
</div>
</div>
</div>
</div>
</div>
<div class="col-xs-24 mt10">
<button type="button" class="btn btn-default btn-xs" ng-click="addCluster()">
<span class="entypo plus"></span> add cluster
</button>
</div>
<div class="col-xs-24 mt20">
<button class="btn prevBtn" type="button"
ng-click="goBack('forms.process.properties')"
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.io')" >
Next <img src="css/img/ajax-loader.gif" ng-if="buttonSpinners.show" />
</button>
<a class="pull-right" ui-sref="main">
Cancel
</a>
</div>
</form>