mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Use the new design for checkboxes and fix alignment. Removes redesigned-input, which is a small regression on the old design, but I think it's acceptable bcause we're going to shut it down soon.
15 lines
878 B
Plaintext
15 lines
878 B
Plaintext
.ofn-drop-down.ofn-drop-down-v2.right#columns-dropdown{ "ng-controller": 'ColumnsDropdownCtrl' }
|
|
.ofn-drop-down-label
|
|
= " #{t('admin.columns')}".html_safe
|
|
%span{ 'ng-class' => "expanded && 'icon-caret-up' || !expanded && 'icon-caret-down'" }
|
|
%div.menu{ 'ng-show' => "expanded" }
|
|
.menu_items
|
|
.menu_item{ "ng-repeat": "column in columns", "ng-click": "toggle(column);" }
|
|
%input{ type: "checkbox", "ng-checked": "column.visible" }
|
|
%span
|
|
{{ column.name }}
|
|
%hr
|
|
%div.menu_item.text-center
|
|
%input.fullwidth.orange{ type: "button", "ng-value": "saved() ? 'Saved': 'Saving'", "ng-show": "saved() || saving", "ng-disabled": "saved()" }
|
|
%input.fullwidth.red{ type: "button", value: t('admin.column_save_as_default').html_safe, "ng-show": "!saved() && !saving", "ng-click": "saveColumnPreferences(action)" }
|