mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
20 lines
862 B
Plaintext
20 lines
862 B
Plaintext
%tr
|
|
%td
|
|
%select{name: "enterprise_relationship_parent_id", "ng-model" => "parent_id", "ng-options" => "e.id as e.name for e in Enterprises.my_enterprises"}
|
|
|
|
%td
|
|
permits
|
|
%td
|
|
%select{name: "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()", click: "checkAllPermissions()"}}
|
|
Everything
|
|
%div{"ng-repeat" => "permission in EnterpriseRelationships.all_permissions"}
|
|
%label
|
|
%input{type: "checkbox", "ng-model" => "permissions[permission]"}
|
|
to {{ EnterpriseRelationships.permission_presentation(permission) }}
|
|
%td.actions
|
|
%input{type: "button", value: "Create", "ng-click" => "create()"}
|
|
.errors {{ EnterpriseRelationships.create_errors }}
|