|
|
@@ -26,6 +26,7 @@ ${ commonheader(_('Search Indexes'), "indexer", user, "29px") | n,unicode }
|
|
|
|
|
|
<link rel="stylesheet" href="${ static('desktop/ext/chosen/chosen.min.css') }">
|
|
|
<link rel="stylesheet" href="${ static('indexer/css/admin.css') }">
|
|
|
+
|
|
|
<style type="text/css">
|
|
|
.hueBreadcrumb {
|
|
|
padding: 12px 14px;
|
|
|
@@ -293,12 +294,12 @@ ${ commonheader(_('Search Indexes'), "indexer", user, "29px") | n,unicode }
|
|
|
<tr>
|
|
|
<th width="25%" class="nowrap">${_('Name')}</th>
|
|
|
<th width="25%" class="nowrap">${_('Type')}</th>
|
|
|
+ <th width="5%" class="nowrap">${_('ID')}</th>
|
|
|
<th width="0%" class="nowrap">${_('Required')}</th>
|
|
|
<th width="0%" class="nowrap">${_('Indexed')}</th>
|
|
|
- <th width="0%" class="nowrap">${_('Stored')}</th>
|
|
|
- <th width="0%" class="nowrap">${_('Unique Key')}</th>
|
|
|
+ <th width="0%" class="nowrap">${_('Stored')}</th>
|
|
|
<th width="0%" class="nowrap">${_('Default Field')}</th>
|
|
|
- <th width="50%"></th>
|
|
|
+ <th width="45%"></th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody data-bind="foreach: collection.fields">
|
|
|
@@ -306,21 +307,27 @@ ${ commonheader(_('Search Indexes'), "indexer", user, "29px") | n,unicode }
|
|
|
<td data-bind="editableText: name">
|
|
|
<span class="pull-left fa fa-pencil"></span>
|
|
|
</td>
|
|
|
- <td><select data-bind="options: $parent.fieldTypes, value: type, chosen: {}" name="type"></select></td>
|
|
|
- <td><p class="text-center"><input data-bind="checked: required" type="checkbox"></p></td>
|
|
|
+ <td>
|
|
|
+ <select data-bind="options: $parent.fieldTypes, value: type, chosen: {}" name="type"></select>
|
|
|
+ </td>
|
|
|
<td>
|
|
|
<p class="text-center">
|
|
|
- <input data-bind="checked: indexed, visible: !uniqueKeyField()" type="checkbox">
|
|
|
+ <input data-bind="checked: uniqueKeyField, visible: !uniqueKeyField()" name="unique-key" type="checkbox" />
|
|
|
<span class="fa" data-bind="css: {'fa-check': uniqueKeyField}">
|
|
|
</p>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <p class="text-center"><input data-bind="checked: required" type="checkbox"></p>
|
|
|
</td>
|
|
|
- <td><p class="text-center"><input data-bind="checked: stored" type="checkbox"></p></td>
|
|
|
<td>
|
|
|
<p class="text-center">
|
|
|
- <input data-bind="checked: uniqueKeyField, visible: !uniqueKeyField()" name="unique-key" type="checkbox" />
|
|
|
+ <input data-bind="checked: indexed, visible: !uniqueKeyField()" type="checkbox">
|
|
|
<span class="fa" data-bind="css: {'fa-check': uniqueKeyField}">
|
|
|
</p>
|
|
|
</td>
|
|
|
+ <td>
|
|
|
+ <p class="text-center"><input data-bind="checked: stored" type="checkbox"></p>
|
|
|
+ </td>
|
|
|
<td>
|
|
|
<p class="text-center">
|
|
|
<input data-bind="checked: df, visible: !df()" name="unique-key" type="checkbox" />
|
|
|
@@ -336,7 +343,12 @@ ${ commonheader(_('Search Indexes'), "indexer", user, "29px") | n,unicode }
|
|
|
|
|
|
<br style="clear: both" />
|
|
|
<br />
|
|
|
- <a data-bind="click: collection.newField" href="javascript:void(0)" class="btn btn-info"><i class="fa fa-plus"></i> ${_("Add")}</a>
|
|
|
+ <a data-bind="click: collection.newField" href="javascript:void(0)" class="btn btn-info">
|
|
|
+ <i class="fa fa-plus"></i> ${_("Add")}
|
|
|
+ </a>
|
|
|
+ <a data-bind="click: collection.newIdField" href="javascript:void(0)" class="btn btn-info" title="${ _('Generate a random ID') }">
|
|
|
+ <i class="fa fa-plus"></i> ${_("Add ID")}
|
|
|
+ </a>
|
|
|
</script>
|
|
|
<!--/ Create wizard -->
|
|
|
<!--/ Create by file -->
|
|
|
@@ -363,11 +375,11 @@ ${ commonheader(_('Search Indexes'), "indexer", user, "29px") | n,unicode }
|
|
|
<tr>
|
|
|
<th width="25%" class="nowrap">${_('Name')}</th>
|
|
|
<th width="25%" class="nowrap">${_('Type')}</th>
|
|
|
- <th width="0%" class="nowrap">${_('Unique key field')}</th>
|
|
|
+ <th width="5%" class="nowrap">${_('ID')}</th>
|
|
|
<th width="0%" class="nowrap">${_('Required')}</th>
|
|
|
<th width="0%" class="nowrap">${_('Indexed')}</th>
|
|
|
<th width="0%" class="nowrap">${_('Stored')}</th>
|
|
|
- <th width="50%"></th>
|
|
|
+ <th width="45%"></th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody data-bind="foreach: ko.utils.arrayFilter(collection().fields(), function(field) { return field.saved() })">
|