PHP Classes

File: modules/system/controllers/updates/_plugin_form.php

Recommend this page to a friend!
  Packages of Luke Towers   Winter   modules/system/controllers/updates/_plugin_form.php   Download  
File: modules/system/controllers/updates/_plugin_form.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Winter
Content management system that uses MVC
Author: By
Last change:
Date: 8 months ago
Size: 1,509 bytes
 

Contents

Class file image Download
<?= Form::open(['id' => 'pluginForm']) ?>
<div class="modal-header">
        <button type="button" class="close" data-dismiss="popup">&times;</button>
        <h4 class="modal-title"><?= e(trans('system::lang.install.plugin_label')) ?></h4>
    </div>
    <div class="modal-body">

        <?php if ($this->fatalError): ?>
<p class="flash-message static error"><?= e($fatalError) ?></p>
        <?php endif ?>

        <div class="form-group">
            <label for="pluginCode"><?= e(trans('system::lang.plugin.name.label')) ?></label>
            <input
                name="code"
                type="text"
                class="form-control"
                id="pluginCode"
                value="<?= e(post('code')) ?>" />
            <p class="help-block"><?= e(trans('system::lang.plugin.name.help')) ?></p>
        </div>

    </div>

    <div class="modal-footer">
        <button
            type="submit"
            class="btn btn-primary"
            data-dismiss="popup"
            data-control="popup"
            data-handler="onInstallPlugin">
            <?= e(trans('system::lang.install.plugin_label')) ?>
</button>
        <button
            type="button"
            class="btn btn-default"
            data-dismiss="popup">
            <?= e(trans('backend::lang.form.cancel')) ?>
</button>
    </div>
    <script>
        setTimeout(
            function(){ $('#pluginCode').select() },
            310
        )
    </script>
<?= Form::close() ?>