Просмотр файла modules/album/templates/enter_password.phtml

Размер файла: 1.26Kb
<?php

/**
 * This file is part of JohnCMS Content Management System.
 *
 * @copyright JohnCMS Community
 * @license   https://opensource.org/licenses/GPL-3.0 GPL-3.0
 * @link      https://johncms.com JohnCMS Project
 */

/**
 * @var $title
 * @var $page_title
 * @var $data
 */

$this->layout(
    'system::layout/default',
    [
        'title'      => $title,
        'page_title' => $page_title,
    ]
);
?>

<form name="file_edit_form" action="<?= $data['action_url'] ?>" method="post">
    <?php if (! empty($data['error_message'])): ?>
        <?= $this->fetch(
            'system::app/alert',
            [
                'alert_type' => 'alert-danger border-0',
                'alert'      => $data['error_message'],
            ]
        ) ?>
    <?php endif; ?>
    <p><?= __('You must type a password to view this album') ?></p>
    <div class="form-group">
        <label for="password"><?= __('Password') ?></label>
        <input type="password" class="form-control" id="password"
               name="password" required>
    </div>

    <div class="mt-3">
        <button type="submit" name="submit" value="1" class="btn btn-primary"><?= __('Enter') ?></button>
        <a href="<?= $data['back_url'] ?>" class="btn btn-secondary"><?= __('Cancel') ?></a>
    </div>
</form>