<div class="general-block-decorator">
    <div class="row">
        <div class="col-md-12">
            <div class="alert alert-warning">
                {intl l="Once this module is activated, every rewritten url saved will be automatically sanitized." d="urlsanitizer.bo.default"}
                <br>
                {intl l="If you want to sanitize the existing rewritten urls in your database, click on the button below." d="urlsanitizer.bo.default"}
                <br>
                {intl l="This will create a sanitized url and redirect the old url to the new one." d="urlsanitizer.bo.default"}
                <br>
                {intl l="Be careful ! This cannot be undone." d="urlsanitizer.bo.default"}
            </div>
            <a class="btn btn-danger" href="{url path='/admin/module/UrlSanitizer/sanitizeall'}">{intl l="Sanitize existing URLs" d="urlsanitizer.bo.default"}</a>

            <br><hr><br>
            {form name="urlsanitizer_form_configuration_form"}
                <form method="post" action="{url path='/admin/module/UrlSanitizer/configuration'}" {form_enctype form=$form}>
                    {form_hidden_fields form=$form}

                    {render_form_field field="success_url" value={url path='/admin/module/UrlSanitizer'}}
                    {render_form_field field="error_url" value={url path='/admin/module/UrlSanitizer'}}

                    {if $form_error}
                        <div class="row">
                            <div class="col-md-12">
                                <div class="alert alert-danger">{$form_error_message}</div>
                            </div>
                        </div>
                    {/if}

                    {render_form_field field='remove_html'}

                    <br>
                    <button type="submit" class="btn btn-success" >{intl l="Save Configuration" d="urlsanitizer.bo.default"}</button>
                </form>
            {/form}
        </div>
    </div>
</div>
