<commit_before><table class="center">
    <tr>
        <th>{lang 'Group ID#'}</th>
        <th>{lang 'Name'}</th>
        <th>{lang 'Price (%0%)', $this->config->values['module.setting']['currency']}</th>
        <th>{lang 'Expiration Days'}</th>
        <th>{lang 'Active'}</th>
        <th>{lang 'Action'}</th>
    </tr>

    {each $membership in $memberships}
        <tr>
            <td>{% $membership->groupId %}</td>
            <td>{% $membership->name %}</td>
            <td>{% $membership->price %}</td>
            <td>{% $membership->expirationDays %}</td>
            <td>{if $membership->enable == 1} <span class="green1">{lang 'Enable'}</span> {else} <span class="red">{lang 'Disable'}</span> {/if}</td>
            <td>
                <a href="{{ $design->url('payment', 'admin', 'editmembership', $membership->groupId) }}">{lang 'Edit'}</a> | {{ $design->popupLinkConfirm(t('Delete (Irreversible!)'), 'payment', 'admin', 'deletemembership', $membership->groupId) }}
            </td>
        </tr>
    {/each}
</table>
<commit_msg>Dont allow admins to delete the default membership group<commit_after><table class="center">
    <tr>
        <th>{lang 'Group ID#'}</th>
        <th>{lang 'Name'}</th>
        <th>{lang 'Price (%0%)', $this->config->values['module.setting']['currency']}</th>
        <th>{lang 'Expiration Days'}</th>
        <th>{lang 'Active'}</th>
        <th>{lang 'Action'}</th>
    </tr>

    {each $membership in $memberships}
        <tr>
            <td>{% $membership->groupId %}</td>
            <td>{% $membership->name %}</td>
            <td>{% $membership->price %}</td>
            <td>{% $membership->expirationDays %}</td>
            <td>{if $membership->enable == 1} <span class="green1">{lang 'Enable'}</span> {else} <span class="red">{lang 'Disable'}</span> {/if}</td>
            <td>
                <a href="{{ $design->url('payment', 'admin', 'editmembership', $membership->groupId) }}">{lang 'Edit'}</a> |
                {if $default_group == $membership->groupId}
                    {{ $design->popupLinkConfirm(t('Delete (Irreversible!)'), 'payment', 'admin', 'deletemembership', $membership->groupId) }}
                {else}
                    <span class="gray">{lang 'Not deletable'}</span>
                {/if}
            </td>
        </tr>
    {/each}
</table>

{'fraction_non_alphanumeric': 0.23234916559691912, 'fraction_numerical': 0.0025673940949935813, 'mean_word_length': 2.448377581120944, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 100, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4672735', 'n_tokens_mistral': 777, 'n_tokens_neox': 752, 'n_words': 151}