|
|
@@ -305,6 +305,10 @@ ${ commonheader(_('Query'), app_name, user, "68px") | n,unicode }
|
|
|
<i class="fa fa-file-archive-o" class="snippet-icon"></i>
|
|
|
<!-- /ko -->
|
|
|
|
|
|
+ <!-- ko if: type() == 'py' -->
|
|
|
+ <i class="fa fa-file-code-o" class="snippet-icon"></i>
|
|
|
+ <!-- /ko -->
|
|
|
+
|
|
|
<!-- ko if: type() == 'impala' -->
|
|
|
<img src="${ static('impala/art/icon_impala_48.png') }" class="snippet-icon">
|
|
|
<!-- /ko -->
|
|
|
@@ -360,7 +364,7 @@ ${ commonheader(_('Query'), app_name, user, "68px") | n,unicode }
|
|
|
<a href="javascript:void(0)" data-bind="visible: $root.isEditing, click: function(){ remove($parent, $data); window.setTimeout(redrawFixedHeaders, 100);}"><i class="fa fa-times"></i></a>
|
|
|
</div>
|
|
|
</h2>
|
|
|
- <!-- ko if: ['text', 'jar'].indexOf(type()) == -1 -->
|
|
|
+ <!-- ko if: ['text', 'jar', 'py'].indexOf(type()) == -1 -->
|
|
|
<div class="snippet-body">
|
|
|
<div class="row-fluid">
|
|
|
<div data-bind="css: editorKlass">
|
|
|
@@ -639,21 +643,22 @@ ${ commonheader(_('Query'), app_name, user, "68px") | n,unicode }
|
|
|
<div data-bind="attr:{'id': 'editor_'+id()}, html: statement_raw, value: statement_raw, medium: {}" class="text-snippet"></div>
|
|
|
</div>
|
|
|
<!-- /ko -->
|
|
|
- <!-- ko if: type() == 'jar' -->
|
|
|
+ <!-- ko if: type() == 'jar' || type() == 'py'-->
|
|
|
<div class="snippet-body">
|
|
|
- <input type="text" class="input-xlarge" data-bind="value: properties.app_jar" placeholder="${ _('Path to application jar, e.g. hdfs://localhost:8020/user/hue/oozie-examples.jar') }"/>
|
|
|
+ <input type="text" class="input-xlarge" data-bind="value: properties.app_jar, visible: type() =='jar'" placeholder="${ _('Path to application jar, e.g. hdfs://localhost:8020/user/hue/oozie-examples.jar') }"/>
|
|
|
+ <input type="text" class="input-xlarge" data-bind="value: properties.py_file, visible: type() =='py'" placeholder="${ _('Path to python file, e.g. script.py') }"/>
|
|
|
</br>
|
|
|
- <input type="text" class="input-xlarge" data-bind="value: properties.class" placeholder="${ _('Class name of application, e.g. org.apache.oozie.example.SparkFileCopy') }"/>
|
|
|
+ <input type="text" class="input-xlarge" data-bind="value: properties.class, visible: type() =='jar'" placeholder="${ _('Class name of application, e.g. org.apache.oozie.example.SparkFileCopy') }"/>
|
|
|
</br>
|
|
|
<ul data-bind="foreach: properties.arguments" class="unstyled">
|
|
|
<li>
|
|
|
- <input type="text" data-bind="value: $data" placeholder="${ _('e.g. 1000, market') }"/>
|
|
|
- <a href="#" data-bind="click: function(){ $parent.arguments.remove(this); }">
|
|
|
+ <input type="text" data-bind="value: value" placeholder="${ _('e.g. 1000, market') }"/>
|
|
|
+ <a href="#" data-bind="click: function(){ $parent.properties.arguments.remove(this); }">
|
|
|
<i class="fa fa-minus"></i>
|
|
|
</a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
- <a class="pointer" data-bind="click: function(){ $data.properties.arguments.push(''); }">
|
|
|
+ <a class="pointer" data-bind="click: function(){ $data.properties.arguments.push({'value': ''}); }">
|
|
|
<i class="fa fa-plus"></i> ${ _('Add argument') }
|
|
|
</a>
|
|
|
</br>
|
|
|
@@ -661,7 +666,7 @@ ${ commonheader(_('Query'), app_name, user, "68px") | n,unicode }
|
|
|
<i class="fa fa-play"></i>
|
|
|
</a>
|
|
|
</div>
|
|
|
- <!-- /ko -->
|
|
|
+ <!-- /ko -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</script>
|