|
@@ -72,7 +72,7 @@ ${ commonheader(_("Workflow Editor"), "Oozie", user) | n,unicode }
|
|
|
|
|
|
|
|
<div data-bind="css: { 'draggable-widget': true },
|
|
<div data-bind="css: { 'draggable-widget': true },
|
|
|
draggable: {data: draggableMapReduceAction(), isEnabled: true,
|
|
draggable: {data: draggableMapReduceAction(), isEnabled: true,
|
|
|
- options: {'start': function(event, ui){}}}"
|
|
|
|
|
|
|
+ options: {'start': function(event, ui){$root.currentlyDraggedWidget(draggableMapReduceAction());}}}"
|
|
|
title="${_('MapReduce job')}" rel="tooltip" data-placement="top">
|
|
title="${_('MapReduce job')}" rel="tooltip" data-placement="top">
|
|
|
<a class="draggable-icon"><i class="fa fa-file-archive-o"></i></a>
|
|
<a class="draggable-icon"><i class="fa fa-file-archive-o"></i></a>
|
|
|
</div>
|
|
</div>
|
|
@@ -874,6 +874,55 @@ ${ commonheader(_("Workflow Editor"), "Oozie", user) | n,unicode }
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+<script type="text/html" id="mapreduce-widget">
|
|
|
|
|
+ <!-- ko if: $root.workflow.getNodeById(id()) -->
|
|
|
|
|
+ <div class="row-fluid" data-bind="with: $root.workflow.getNodeById(id())">
|
|
|
|
|
+ <div data-bind="visible: $root.isEditing" style="margin-bottom: 20px">
|
|
|
|
|
+ <input type="text" data-bind="value: id" />
|
|
|
|
|
+ <input type="text" data-bind="value: name" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <ul class="nav nav-tabs">
|
|
|
|
|
+ <li class="active"><a data-bind="attr: { href: '#action-' + id()}" data-toggle="tab">${ _('MapReduce') }</a></li>
|
|
|
|
|
+ <li><a data-bind="attr: { href: '#properties-' + id()}" data-toggle="tab">${ _('Properties') }</a></li>
|
|
|
|
|
+ <li><a data-bind="attr: { href: '#sla-' + id()}" href="#sla" data-toggle="tab">${ _('SLA') }</a></li>
|
|
|
|
|
+ <li><a data-bind="attr: { href: '#credentials-' + id()}" data-toggle="tab">${ _('Credentials') }</a></li>
|
|
|
|
|
+ <li><a data-bind="attr: { href: '#transitions-' + id()}" data-toggle="tab">${ _('Transitions') }</a></li>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ <div class="tab-content">
|
|
|
|
|
+ <div class="tab-pane active" data-bind="attr: { id: 'action-' + id() }">
|
|
|
|
|
+
|
|
|
|
|
+ <span data-bind="text: $root.workflow_properties.jar_path.label"></span>
|
|
|
|
|
+ <input type="text" data-bind="value: properties.jar_path" />
|
|
|
|
|
+ </br>
|
|
|
|
|
+ <span data-bind="template: { name: 'common-properties-parameters' }"></span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="tab-pane" data-bind="attr: { id: 'properties-' + id() }">
|
|
|
|
|
+ <span data-bind="template: { name: 'common-action-properties' }"></span>
|
|
|
|
|
+ <br/>
|
|
|
|
|
+ </br>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="tab-pane" data-bind="attr: { id: 'sla-' + id() }">
|
|
|
|
|
+ <span data-bind="template: { name: 'common-action-sla' }"></span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="tab-pane" data-bind="attr: { id: 'credentials-' + id() }">
|
|
|
|
|
+ <span data-bind="template: { name: 'common-action-credentials' }"></span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="tab-pane" data-bind="attr: { id: 'transitions-' + id() }">
|
|
|
|
|
+ <span data-bind="template: { name: 'common-action-transition' }"></span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- /ko -->
|
|
|
|
|
+</script>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<script type="text/html" id="subworkflow-widget">
|
|
<script type="text/html" id="subworkflow-widget">
|
|
|
<!-- ko if: $root.workflow.getNodeById(id()) -->
|
|
<!-- ko if: $root.workflow.getNodeById(id()) -->
|
|
|
<div class="row-fluid" data-bind="with: $root.workflow.getNodeById(id())">
|
|
<div class="row-fluid" data-bind="with: $root.workflow.getNodeById(id())">
|