Просмотр файла modules/downloads/templates/import.phtml

Размер файла: 2.58Kb
<?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 $urls
 * @var $action_url
 * @var $extensions
 */

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

<form name="file_import_form" action="<?= $action_url ?>" method="post" enctype="multipart/form-data">

    <div class="form-group">
        <label for="url"><?= __('Link to file') ?></label>
        <input type="text" class="form-control" id="url" placeholder="<?= __('Link to file') ?>"
               name="fail" value="" required>
    </div>

    <div class="form-group">
        <label for="new_file"><?= __('Save as') ?></label>
        <input type="text" class="form-control" id="new_file" placeholder="<?= __('Save as') ?>"
               name="new_file" value="" maxlength="100">
        <div class="text-muted small"><?= __('max. 100 characters') ?></div>
    </div>

    <div class="form-group">
        <label for="text"><?= __('File Name') ?></label>
        <input type="text" class="form-control" id="text" placeholder="<?= __('File Name') ?>"
               name="text" value="" maxlength="200">
        <div class="text-muted small"><?= __('max. 200 characters') ?></div>
    </div>

    <div class="form-group">
        <label for="name_link"><?= __('Link to download file') ?></label>
        <input type="text" class="form-control" id="name_link" placeholder="<?= __('Link to download file') ?>"
               name="name_link" value="<?= __('Download') ?>" maxlength="200" required>
    </div>

    <div class="form-group">
        <div class="custom-file">
            <input type="file" class="custom-file-input" id="screen" name="screen" aria-describedby="screen">
            <label class="custom-file-label" for="screen"><?= __('Choose screenshot') ?></label>
        </div>
    </div>

    <div class="form-group">
        <label for="desc"><?= __('Description') ?></label>
        <div><?= $bbcode ?></div>
        <textarea id="desc" class="form-control" maxlength="65000" name="opis" cols="24" rows="4"></textarea>
    </div>

    <div class="alert alert-warning mt-3">
        <?= __('Allowed extensions') ?>: <?= $extensions ?>
    </div>

    <div>
        <button type="submit" name="submit" value="1" class="btn btn-primary"><?= __('Save') ?></button>
        <a href="?id=<?= $id ?>" class="btn btn-secondary"><?= __('Cancel') ?></a>
    </div>
</form>