2018-10-19 15:17:02 +00:00
|
|
|
import validations from 'consul-ui/validations/token';
|
2018-11-19 14:53:08 +00:00
|
|
|
import builderFactory from 'consul-ui/utils/form/builder';
|
2018-10-19 15:17:02 +00:00
|
|
|
const builder = builderFactory();
|
2019-05-01 18:09:29 +00:00
|
|
|
export default function(container, name = '', v = validations, form = builder) {
|
2018-10-19 15:17:02 +00:00
|
|
|
return form(name, {})
|
|
|
|
.setValidators(v)
|
2019-05-01 18:09:29 +00:00
|
|
|
.add(container.form('policy'))
|
|
|
|
.add(container.form('role'));
|
2018-10-19 15:17:02 +00:00
|
|
|
}
|