Show iamTarget in relevant forms
This commit is contained in:
@@ -48,7 +48,7 @@ const template = `
|
||||
<small class="form-text" style="color: darkred;" v-if="field.error">{{ field.error }}</small>
|
||||
</span>
|
||||
<span v-if="field.type === 'text' && (Array.isArray(field.hidden) ? !field.hidden.includes(mode) : !field.hidden) && (typeof field.if !== 'function' || field.if(data))">
|
||||
<label :for="uuid+field.field">{{ field.name }}</label>
|
||||
<label :for="uuid+field.field" style="display: inline">{{ field.name }} <span v-if="field.help" :title="field.help"><img src="/assets/info-circle-solid.svg" height="18"></span></label>
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
|
||||
@@ -84,6 +84,13 @@ class AppResource extends CRUDBase {
|
||||
field: 'description',
|
||||
type: 'textarea',
|
||||
},
|
||||
{
|
||||
name: 'IAM Target',
|
||||
field: 'id',
|
||||
type: 'text',
|
||||
readonly: true,
|
||||
help: `(LDAP use) Allows restricting users to only those that can access this application. (filter: iamTarget)`,
|
||||
},
|
||||
{
|
||||
name: 'Associated LDAP Clients',
|
||||
field: 'ldap_client_ids',
|
||||
|
||||
@@ -83,6 +83,13 @@ class MachineResource extends CRUDBase {
|
||||
type: 'text',
|
||||
placeholder: 'dns01.my.domain',
|
||||
},
|
||||
{
|
||||
name: 'IAM Target',
|
||||
field: 'id',
|
||||
type: 'text',
|
||||
readonly: true,
|
||||
help: `(LDAP use) Allows restricting users to only those that can access this computer. (filter: iamTarget)`,
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,6 +71,13 @@ class MachineGroupResource extends CRUDBase {
|
||||
field: 'description',
|
||||
type: 'textarea',
|
||||
},
|
||||
{
|
||||
name: 'IAM Target',
|
||||
field: 'id',
|
||||
type: 'text',
|
||||
readonly: true,
|
||||
help: `(LDAP use) Allows restricting users to only those that can access this computer group. (filter: iamTarget)`,
|
||||
},
|
||||
{
|
||||
name: 'Computers',
|
||||
field: 'machine_ids',
|
||||
|
||||
Reference in New Issue
Block a user