|
@@ -169,7 +169,7 @@
|
|
|
<a class="widget-icon"><i class="fa fa-file-code-o"></i></a>
|
|
<a class="widget-icon"><i class="fa fa-file-code-o"></i></a>
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
|
|
|
|
|
- <!-- ko if: widgetType() == 'sqoop-widget' -->
|
|
|
|
|
|
|
+ <!-- ko if: widgetType() == 'sqoop-widget' || widgetType() == 'sqoop-document-widget' -->
|
|
|
<img src="${ static('oozie/art/icon_sqoop_48.png') }" class="widget-icon">
|
|
<img src="${ static('oozie/art/icon_sqoop_48.png') }" class="widget-icon">
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
|
|
|
|
@@ -813,7 +813,7 @@
|
|
|
<div data-bind="visible: ! $parent.ooziePropertiesExpanded()" class="nowrap">
|
|
<div data-bind="visible: ! $parent.ooziePropertiesExpanded()" class="nowrap">
|
|
|
<!-- ko if: $root.getDocumentById(type(), properties.uuid()) -->
|
|
<!-- ko if: $root.getDocumentById(type(), properties.uuid()) -->
|
|
|
<!-- ko with: $root.getDocumentById(type(), properties.uuid()) -->
|
|
<!-- ko with: $root.getDocumentById(type(), properties.uuid()) -->
|
|
|
- <select data-bind="options: $root.pigScripts, optionsText: 'name', optionsValue: 'uuid', value: $parent.properties.uuid, select2Version4:{ placeholder: '${ _ko('Java program name...')}'}"></select>
|
|
|
|
|
|
|
+ <select data-bind="options: $root.pigScripts, optionsText: 'name', optionsValue: 'uuid', value: $parent.properties.uuid, select2Version4:{ placeholder: '${ _ko('Pig program name...')}'}"></select>
|
|
|
<a href="#" data-bind="attr: { href: absoluteUrl() }" target="_blank" title="${ _('Open') }">
|
|
<a href="#" data-bind="attr: { href: absoluteUrl() }" target="_blank" title="${ _('Open') }">
|
|
|
<i class="fa fa-external-link-square"></i>
|
|
<i class="fa fa-external-link-square"></i>
|
|
|
</a>
|
|
</a>
|
|
@@ -1373,6 +1373,71 @@
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+<script type="text/html" id="sqoop-document-widget">
|
|
|
|
|
+ <!-- ko if: $root.workflow.getNodeById(id()) -->
|
|
|
|
|
+ <div class="row-fluid" data-bind="with: $root.workflow.getNodeById(id())" style="padding: 10px">
|
|
|
|
|
+
|
|
|
|
|
+ <div data-bind="visible: ! $root.isEditing()">
|
|
|
|
|
+ <span data-bind="template: { name: 'logs-icon' }"></span>
|
|
|
|
|
+ <!-- ko if: $root.getDocumentById('query-sqoop1', properties.uuid()) -->
|
|
|
|
|
+ <!-- ko with: $root.getDocumentById('query-sqoop1', properties.uuid()) -->
|
|
|
|
|
+ <a data-bind="attr: { href: absoluteUrl() }" target="_blank"><span data-bind='text: name'></span></a>
|
|
|
|
|
+ <br/>
|
|
|
|
|
+ <span data-bind='text: description' class="muted"></span>
|
|
|
|
|
+ <!-- /ko -->
|
|
|
|
|
+ <!-- /ko -->
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div data-bind="visible: $root.isEditing">
|
|
|
|
|
+ <div data-bind="visible: ! $parent.ooziePropertiesExpanded()" class="nowrap">
|
|
|
|
|
+ <!-- ko if: $root.getDocumentById('query-sqoop1', properties.uuid()) -->
|
|
|
|
|
+ <!-- ko with: $root.getDocumentById('query-sqoop1', properties.uuid()) -->
|
|
|
|
|
+ <select data-bind="options: $root.sqoopScripts, optionsText: 'name', optionsValue: 'uuid', value: $parent.properties.uuid, select2Version4:{ placeholder: '${ _ko('Sqoop program name...')}'}"></select>
|
|
|
|
|
+ <a href="#" data-bind="attr: { href: absoluteUrl() }" target="_blank" title="${ _('Open') }">
|
|
|
|
|
+ <i class="fa fa-external-link-square"></i>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ <div data-bind='text: description' style="padding: 3px; margin-top: 2px" class="muted"></div>
|
|
|
|
|
+ <!-- /ko -->
|
|
|
|
|
+ <!-- /ko -->
|
|
|
|
|
+
|
|
|
|
|
+ <div class="row-fluid">
|
|
|
|
|
+ <div class="span6" data-bind="template: { name: 'common-properties-parameters' }"></div>
|
|
|
|
|
+ <div class="span6" data-bind="template: { name: 'common-properties-files' }"></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div data-bind="visible: $parent.ooziePropertiesExpanded">
|
|
|
|
|
+ <ul class="nav nav-tabs">
|
|
|
|
|
+ <li class="active"><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: 'properties-' + id() }">
|
|
|
|
|
+ <span data-bind="template: { name: 'common-action-properties' }"></span>
|
|
|
|
|
+ </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="mapreduce-widget">
|
|
<script type="text/html" id="mapreduce-widget">
|
|
|
<!-- ko if: $root.workflow.getNodeById(id()) -->
|
|
<!-- ko if: $root.workflow.getNodeById(id()) -->
|
|
|
<div class="row-fluid" data-bind="with: $root.workflow.getNodeById(id())" style="padding: 10px">
|
|
<div class="row-fluid" data-bind="with: $root.workflow.getNodeById(id())" style="padding: 10px">
|