mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 13:25:26 +02:00
refactor(UAC): refactor common views to components (#1013)
This commit is contained in:
parent
344eee098d
commit
a864641692
30 changed files with 510 additions and 481 deletions
12
app/directives/accessControlForm/por-access-control-form.js
Normal file
12
app/directives/accessControlForm/por-access-control-form.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
angular.module('portainer').component('porAccessControlForm', {
|
||||
templateUrl: 'app/directives/accessControlForm/porAccessControlForm.html',
|
||||
controller: 'porAccessControlFormController',
|
||||
bindings: {
|
||||
// This object will be populated with the form data.
|
||||
// Model reference in porAccessControlFromModel.js
|
||||
formData: '=',
|
||||
// Optional. An existing resource control object that will be used to set
|
||||
// the default values of the component.
|
||||
resourceControl: '<'
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue