[importer] Combine extra properties in a show toggle on/off
@@ -494,14 +494,8 @@ ${ assist.assistPanel() }
</label>
</div>
- <div class="control-group">
- <label><div>${ _('Description') }</div>
- <input type="text" class="form-control input-xlarge" data-bind="value: description, valueUpdate: 'afterkeydown'" placeholder="${ _('Description') }">
- </label>
- </div>
-
- <label class="checkbox">
- <input type="checkbox" data-bind="checked: useDefaultLocation"> ${_('Default location')}
+ <label class="checkbox" data-bind="visible: tableFormat() != 'kudu'">
+ <input type="checkbox" data-bind="checked: useDefaultLocation"> ${_('Store in Default location')}
</label>
<span data-bind="visible: ! useDefaultLocation()">
<label for="path" class="control-label"><div>${ _('External location') }</div>
@@ -513,6 +507,18 @@ ${ assist.assistPanel() }
<input type="checkbox" data-bind="checked: importData, disable: ! useDefaultLocation() && $parent.createWizard.source.path() == nonDefaultLocation();"> ${_('Import data')}
</label>
+ <div class="control-group">
+ <label class="control-label"><div>${ _('Extra') }</div>
+ <a href="javascript:void(0)" data-bind="css: {'inactive-action': !showProperties()}, click: function() {showProperties(!showProperties()) }" title="${ _('Show extra properties') }">
+ <i class="fa fa-sliders"></i>
+ </a>
+ </label>
+
+ <span data-bind="visible: showProperties">
+ <label><div>${ _('Description') }</div>
+ <input type="text" class="form-control input-xlarge" data-bind="value: description, valueUpdate: 'afterkeydown'" placeholder="${ _('Description') }">
+ </label>
+
<label class="checkbox" data-bind="visible: $root.createWizard.source.inputFormat() == 'file'">
<input type="checkbox" data-bind="checked: hasHeader"> ${_('Use first row as header')}
</label>
@@ -537,6 +543,8 @@ ${ assist.assistPanel() }
</label>
</div>
</span>
+ </span>
+ </div>
<div class="control-group" data-bind="visible: tableFormat() == 'regexp'">
<label for="customRegexp" class="control-label"><div>${ _('Regexp') }</div>
@@ -1224,7 +1232,10 @@ ${ assist.assistPanel() }
self.format = ko.observable();
self.columns = ko.observableArray();
+
+ // UI
self.bulkColumnNames = ko.observable('');
+ self.showProperties = ko.observable(false);
self.columns.subscribe(function (newVal) {
self.bulkColumnNames(newVal.map(function (item) {
