|
|
@@ -1592,7 +1592,21 @@ ${ hueIcons.symbols() }
|
|
|
<div class="row-fluid" style="margin-bottom: 5px">
|
|
|
|
|
|
<div class="editor span12" data-bind="css: {'single-snippet-editor ace-container-resizable' : $root.editorMode() }, clickForAceFocus: ace">
|
|
|
- <!-- ko if: statementType() != 'text' -->
|
|
|
+ <!-- ko if: statementType() == 'file' -->
|
|
|
+ <div class="control-group">
|
|
|
+ <label class="control-label">${_('Query File')}</label>
|
|
|
+ <div class="controls">
|
|
|
+ <input type="text" class="input-xxlarge filechooser-input" data-bind="value: statementPath, valueUpdate: 'afterkeydown', filechooser: statementPath" placeholder="${ _('Path to file, e.g. /user/hue/sample.sql, s3a://hue/sample.sql') }"/>
|
|
|
+ <!-- ko if: statementPath() -->
|
|
|
+ <a data-bind="attr: {href: '/filebrowser/view=' + statementPath() }" target="_blank" title="${ _('Open in new tab') }">
|
|
|
+ <i class="fa fa-external-link-square"></i>
|
|
|
+ </a>
|
|
|
+ <!-- /ko -->
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- /ko -->
|
|
|
+
|
|
|
+ <!-- ko if: statementType() == 'document' -->
|
|
|
<div class="control-group">
|
|
|
<label class="control-label">${_('Query File')}</label>
|
|
|
<div class="controls">
|