Allow Select options to be disabled

This commit is contained in:
Stephen Abello
2021-03-03 15:57:43 +01:00
parent c2c69d9f43
commit ad0fdfe921
3 changed files with 24 additions and 2 deletions

View File

@@ -1,3 +1,3 @@
{# @copyright Copyright (C) 2010-2020 Combodo SARL #}
{# @license http://opensource.org/licenses/AGPL-3.0 #}
<option id="{{ oUIBlock.GetId() }}" value="{{ oUIBlock.GetValue() }}" {% if oUIBlock.IsSelected() %}selected{% endif %}>{{ oUIBlock.GetLabel() }}</option>
<option id="{{ oUIBlock.GetId() }}" value="{{ oUIBlock.GetValue() }}" {% if oUIBlock.IsSelected() %}selected{% endif %} {% if oUIBlock.IsDisabled() %}disabled{% endif %}>{{ oUIBlock.GetLabel() }}</option>