Cleanup the state modal. Fix form post
parent
f9a3c5fc83
commit
9fe7ba8c8c
|
@ -18,7 +18,7 @@
|
||||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
//
|
//
|
||||||
|
|
||||||
if ( !canEdit('System') ) return;
|
if (!canEdit('System')) return;
|
||||||
|
|
||||||
$running = daemonCheck();
|
$running = daemonCheck();
|
||||||
|
|
||||||
|
@ -49,38 +49,32 @@ foreach ( $states as $state ) {
|
||||||
<span aria-hidden="true">×</span>
|
<span aria-hidden="true">×</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<form name="contentForm" method="post" action="?view=state">
|
||||||
<form class="" name="contentForm" method="get" action="?view=state">
|
<div class="modal-body">
|
||||||
<?php
|
<?php
|
||||||
// We have to manually insert the csrf key into the form when using a modal generated via ajax call
|
// We have to manually insert the csrf key into the form when using a modal generated via ajax call
|
||||||
echo getCSRFinputHTML();
|
echo getCSRFinputHTML();
|
||||||
?>
|
?>
|
||||||
<input type="hidden" name="view" value="state"/>
|
<input type="hidden" name="action" value="state"/>
|
||||||
<input type="hidden" name="action" value="state"/>
|
<input type="hidden" name="apply" value="1"/>
|
||||||
<input type="hidden" name="apply" value="1"/>
|
<div class="form-group">
|
||||||
<div class="form-group">
|
<label for="runState"><?php echo translate('Change State')?></label>
|
||||||
<label for="runState" class="col-md-3 col-form-label float-left"><?php echo translate('Change State')?></label>
|
<select id="runState" name="runState" class="form-control">
|
||||||
<div class="col-md-9">
|
<?php echo $content ?>
|
||||||
<select id="runState" name="runState" class="form-control">
|
</select>
|
||||||
<?php echo $content ?>
|
</div><!--form-group-->
|
||||||
</select>
|
<div class="form-group">
|
||||||
</div><!--col-md-9-->
|
<label for="newState"><?php echo translate('NewState') ?></label>
|
||||||
</div><!--form-group-->
|
<input class="form-control" type="text" id="newState"/>
|
||||||
<div class="form-group">
|
</div>
|
||||||
<label for="newState" class="col-md-3 col-form-label float-left"><?php echo translate('NewState') ?></label>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="modal-footer">
|
||||||
<input class="form-control" type="text" id="newState"/>
|
<button class="btn btn-primary" type="button" id="btnApply"><?php echo translate('Apply') ?></button>
|
||||||
</div>
|
<button class="btn btn-primary" type="button" id="btnSave" disabled><?php echo translate('Save') ?></button>
|
||||||
</div>
|
<button class="btn btn-danger" type="button" id="btnDelete" disabled><?php echo translate('Delete') ?></button>
|
||||||
</form>
|
<p class="pull-left hidden" id="pleasewait"><?php echo translate('PleaseWait') ?></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
</form>
|
||||||
<button class="btn btn-primary" type="button" id="btnApply"><?php echo translate('Apply') ?></button>
|
|
||||||
<button class="btn btn-primary" type="button" id="btnSave" disabled><?php echo translate('Save') ?></button>
|
|
||||||
<button class="btn btn-danger" type="button" id="btnDelete" disabled><?php echo translate('Delete') ?></button>
|
|
||||||
<p class="pull-left hidden" id="pleasewait"><?php echo translate('PleaseWait') ?></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue