<?php
defined('C5_EXECUTE') or die('Access Denied.');

/* @var Concrete\Core\Form\Service\Form $form */
/* @var Concrete\Core\Validation\CSRF\Token $token */
/* @var Concrete\Core\Page\View\PageView $view */

/* @var bool $csvAddBom */
/* @var string $datetimeFormat */
/* @var array $predefinedConstants */
?>
<form method="POST" action="<?= $view->action('submit') ?>">
    <?= $token->output('ccm-export-options') ?>

    <?= $form->label('', t('CSV')) ?>
    <div class="form-check">
        <?= $form->checkbox('csvAddBom', '1', $csvAddBom) ?>
        <label for="csvAddBom">
            <?= t('Include the BOM (Byte-Order Mark) in generated CSV files') ?>
        </label>
    </div>
    <?= $form->label('datetimeFormat', t('Date Format')); ?>
    <?= $form->select('datetimeFormat', $predefinedConstants, $datetimeFormat); ?>

    <div class="ccm-dashboard-form-actions-wrapper">
        <div class="ccm-dashboard-form-actions">
            <div class="float-end">
                <button type="submit" class="btn btn-primary"><?= t('Save') ?></button>
            </div>
        </div>
    </div>

</form>
