PHP Classes

File: modules/cms/widgets/assetlist/partials/_move_form.php

Recommend this page to a friend!
  Packages of Luke Towers   Winter   modules/cms/widgets/assetlist/partials/_move_form.php   Download  
File: modules/cms/widgets/assetlist/partials/_move_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,614 bytes
 

Contents

Class file image Download
<?= Form::open([
   
'data-request'=>$this->getEventHandler('onMove'),
   
'data-request-success'=>"\$(this).trigger('close.oc.popup')",
   
'data-stripe-load-indicator'=>1,
   
'id'=>'asset-move-popup-form'
]) ?>
<div class="modal-header">
        <button type="button" class="close" data-dismiss="popup">&times;</button>
        <h4 class="modal-title"><?= e(trans('cms::lang.asset.move_popup_title')) ?></h4>
    </div>
    <div class="modal-body">
        <div class="form-group">
            <label><?= e(trans('cms::lang.asset.move_destination')) ?></label>
            <select
                class="form-control custom-select"
                name="dest"
                data-placeholder="<?= e(trans('backend::lang.media.move_please_select')) ?>">
                <option></option>
                <?php foreach ($directories as $path => $directory): ?>
<option value="<?= e($path) ?>"><?= e($directory) ?></option>
                <?php endforeach ?>
</select>
        </div>

        <input type="hidden" name="theme" value="<?= e($this->theme->getDirName()) ?>">
        <input type="hidden" name="selectedList" value="<?= e($selectedList) ?>">
    </div>
    <div class="modal-footer">
        <button
            type="submit"
            class="btn btn-primary">
            <?= e(trans('backend::lang.media.move_button')) ?>
</button>
        <button
            type="button"
            class="btn btn-default"
            data-dismiss="popup">
            <?= e(trans('backend::lang.form.cancel')) ?>
</button>
    </div>
<?= Form::close() ?>