mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
21 lines
1.0 KiB
Plaintext
21 lines
1.0 KiB
Plaintext
%tr
|
|
%td
|
|
%select.select2.fullwidth{id: "enterprise_relationship_parent_id", "ng-model" => "parent_id", "ng-options" => "e.id as e.name for e in Enterprises.my_enterprises"}
|
|
|
|
%td
|
|
= t 'admin_enterprise_relationships_permits'
|
|
%td
|
|
%select.select2.fullwidth{id: "enterprise_relationship_child_id", "ng-model" => "child_id", "ng-options" => "e.id as e.name for e in Enterprises.all_enterprises"}
|
|
%td
|
|
%label
|
|
%input{ type: "checkbox", "ng-checked": "allPermissionsChecked()", "ng-click": "checkAllPermissions()" }
|
|
= t 'admin_enterprise_relationships_everything'
|
|
%div{"ng-repeat" => "permission in EnterpriseRelationships.all_permissions"}
|
|
%label
|
|
%input{type: "checkbox", "ng-model" => "permissions[permission]"}
|
|
= t 'admin_enterprise_relationships_to'
|
|
{{ EnterpriseRelationships.permission_presentation(permission) }}
|
|
%td.actions
|
|
%input{type: "button", value: t(:admin_enterprise_relationships_button_create), "ng-click" => "create()"}
|
|
.errors {{ EnterpriseRelationships.create_errors }}
|