mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-26 05:40:12 +01:00
improved policy apply feature
This commit is contained in:
parent
b92431b0e1
commit
caeb050af3
@ -23,12 +23,13 @@ class ControllerPolicyApply extends Controller {
|
|||||||
system('sudo -n /etc/init.d/rc.piler reload', $val);
|
system('sudo -n /etc/init.d/rc.piler reload', $val);
|
||||||
|
|
||||||
if($val === 0) {
|
if($val === 0) {
|
||||||
print $lang->data['text_applied'];
|
$this->data['x'] = $lang->data['text_applied'];
|
||||||
} else {
|
} else {
|
||||||
print $lang->data['text_install_sudo_apply'];
|
$this->data['x'] = $lang->data['text_install_sudo_apply'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->render();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -107,6 +107,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<p><input type="button" class="btn btn-danger" onclick="Piler.reload_piler();" value="<?php print $text_apply_changes; ?>" /></p>
|
<input type="button" class="btn btn-danger" onclick="Piler.reload_piler();" value="<?php print $text_apply_changes; ?>" /> <span id="applyChangesOutput"></span>
|
||||||
<span id="applyChangesOutput"></span>
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -112,7 +112,6 @@
|
|||||||
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<p><input type="button" class="btn btn-danger" onclick="Piler.reload_piler();" value="<?php print $text_apply_changes; ?>" /></p>
|
<input type="button" class="btn btn-danger" onclick="Piler.reload_piler();" value="<?php print $text_apply_changes; ?>" /> <span id="applyChangesOutput"></span>
|
||||||
<span id="applyChangesOutput"></span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h3 id="myModalLabel"><?php print $x; ?></h3>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button class="btn btn-primary" data-dismiss="modal" aria-hidden="true">OK</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$('#myModal').modal('show');
|
||||||
|
</script>
|
||||||
|
|
@ -104,8 +104,7 @@
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
||||||
<div>
|
<div class="top20px">
|
||||||
<p><input type="button" class="btn btn-danger" onclick="Piler.reload_piler();" value="<?php print $text_apply_changes; ?>" /></p>
|
<input type="button" class="btn btn-danger" onclick="Piler.reload_piler();" value="<?php print $text_apply_changes; ?>" /> <span id="applyChangesOutput"></span>
|
||||||
<span id="applyChangesOutput"></span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -111,9 +111,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div>
|
<div class="top20px">
|
||||||
<p><input type="button" class="btn btn-danger" onclick="Piler.reload_piler();" value="<?php print $text_apply_changes; ?>" /></p>
|
<input type="button" class="btn btn-danger" onclick="Piler.reload_piler();" value="<?php print $text_apply_changes; ?>" /> <span id="applyChangesOutput"></span>
|
||||||
<span id="applyChangesOutput"></span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user