mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 22:04:25 +02:00
RoleForm: Replace static inline styles with css class
The static inline style for resetriction text element is replaced with css class `role-restriction-text` to avoid Content-Security-Policy violations.
This commit is contained in:
parent
afd2a65df6
commit
4e8107c231
@ -262,7 +262,7 @@ class RoleForm extends RepositoryForm
|
|||||||
PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY
|
PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY
|
||||||
)))),
|
)))),
|
||||||
'description' => $spec['description'],
|
'description' => $spec['description'],
|
||||||
'style' => $isUnrestricted ? 'text-decoration:line-through;' : '',
|
'class' => $isUnrestricted ? 'unrestricted-role' : '',
|
||||||
'readonly' => $isUnrestricted ?: null
|
'readonly' => $isUnrestricted ?: null
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
@ -269,6 +269,10 @@ form.role-form {
|
|||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.unrestricted-role {
|
||||||
|
text-decoration: line-through;
|
||||||
|
}
|
||||||
|
|
||||||
.control-label > * {
|
.control-label > * {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user