Initial implementation of the dependency injector thingy.

This commit is contained in:
flash 2025-01-29 23:56:56 +00:00
parent d462ee0594
commit 9e5945cbd4
3 changed files with 62 additions and 130 deletions
templates/manage/users

View file

@ -59,7 +59,7 @@
<label class="form__label">
<div class="form__label__text">Inherit Colour</div>
<div class="form__label__input">
{{ input_checkbox('ur_col_inherit', '', role_ur_col_inherit is defined ? role_ur_col_inherit : (role_info is not null and role_info.hasColour ? role_info.colour.shouldInherit : true)) }}
{{ input_checkbox('ur_col_inherit', '', role_ur_col_inherit is defined ? role_ur_col_inherit : (role_info is not null and role_info.hasColour ? role_info.colour.inherits : true)) }}
</div>
</label>

View file

@ -99,7 +99,7 @@
<label class="form__label">
<div class="form__label__text">Custom Colour</div>
<div class="form__label__input">
{{ input_checkbox('colour[enable]', '', not user_info.colour.shouldInherit, '', '', false, null, not can_edit_user) }}
{{ input_checkbox('colour[enable]', '', not user_info.colour.inherits, '', '', false, null, not can_edit_user) }}
</div>
</label>