<commit_before><?php echo $header; ?><?php echo $column_left; ?>

<div id="content">
    <div class="page-header">
        <div class="container-fluid">
            <div class="pull-right">
                <button type="submit" form="form-coingate" data-toggle="tooltip" title="<?php echo $button_save; ?>"
                        class="btn btn-primary"><i class="fa fa-save"></i></button>
                <a href="<?php echo $cancel; ?>" data-toggle="tooltip" title="<?php echo $button_cancel; ?>"
                   class="btn btn-default"><i class="fa fa-reply"></i></a></div>
            <h1><?php echo $heading_title; ?></h1>
            <ul class="breadcrumb">
                <?php foreach ($breadcrumbs as $breadcrumb) { ?>
                <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
                <?php } ?>
            </ul>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title"><i class="fa fa-pencil"></i> <?php echo $edit_text; ?></h3>
        </div>

        <div class="panel-body">
            <div class="row">
                <div class="col-sm-12">
                    <div class="alert alert-info">
                        Having trouble? We can help you!
                        <a href="<?php echo $log_download_url; ?>" target="_blank">Click here to generate the debug information</a> and send it to
                        <a href="mailto:<EMAIL>"><EMAIL></a>
                    </div>
                </div>
            </div>

            <?php if(in_array('btc', $currencies)) { ?>
                <div class="row">
                    <div class="col-sm-12">
                        <div class="alert alert-warning">
                            <i class="fa fa-exclamation-circle"></i>
                            We noticed you're using BTC as Currency in your settings. Take a note that we can't convert BTC to EUR/USD.
                        </div>
                    </div>
                </div>
            <?php } ?>

            <?php if(in_array($_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1'))) { ?>
                <div class="row">
                    <div class="col-sm-12">
                        <div class="alert alert-warning">
                            <i class="fa fa-exclamation-circle"></i>
                            We have noticed that you are using <i>localhost</i> to host your website. Please take note that we may not be able to send payment callback to localhost. You must make your website available from outside.
                        </div>
                    </div>
                </div>
            <?php } ?>

            <?php if ($error_warning) { ?>
                <div class="row">
                    <div class="col-sm-12">
                        <div class="alert alert-danger">
                            <i class="fa fa-exclamation-circle"></i>
                            <?php echo $error_warning; ?>
                            <button type="button" class="close" data-dismiss="alert">&times;</button>
                        </div>
                    </div>
                </div>
            <?php } ?>


            <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form-coingate"
                  class="form-horizontal">
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="coingate_status"><?php echo $status_label; ?></label>

                    <div class="col-sm-10">
                        <select name="coingate_status" class="form-control">
                            <?php if ($coingate_status) { ?>
                            <option value="1" selected="selected"><?php echo $status_on; ?></option>
                            <option value="0"><?php echo $status_off; ?></option>
                            <?php } else { ?>
                            <option value="1"><?php echo $status_on; ?></option>
                            <option value="0" selected="selected"><?php echo $status_off; ?></option>
                            <?php } ?>
                        </select>
                    </div>
                </div>

                <div class="form-group required">
                    <label class="col-sm-2 control-label" for="coingate_app_id"><?php echo $app_id_label; ?></label>

                    <div class="col-sm-10">
                        <input type="text" name="coingate_app_id" value="<?php echo $coingate_app_id; ?>"
                               class="form-control">

                        <?php if ($app_id_error) { ?>
                        <div class="text-danger"><?php echo $app_id_error; ?></div>
                        <?php } ?>
                    </div>
                </div>

                <div class="form-group required">
                    <label class="col-sm-2 control-label" for="coingate_api_key"><?php echo $api_key_label; ?></label>

                    <div class="col-sm-10">
                        <input type="text" name="coingate_api_key" value="<?php echo $coingate_api_key; ?>"
                               class="form-control">

                        <?php if ($api_key_error) { ?>
                        <div class="text-danger"><?php echo $api_key_error; ?></div>
                        <?php } ?>
                    </div>
                </div>

                <div class="form-group required">
                    <label class="col-sm-2 control-label"
                           for="coingate_api_secret"><?php echo $api_secret_label; ?></label>

                    <div class="col-sm-10">
                        <input type="text" name="coingate_api_secret" value="<?php echo $coingate_api_secret; ?>"
                               class="form-control">
                        <?php if ($api_secret_error) { ?>
                        <div class="text-danger"><?php echo $api_secret_error; ?></div>
                        <?php } ?>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label" for="coingate_test"><?php echo $test_label; ?></label>

                    <div class="col-sm-10">
                        <select name="coingate_test" class="form-control">
                            <?php if($coingate_test == 0): ?>
                            <option value="0" selected="selected"><?php echo $test_off; ?></option>
                            <option value="1"><?php echo $test_on; ?></option>
                            <?php else: ?>
                            <option value="0"><?php echo $test_off; ?></option>
                            <option value="1" selected="selected"><?php echo $test_on; ?></option>
                            <?php endif;?>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label"
                           for="coingate_receive_currency"><?php echo $receive_currency_label; ?></label>

                    <div class="col-sm-10">
                        <select name="coingate_receive_currency" class="form-control">
                            <?php foreach(array('eur', 'usd', 'btc') as $currency): ?>
                            <option value="<?php echo $currency; ?>"
                            <?php echo $currency == $coingate_receive_currency ? 'selected' : ''; ?>
                            ><?php echo $currencies_label[$currency]; ?></option>
                            <?php endforeach; ?>
                        </select>
                    </div>

                    <?php if ($receive_currency_error) { ?>
                    <div class="text-danger"><?php echo $receive_currency_error; ?></div>
                    <?php } ?>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label"
                           for="coingate_new_order_status_id"><?php echo $new_order_status_label; ?></label>

                    <div class="col-sm-10">
                        <select name="coingate_new_order_status_id" class="form-control">
                            <?php foreach ($order_statuses as $order_status) { ?>
                            <?php if ($order_status['order_status_id'] == $coingate_new_order_status_id) { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"
                                    selected="selected"><?php echo $order_status['name']; ?></option>
                            <?php } else { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"><?php echo $order_status['name']; ?></option>
                            <?php } ?>
                            <?php } ?>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label"
                           for="coingate_cancelled_order_status_id"><?php echo $cancelled_order_status_label; ?></label>

                    <div class="col-sm-10">
                        <select name="coingate_cancelled_order_status_id" class="form-control">
                            <?php foreach ($order_statuses as $order_status) { ?>
                            <?php if ($order_status['order_status_id'] == $coingate_cancelled_order_status_id) { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"
                                    selected="selected"><?php echo $order_status['name']; ?></option>
                            <?php } else { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"><?php echo $order_status['name']; ?></option>
                            <?php } ?>
                            <?php } ?>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label"
                           for="coingate_expired_order_status_id"><?php echo $expired_order_status_label; ?></label>

                    <div class="col-sm-10">
                        <select name="coingate_expired_order_status_id" class="form-control">
                            <?php foreach ($order_statuses as $order_status) { ?>
                            <?php if ($order_status['order_status_id'] == $coingate_expired_order_status_id) { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"
                                    selected="selected"><?php echo $order_status['name']; ?></option>
                            <?php } else { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"><?php echo $order_status['name']; ?></option>
                            <?php } ?>
                            <?php } ?>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label"
                           for="coingate_failed_order_status_id"><?php echo $failed_order_status_label; ?></label>

                    <div class="col-sm-10">
                        <select name="coingate_failed_order_status_id" class="form-control">
                            <?php foreach ($order_statuses as $order_status) { ?>
                            <?php if ($order_status['order_status_id'] == $coingate_failed_order_status_id) { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"
                                    selected="selected"><?php echo $order_status['name']; ?></option>
                            <?php } else { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"><?php echo $order_status['name']; ?></option>
                            <?php } ?>
                            <?php } ?>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label"
                           for="coingate_completed_order_status_id"><?php echo $completed_order_status_label; ?></label>

                    <div class="col-sm-10">
                        <select name="coingate_completed_order_status_id" class="form-control">
                            <?php foreach ($order_statuses as $order_status) { ?>
                            <?php if ($order_status['order_status_id'] == $coingate_completed_order_status_id) { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"
                                    selected="selected"><?php echo $order_status['name']; ?></option>
                            <?php } else { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"><?php echo $order_status['name']; ?></option>
                            <?php } ?>
                            <?php } ?>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label"><?php echo $sort_order_label; ?></label>

                    <div class="col-sm-10">
                        <input type="text" name="coingate_sort_order" value="<?php echo $coingate_sort_order; ?>"
                               class="form-control"/>
                    </div>
                </div>
            </form>
        </div>
    </div>

</div>
</div>

<?php echo $footer; ?>
<commit_msg>Add help text in admin form<commit_after><?php echo $header; ?><?php echo $column_left; ?>

<div id="content">
    <div class="page-header">
        <div class="container-fluid">
            <div class="pull-right">
                <button type="submit" form="form-coingate" data-toggle="tooltip" title="<?php echo $button_save; ?>"
                        class="btn btn-primary"><i class="fa fa-save"></i></button>
                <a href="<?php echo $cancel; ?>" data-toggle="tooltip" title="<?php echo $button_cancel; ?>"
                   class="btn btn-default"><i class="fa fa-reply"></i></a></div>
            <h1><?php echo $heading_title; ?></h1>
            <ul class="breadcrumb">
                <?php foreach ($breadcrumbs as $breadcrumb) { ?>
                <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
                <?php } ?>
            </ul>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title"><i class="fa fa-pencil"></i> <?php echo $edit_text; ?></h3>
        </div>

        <div class="panel-body">
            <div class="row">
                <div class="col-sm-12">
                    <div class="alert alert-info">
                        Having trouble? We can help you!
                        <a href="<?php echo $log_download_url; ?>" target="_blank">Click here to generate the debug information</a> and send it to
                        <a href="mailto:<EMAIL>"><EMAIL></a>
                    </div>
                </div>
            </div>

            <?php if(in_array('btc', $currencies)) { ?>
                <div class="row">
                    <div class="col-sm-12">
                        <div class="alert alert-warning">
                            <i class="fa fa-exclamation-circle"></i>
                            We noticed you're using BTC as Currency in your settings. Take a note that we can't convert BTC to EUR/USD.
                        </div>
                    </div>
                </div>
            <?php } ?>

            <?php if(in_array($_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1'))) { ?>
                <div class="row">
                    <div class="col-sm-12">
                        <div class="alert alert-warning">
                            <i class="fa fa-exclamation-circle"></i>
                            We have noticed that you are using <i>localhost</i> to host your website. Please take note that we may not be able to send payment callback to localhost. You must make your website available from outside.
                        </div>
                    </div>
                </div>
            <?php } ?>

            <?php if ($error_warning) { ?>
                <div class="row">
                    <div class="col-sm-12">
                        <div class="alert alert-danger">
                            <i class="fa fa-exclamation-circle"></i>
                            <?php echo $error_warning; ?>
                            <button type="button" class="close" data-dismiss="alert">&times;</button>
                        </div>
                    </div>
                </div>
            <?php } ?>


            <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form-coingate"
                  class="form-horizontal">
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="coingate_status"><?php echo $status_label; ?></label>

                    <div class="col-sm-10">
                        <select name="coingate_status" class="form-control">
                            <?php if ($coingate_status) { ?>
                            <option value="1" selected="selected"><?php echo $status_on; ?></option>
                            <option value="0"><?php echo $status_off; ?></option>
                            <?php } else { ?>
                            <option value="1"><?php echo $status_on; ?></option>
                            <option value="0" selected="selected"><?php echo $status_off; ?></option>
                            <?php } ?>
                        </select>
                    </div>
                </div>

                <div class="form-group required">
                    <label class="col-sm-2 control-label" for="coingate_app_id"><?php echo $app_id_label; ?></label>

                    <div class="col-sm-10">
                        <input type="text" name="coingate_app_id" value="<?php echo $coingate_app_id; ?>"
                               class="form-control">

                        <?php if ($app_id_error) { ?>
                        <div class="text-danger"><?php echo $app_id_error; ?></div>
                        <?php } ?>
                    </div>
                </div>

                <div class="form-group required">
                    <label class="col-sm-2 control-label" for="coingate_api_key"><?php echo $api_key_label; ?></label>

                    <div class="col-sm-10">
                        <input type="text" name="coingate_api_key" value="<?php echo $coingate_api_key; ?>"
                               class="form-control">

                        <?php if ($api_key_error) { ?>
                        <div class="text-danger"><?php echo $api_key_error; ?></div>
                        <?php } ?>
                    </div>
                </div>

                <div class="form-group required">
                    <label class="col-sm-2 control-label"
                           for="coingate_api_secret"><?php echo $api_secret_label; ?></label>

                    <div class="col-sm-10">
                        <input type="text" name="coingate_api_secret" value="<?php echo $coingate_api_secret; ?>"
                               class="form-control">
                        <?php if ($api_secret_error) { ?>
                        <div class="text-danger"><?php echo $api_secret_error; ?></div>
                        <?php } ?>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label" for="coingate_test"><?php echo $test_label; ?></label>

                    <div class="col-sm-10">
                        <select name="coingate_test" class="form-control">
                            <?php if($coingate_test == 0): ?>
                            <option value="0" selected="selected"><?php echo $test_off; ?></option>
                            <option value="1"><?php echo $test_on; ?></option>
                            <?php else: ?>
                            <option value="0"><?php echo $test_off; ?></option>
                            <option value="1" selected="selected"><?php echo $test_on; ?></option>
                            <?php endif;?>
                        </select>

                        <div class="help-block">
                          Enable "test mode" to test on <a href="https://sandbox.coingate.com/" target="_blank">sandbox.coingate.com</a>.
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label"
                           for="coingate_receive_currency"><?php echo $receive_currency_label; ?></label>

                    <div class="col-sm-10">
                        <select name="coingate_receive_currency" class="form-control">
                            <?php foreach(array('eur', 'usd', 'btc') as $currency): ?>
                            <option value="<?php echo $currency; ?>"
                            <?php echo $currency == $coingate_receive_currency ? 'selected' : ''; ?>
                            ><?php echo $currencies_label[$currency]; ?></option>
                            <?php endforeach; ?>
                        </select>

                        <div class="help-block">
                          Currency you want to receive at CoinGate.com
                        </div>
                    </div>

                    <?php if ($receive_currency_error) { ?>
                    <div class="text-danger"><?php echo $receive_currency_error; ?></div>
                    <?php } ?>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label"
                           for="coingate_new_order_status_id"><?php echo $new_order_status_label; ?></label>

                    <div class="col-sm-10">
                        <select name="coingate_new_order_status_id" class="form-control">
                            <?php foreach ($order_statuses as $order_status) { ?>
                            <?php if ($order_status['order_status_id'] == $coingate_new_order_status_id) { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"
                                    selected="selected"><?php echo $order_status['name']; ?></option>
                            <?php } else { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"><?php echo $order_status['name']; ?></option>
                            <?php } ?>
                            <?php } ?>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label"
                           for="coingate_cancelled_order_status_id"><?php echo $cancelled_order_status_label; ?></label>

                    <div class="col-sm-10">
                        <select name="coingate_cancelled_order_status_id" class="form-control">
                            <?php foreach ($order_statuses as $order_status) { ?>
                            <?php if ($order_status['order_status_id'] == $coingate_cancelled_order_status_id) { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"
                                    selected="selected"><?php echo $order_status['name']; ?></option>
                            <?php } else { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"><?php echo $order_status['name']; ?></option>
                            <?php } ?>
                            <?php } ?>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label"
                           for="coingate_expired_order_status_id"><?php echo $expired_order_status_label; ?></label>

                    <div class="col-sm-10">
                        <select name="coingate_expired_order_status_id" class="form-control">
                            <?php foreach ($order_statuses as $order_status) { ?>
                            <?php if ($order_status['order_status_id'] == $coingate_expired_order_status_id) { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"
                                    selected="selected"><?php echo $order_status['name']; ?></option>
                            <?php } else { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"><?php echo $order_status['name']; ?></option>
                            <?php } ?>
                            <?php } ?>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label"
                           for="coingate_failed_order_status_id"><?php echo $failed_order_status_label; ?></label>

                    <div class="col-sm-10">
                        <select name="coingate_failed_order_status_id" class="form-control">
                            <?php foreach ($order_statuses as $order_status) { ?>
                            <?php if ($order_status['order_status_id'] == $coingate_failed_order_status_id) { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"
                                    selected="selected"><?php echo $order_status['name']; ?></option>
                            <?php } else { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"><?php echo $order_status['name']; ?></option>
                            <?php } ?>
                            <?php } ?>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label"
                           for="coingate_completed_order_status_id"><?php echo $completed_order_status_label; ?></label>

                    <div class="col-sm-10">
                        <select name="coingate_completed_order_status_id" class="form-control">
                            <?php foreach ($order_statuses as $order_status) { ?>
                            <?php if ($order_status['order_status_id'] == $coingate_completed_order_status_id) { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"
                                    selected="selected"><?php echo $order_status['name']; ?></option>
                            <?php } else { ?>
                            <option value="<?php echo $order_status['order_status_id']; ?>"><?php echo $order_status['name']; ?></option>
                            <?php } ?>
                            <?php } ?>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label"><?php echo $sort_order_label; ?></label>

                    <div class="col-sm-10">
                        <input type="text" name="coingate_sort_order" value="<?php echo $coingate_sort_order; ?>"
                               class="form-control"/>
                    </div>
                </div>
            </form>
        </div>
    </div>

</div>
</div>

<?php echo $footer; ?>

{'fraction_non_alphanumeric': 0.1452452629714893, 'fraction_numerical': 0.004533380556047459, 'mean_word_length': 1.2896529354524813, 'pattern_counts': {'":': 0, '<': 665, '<?xml version=': 0, '>': 665, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2220541', 'n_tokens_mistral': 7340, 'n_tokens_neox': 7096, 'n_words': 1459}