<commit_before><template>

    <div class="uk-grid pk-grid-large" data-uk-grid-margin>
        <div class="uk-flex-item-1 uk-form-horizontal">

            <div class="uk-form-row">
                <label for="form-title" class="uk-form-label">{{ 'Title' | trans }}</label>
                <div class="uk-form-controls">
                    <input id="form-title" class="uk-form-width-large" type="text" name="title" v-model="widget.title" v-valid="required">
                    <p class="uk-form-help-block uk-text-danger" v-show="form.title.invalid">{{ 'Title cannot be blank.' | trans }}</p>
                </div>
            </div>

            <div class="uk-form-row">
                <label class="uk-form-label">{{ 'Login Redirect' | trans }}</label>
                <div class="uk-form-controls">
                    <input-link class="uk-form-width-large" link="{{@ widget.data.redirect_login}}"></input-link>
                </div>
            </div>

            <div class="uk-form-row">
                <label class="uk-form-label">{{ 'Logout Redirect' | trans }}</label>
                <div class="uk-form-controls">
                    <input-link class="uk-form-width-large" link="{{@ widget.data.redirect_logout}}"></input-link>
                </div>
            </div>

        </div>
        <div class="pk-width-sidebar pk-width-sidebar-large">

            <partial name="settings"></partial>

        </div>
    </div>

</template>

<script>

    module.exports = {

        section: {
            label: 'Settings',
            active: 'system/widget-login',
            priority: 0
        },

        replace: false,

        props: ['widget', 'config', 'form']

    };

    window.Widgets.components['widget-login'] = module.exports;

</script><commit_msg>fix login widget<commit_after><template>

    <div class="uk-grid pk-grid-large" data-uk-grid-margin>
        <div class="uk-flex-item-1 uk-form-horizontal">

            <div class="uk-form-row">
                <label for="form-title" class="uk-form-label">{{ 'Title' | trans }}</label>
                <div class="uk-form-controls">
                    <input id="form-title" class="uk-form-width-large" type="text" name="title" v-model="widget.title" v-valid="required">
                    <p class="uk-form-help-block uk-text-danger" v-show="form.title.invalid">{{ 'Title cannot be blank.' | trans }}</p>
                </div>
            </div>

            <div class="uk-form-row">
                <label class="uk-form-label">{{ 'Login Redirect' | trans }}</label>
                <div class="uk-form-controls">
                    <input-link class="uk-form-width-large" link="{{@ widget.data.redirect_login}}"></input-link>
                </div>
            </div>

            <div class="uk-form-row">
                <label class="uk-form-label">{{ 'Logout Redirect' | trans }}</label>
                <div class="uk-form-controls">
                    <input-link class="uk-form-width-large" link="{{@ widget.data.redirect_logout}}"></input-link>
                </div>
            </div>

        </div>
        <div class="pk-width-sidebar pk-width-sidebar-large">

            <partial name="settings"></partial>

        </div>
    </div>

</template>

<script>

    module.exports = {

        section: {
            label: 'Settings',
            active: 'system/login',
            priority: 0
        },

        replace: false,

        props: ['widget', 'config', 'form']

    };

    window.Widgets.components['widget-login'] = module.exports;

</script>
{'fraction_non_alphanumeric': 0.1784313725490196, 'fraction_numerical': 0.0011204481792717086, 'mean_word_length': 1.78984375, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, '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': '6198704', 'n_tokens_mistral': 1094, 'n_tokens_neox': 1037, 'n_words': 195}