{{#if (empty list)}}
<div class="blank-list">{{i18n "common.no_data"}}</div>
{{else}}
<table class="full-width feature-list" width="100%">
{{#each list as |feature|}}
<tbody data-enabled="{{feature.enabled}}" data-default="{{feature.default}}">
<tr>
    <td>
        <div class="title badge"><strong>{{@key}}</strong></div>
        <div class="description"><span title="{{i18n "org_features.prop.technical_description"}}">{{feature.description}}</span></div>
    </td>
    <td>
        <span class="icon">{{on_off feature.enabled}}</span>
        {{i18n "org_features.status.enabled." feature.enabled}}
    </td>
    <td data-id="actions">
        {{#if feature.enabled}}
        <div data-element="popup-container">
            {{#if feature.default}}
            <span class="link" title="{{i18n "org_features.tip.cannot_be_disabled"}}" disabled>{{i18n "org_features.action.disable"}}</span>
            {{else}}
            <label class="link" for="open_{{join "." @key "disable_feature"}}">{{i18n "org_features.action.disable"}}</label>
            <div data-element="popup_form">
                <input type="radio" name="action" id="cancel_{{join "." @key "disable_feature"}}">
                <input type="radio" name="action" id="open_{{join "." @key "disable_feature"}}">
                {{> forms.feature.disactivation org=../Layout.org slug=@key name=(join "." @key "disable_feature")}}
            </div>
            {{/if}}
        </div>
        {{else}}
        <div data-element="popup-container">
            <label class="link" for="open_{{join "." @key "enable_feature"}}">{{i18n "org_features.action.enable"}}</label>
            <div data-element="popup_form">
                <input type="radio" name="action" id="cancel_{{join "." @key "enable_feature"}}">
                <input type="radio" name="action" id="open_{{join "." @key "enable_feature"}}">
                {{> forms.feature.activation org=../Layout.org slug=@key name=(join "." @key "enable_feature")}}
            </div>
        </div>
        {{/if}}
    </td>
</tr>
{{#unless @last}}
<tr class="spacer"><td colspan="2"></td></tr>
{{/unless}}
</tbody>
{{/each}}
</table>
{{/if}}
