</tr>
</thead>
<tbody ui-sortable="$ctrl.sortableOptions" ng-model="$ctrl.group">
- <tr ng-repeat="item in $ctrl.group">
+ <tr ng-repeat="item in $ctrl.group" class="crm-draggable">
<td class="crm-search-admin-icon-col">
- <i class="crm-i fa-arrows disabled"></i>
+ <i class="crm-i fa-arrows crm-search-move-icon"></i>
</td>
<td class="crm-search-admin-icon-col">
<span class="crm-editable-enabled" ng-click="pickIcon($index)">
</legend>
<div class="crm-search-admin-edit-columns" ng-model="$ctrl.display.settings.columns" ui-sortable="$ctrl.parent.sortableOptions">
<fieldset ng-repeat="col in $ctrl.display.settings.columns" class="crm-draggable">
- <legend>{{ $ctrl.parent.getColLabel(col) }}</legend>
+ <legend><i class="crm-i fa-arrows crm-search-move-icon"></i> {{ $ctrl.parent.getColLabel(col) }}</legend>
<div class="form-inline" title="{{ ts('Should this item display on its own line or inline with other items?') }}">
<label><input type="checkbox" ng-model="col.break"> {{:: ts('Display on new line') }}</label>
<button type="button" class="btn-xs pull-right" ng-click="$ctrl.parent.removeCol($index)" title="{{:: ts('Remove') }}">
</legend>
<div class="crm-search-admin-edit-columns" ng-model="$ctrl.display.settings.columns" ui-sortable="$ctrl.parent.sortableOptions">
<fieldset ng-repeat="col in $ctrl.display.settings.columns" class="crm-draggable">
- <legend>{{ $ctrl.parent.getColLabel(col) }}</legend>
+ <legend><i class="crm-i fa-arrows crm-search-move-icon"></i> {{ $ctrl.parent.getColLabel(col) }}</legend>
<div class="form-inline crm-search-admin-flex-row">
<label for="crm-search-admin-edit-col-{{ $index }}">{{:: ts('Header:') }}</label>
<input id="crm-search-admin-edit-col-{{ $index }}" class="form-control crm-flex-1" type="text" ng-model="col.label" >
display: inline-block;
}
-#bootstrap-theme.crm-search i.fa-arrows {
- cursor: move;
+#bootstrap-theme.crm-search i.crm-search-move-icon {
+ opacity: .5;
+}
+#bootstrap-theme.crm-search .crm-draggable:hover > * > i.crm-search-move-icon {
+ opacity: 1;
}
#bootstrap-theme.crm-search .api4-clause-badge {
#bootstrap-theme.crm-search .api4-clause-badge .caret {
margin: 0;
}
+/* Icon only shown while dragging */
#bootstrap-theme.crm-search .api4-clause-badge .crm-i {
display: none;
padding: 0 6px;