{% set can_edit = current_user.is_manager %} {% set readonly = '' if can_edit else 'readonly' %} {% set disabled = '' if can_edit else 'disabled' %}