Get rid of the form from server_add, we're not using it.

Turn the cancel link into a themed close button which triggers a page
reload.

Add some padding to the left of the tree.
This commit is contained in:
Bharat Mediratta
2009-07-11 07:37:49 -07:00
parent 171522bf23
commit cbd80b5ff9
2 changed files with 15 additions and 8 deletions
@@ -19,8 +19,6 @@
</li>
</ul>
<?= form::open(url::abs_site("server_add/start/$item->id"), array("method" => "post")) ?>
<?= access::csrf_form_field(); ?>
<ul id="gServerAddTree" class="gCheckboxTree">
<?= $tree ?>
</ul>
@@ -31,10 +29,16 @@
</div>
<span>
<input id="gServerAddAddButton" class="submit ui-state-disabled" disabled="disabled"
type="submit" value="<?= t("Add") ?>">
<button id="gServerAddAddButton" class="ui-state-default ui-state-disabled ui-corner-all"
disabled="disabled">
<?= t("Add") ?>
</button>
<button class="ui-state-default ui-corner-all" onclick="closeDialog(); window.location.reload();">
<?= t("Close") ?>
</button>
</span>
<?= form::close() ?>
<script type="text/javascript">
$("#gServerAddAddButton").ready(function() {
$("#gServerAddAddButton").click(function(event) {
@@ -47,7 +51,4 @@
});
</script>
<button class="ui-state-default ui-corner-all" onclick="closeDialog(); window.location.reload();">
<?= t("Close") ?>
</button>
</div>