
{% if is_blank_row %}
    <tr class="{{ model.FLAG_ROW_NEW }} {{ model.FLAG_DECK }}" {{ model.ATTR_DECK_ID }}>
        <td class="{{ model.FLAG_NAME }}">
            <input type="text" 
                class="{{ model.FLAG_NAME }}" 
                {{ model.ATTR_VALUE_CURRENT }} {{ model.ATTR_VALUE_PREVIOUS }} />
        </td>
        <td class="{{ model.FLAG_IS_COMMANDER }}">
            <input type="checkbox" 
                class="{{ model.FLAG_IS_COMMANDER }}" 
                {{ model.ATTR_VALUE_CURRENT }} {{ model.ATTR_VALUE_PREVIOUS }} />
        </td>
        <td class="{{ model.ATTR_COMMANDER_BRACKET_ID }} {{ model.FLAG_DDL_PREVIEW }}">
            {% include 'components/tcg/_preview_ddl_commander_bracket.html' %}
        </td>
        {% set active = True %}
        {% include 'components/common/inputs/_td_active.html' %}
    </tr>
{% else %}
    <tr class="{{ model.FLAG_DECK }}" {{ model.ATTR_DECK_ID }}="{{ deck.deck_id }}">
        <td class="{{ model.FLAG_NAME }}">
            <input type="text" 
                class="{{ model.FLAG_NAME }}" 
                {{ model.ATTR_VALUE_CURRENT }}="{{ deck.name }}"
                {{ model.ATTR_VALUE_PREVIOUS }}="{{ deck.name }}"
                value="{{ deck.name }}" />
        </td>
        <td class="{{ model.FLAG_IS_COMMANDER }}">
            <input type="checkbox" 
                class="{{ model.FLAG_IS_COMMANDER }}" 
                {{ model.ATTR_VALUE_CURRENT }}="{{ deck.is_commander | lower }}"
                {{ model.ATTR_VALUE_PREVIOUS }}="{{ deck.is_commander | lower }}"
                {% if deck.is_commander %}checked{% endif %}
                value="{{ deck.is_commander | lower }}" />
        </td>
        {% set commander_bracket_preview = deck.commander_bracket %}
        <td class="{{ model.ATTR_COMMANDER_BRACKET_ID }} {{ model.FLAG_DDL_PREVIEW }}">
            {% include 'components/tcg/_preview_ddl_commander_bracket.html' %}
        </td>
        {% set active = deck.active %}
        {% include 'components/common/inputs/_td_active.html' %}
    </tr>
{% endif %}
