Put link first in SearchDisplay Links options
authorlarssandergreen <lars@wildsight.ca>
Sun, 2 Jul 2023 15:51:55 +0000 (09:51 -0600)
committerlarssandergreen <lars@wildsight.ca>
Sun, 2 Jul 2023 15:51:55 +0000 (09:51 -0600)
ext/search_kit/ang/crmSearchAdmin/crmSearchAdminLinkGroup.html

index 11a1765f098dd66a3b3e84549477e450fa70e61c..4bb1f77e532327f1978f5b951f24ff129029f875 100644 (file)
@@ -2,10 +2,10 @@
   <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>
@@ -16,6 +16,9 @@
       <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>
@@ -32,9 +35,6 @@
         <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'">