blob: 31486ec654984e833169e0be37a9bf8b97a330df [file] [log] [blame]
<div class="modal" tabindex="-1">
<!--
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.
-->
<div class="modal-md col-md-5 col-md-offset-3">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" ng-click="$hide()">
<span>&times;</span></button>
<h4 ng-if="processor.id >= 0">Modify Processor</h4>
<h4 ng-if="!(processor.id >= 0)">New Processor</h4>
</div>
<div class="modal-body">
<p style="padding-top: 4px; padding-bottom: 14px;">Make sure that the given
task class can be found in uploaded JAR files.</p>
<form name="form" class="form-horizontal">
<!-- right margin align to cancel button right -->
<div style="margin-bottom: 18px">
<!-- input 1 -->
<form-control
type="class" label="Task Class" required="true" autofocus="true"
ng-model="processor.taskClass"
invalid="invalid.taskClass"></form-control>
<!-- input 2 -->
<form-control
type="text" label="Description"
ng-model="processor.description"
invalid="invalid.description"></form-control>
<!-- input 3 -->
<form-control
type="integer" min="1" label="Parallelism" required="true"
ng-model="processor.parallelism"
invalid="invalid.parallelism"></form-control>
<!--&lt;!&ndash; optional inputs &ndash;&gt;-->
<!--<div class="form-group-header">Scheduling-->
<!--<remark tooltip="Optional to specify the activation and/or deactivation time for processor"></remark>-->
<!--</div>-->
<!--&lt;!&ndash; input 4 &ndash;&gt;-->
<!--<form-control-->
<!--type="datetime" label="Activation"-->
<!--ng-model="processor.birthTime"-->
<!--invalid="invalid.birthTime"></form-control>-->
<!--&lt;!&ndash; input 5 &ndash;&gt;-->
<!--<form-control-->
<!--type="datetime" label="Deactivation"-->
<!--ng-model="processor.deathTime"-->
<!--invalid="invalid.deathTime"></form-control>-->
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary btn-sm" style="width: 60px"
ng-disabled="!canSave()" ng-click="save()">Save
</button>
<button type="button" class="btn btn-default btn-sm"
ng-click="$hide()">Cancel
</button>
</div>
</div>
</div>
</div>