<thead>
<tr>
<th class="crm-search-admin-icon-col"></th>
+ <th>{{:: ts('Link') }}</th>
<th class="crm-search-admin-icon-col">{{:: ts('Icon') }}</th>
<th>{{:: ts('Open') }}</th>
<th>{{:: ts('Text') }}</th>
- <th>{{:: ts('Link') }}</th>
<th>{{:: ts('Show if') }}</th>
<th>{{:: ts('Style') }}</th>
<th class="crm-search-admin-icon-col"></th>
<td class="crm-search-admin-icon-col">
<i class="crm-i fa-arrows crm-search-move-icon"></i>
</td>
+ <td class="form-inline">
+ <crm-search-admin-link-select api-entity="$ctrl.apiEntity" api-params="$ctrl.apiParams" link="item" links="$ctrl.links" on-change="$ctrl.onChangeLink(item, newLink)"></crm-search-admin-link-select>
+ </td>
<td class="crm-search-admin-icon-col">
<span class="crm-editable-enabled" ng-click="pickIcon($index)">
<i class="{{ item.icon ? 'crm-i ' + item.icon : '' }}" style="opacity: 1"></i>
<input type="text" class="form-control" ng-model="item.text">
<crm-search-admin-token-select model="item" field="text" suffix=":label"></crm-search-admin-token-select>
</td>
- <td class="form-inline">
- <crm-search-admin-link-select api-entity="$ctrl.apiEntity" api-params="$ctrl.apiParams" link="item" links="$ctrl.links" on-change="$ctrl.onChangeLink(item, newLink)"></crm-search-admin-link-select>
- </td>
<td class="form-inline">
<input ng-model="item.condition[0]" crm-ui-select="{placeholder: item.action ? ts('Allowed') : ts('Always'), data: $ctrl.fields}" ng-change="$ctrl.onChangeCondition(item)">
<div class="form-group" ng-if="item.condition[0] === 'check user permission'">