XF 2.2 Add disabled="true" to xf:select only if $noEdit = true

mjda

Well-known member
I'm wondering if there is any way to do what I'm wanting to do here:

Code:
<xf:select label="Player" name="player_id" value="{$player.player_id}"{{ $noEdit ? ' disabled="true"' : '' }}>

Basically I want this select field to be disabled if $noEdit = true. I still want it to show, but just be disabled.
 
Back
Top Bottom