{extends file="admin-layout.tpl"}

{block name="after-bootstrap-css"}
    <style>
        .recaptcha_radio {
            cursor: pointer;
        }
    </style>
{/block}

{block name="no-return-functions"}
    {$admin_current_location = 'module'}
{/block}

{block name="page-title"}{intl l='ReCaptcha module configuration' d='recaptcha.bo.default'}{/block}

{block name="check-resource"}admin.module{/block}
{block name="check-access"}view{/block}
{block name="check-module"}ReCaptcha{/block}

{block name="main-content"}
    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h4 class="panel-title">
                    {intl l="ReCaptcha configuration" d='recaptcha.bo.default'}
                </h4>
            </div>
            {form name="recaptcha_configuration_form"}
                <form action="{url path="/admin/module/recaptcha/configuration"}" method="post">
                    {form_hidden_fields form=$form}

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

                    {form_field form=$form field='success_url'}
                        <input type="hidden" name="{$name}" value="{url path={navigate to="current"}}"/>
                    {/form_field}

                    <div class="panel-body">
                        <div class="row">
                            <h3 class="col-md-12">{intl l="reCAPTCHA access :" d='recaptcha.bo.default'}</h3>
                            <div class="col-md-6">
                                {render_form_field form=$form field="site_key" value={$data}}
                            </div>
                            <div class="col-md-6">
                                {render_form_field form=$form field="secret_key" value={$data}}
                            </div>
                            <div class="col-md-12">
                                {render_form_field form=$form field="captcha_style" value={$data}}
                            </div>
                            <div class="col-md-12">
                                {render_form_field form=$form field="min_score" value={$data}}
                            </div>
                            <div class="col-md-12">
                                <p>{intl l="These infos are available here : " d='recaptcha.bo.default'}<a href="http://www.google.com/recaptcha/admin">http://www.google.com/recaptcha/admin</a></p>
                            </div>
                            <div class="col-md-12">
                                <input type="submit" class="btn btn-success form-control">
                            </div>
                        </div>
                    </div>
                </form>
            {/form}
        </div>
    </div>
{/block}

{block name="javascript-initialization"}

{/block}
