Created
December 7, 2016 10:30
-
-
Save alxy/248b5005f3281f37f43ef74ffb395c1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a | |
class="btn btn-default oc-icon-sitemap" | |
data-control="popup" | |
data-handler="onShowReorderPopup" | |
href="javascript:;" | |
> | |
Reorder Categories | |
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?= Form::open(['id' => 'disableForm']) ?> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="popup">×</button> | |
<h4 class="modal-title">Reorder Categories</h4> | |
</div> | |
<div class="modal-body"> | |
<?php if ($this->fatalError): ?> | |
<p class="flash-message static error"><?= $fatalError ?></p> | |
<?php endif ?> | |
<div class="form"> | |
<?= $this->reorderRender() ?> | |
</div> | |
</div> | |
<div class="modal-footer"> | |
<button | |
type="submit" | |
class="btn btn-primary" | |
data-request="onRefreshList" | |
data-dismiss="popup" | |
data-stripe-load-indicator | |
> | |
Save | |
</button> | |
<button | |
type="button" | |
class="btn btn-default" | |
data-dismiss="popup"> | |
Close | |
</button> | |
</div> | |
<?= Form::close() ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Renders the reorder popup | |
* | |
* @param null $recordId | |
* @return mixed | |
* @throws \SystemException | |
*/ | |
public function index_onShowReorderPopup($recordId = null) { | |
$this->reorder(); | |
return $this->makePartial('reorder_form'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment