PHP Classes

File: modules/cms/controllers/themes/_theme_fields_form.php

Recommend this page to a friend!
  Packages of Luke Towers   Winter   modules/cms/controllers/themes/_theme_fields_form.php   Download  
File: modules/cms/controllers/themes/_theme_fields_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: 7 months ago
Size: 1,597 bytes
 

Contents

Class file image Download
<?= Form::ajax('onSaveFields', [
   
'id' => 'themeFieldsForm',
   
'data-popup-load-indicator' => true
]) ?>

    <input type="hidden" name="theme" value="<?= $themeDir ?>" />

    <div class="modal-header">
        <button type="button" class="close" data-dismiss="popup">&times;</button>
        <h4 class="modal-title"><?= e(trans('cms::lang.theme.edit_properties_title')) ?>: <?= $themeDir ?></h4>
    </div>

    <?php if (!$this->fatalError): ?>

        <div class="modal-body">
            <?= $widget->render() ?>
</div>
        <div class="modal-footer">
            <button
                type="submit"
                class="btn btn-primary">
                <?= e(trans('cms::lang.theme.save_properties')) ?>
</button>

            <button
                type="button"
                class="btn btn-default"
                data-dismiss="popup">
                <?= e(trans('backend::lang.form.cancel')) ?>
</button>
        </div>

    <?php else: ?>

        <div class="modal-body">
            <p class="flash-message static error"><?= e(trans($this->fatalError)) ?></p>
        </div>
        <div class="modal-footer">
            <button
                type="button"
                class="btn btn-default"
                data-dismiss="popup">
                <?= e(trans('backend::lang.form.close')) ?>
</button>
        </div>

    <?php endif ?>

    <script>
        setTimeout(
            function(){ $('#themeFieldsForm input.form-control:first').focus() },
            310
        )
    </script>

<?= Form::close() ?>