Updated installer forms

This commit is contained in:
Duncan Sommerville 2014-12-15 09:51:25 -05:00
parent ed7b85c69b
commit 4583be981d
2 changed files with 5 additions and 3 deletions

View File

@ -17,6 +17,5 @@
<script> <script>
$("#finishSettingsForm").submit(function(e) { $("#finishSettingsForm").submit(function(e) {
submitForm(e, "FinishSetup"); submitForm(e, "FinishSetup");
// window.location.replace("/?config");
}); });
</script> </script>

View File

@ -3,16 +3,19 @@
<form action="#" role="form" id="generalSettingsForm"> <form action="#" role="form" id="generalSettingsForm">
<h3 class="form-title">General Settings</h3> <h3 class="form-title">General Settings</h3>
<p>
These values are automatically pulled from your webserver settings, under most circumstances you will not need to change them.
</p>
<span id="helpBlock" class="help-block help-message"></span> <span id="helpBlock" class="help-block help-message"></span>
<div id="generalFormBody"> <div id="generalFormBody">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="generalHost">Webserver Host</label> <label class="control-label" for="generalHost">Webserver Host</label>
<input required class="form-control" type="text" name="generalHost" id="generalHost" placeholder="Host" value="localhost"/> <input required class="form-control" type="text" name="generalHost" id="generalHost" placeholder="Host" value="<?=$_SERVER["SERVER_NAME"]?>"/>
<span class="glyphicon glyphicon-remove form-control-feedback"></span> <span class="glyphicon glyphicon-remove form-control-feedback"></span>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="control-label" for="generalPort">Webserver Port</label> <label class="control-label" for="generalPort">Webserver Port</label>
<input required class="form-control" type="text" name="generalPort" id="generalPort" placeholder="Port" value="80"/> <input required class="form-control" type="text" name="generalPort" id="generalPort" placeholder="Port" value="<?=$_SERVER["SERVER_PORT"]?>"/>
<span class="glyphicon glyphicon-remove form-control-feedback"></span> <span class="glyphicon glyphicon-remove form-control-feedback"></span>
</div> </div>
<input class="form-control" type="hidden" name="generalErr" id="generalErr" aria-describedby="helpBlock"/> <input class="form-control" type="hidden" name="generalErr" id="generalErr" aria-describedby="helpBlock"/>