Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
$header(formurl,breadcrumbs,shortcuts)$

<!--$if(error)$--><div class="error">$error$</div><!--$endif$-->

<h2>Initial system configuration</h2>
<p>
You are connecting to a freshly installed instance. Some initial configuration settings are required.
</p>

<form method="post" action="$formurl$/setup" id="setup">

<h3>Initial user account</h3>
<p>
Setup first user account. Use this account to
create, manage, and update other user accounts.
</p>

<label for="firstname">
    <span class="question">First name</span>
    <span class="answer"><input type="text" name="first_name" id="first_name" value='$firstname;format="html"$'/></span>
</label>

<label for="firstname">
    <span class="question">Last name</span>
    <span class="answer"><input type="text" name="last_name" id="last_name" value='$lastname;format="html"$'/></span>
</label>

<label for="firstname">
    <span class="question">Email address</span>
    <span class="answer"><input type="text" name="email" id="email" value='$email;format="html"$'/></span>
</label>

<label for="username">
    <span class="question">Username</span>
    <span class="answer"><input type="text" name="username" id="username" value='$username;format="html"$'/></span>
</label>

<label for="password">
    <span class="question">Password</span>
    <span class="answer"><input type="password" name="password" id="password" value=""/></span>
</label>


<h3>System configuration</h3>
<p>
Other important system configuration settings:
</p>

<label for="smtp_server">
    <span class="question">SMTP Server</span>
    <span class="answer"><input type="text" name="smtp_server" id="smtp_server" value="$smtpserver;format="html"$"/></span>
</label>

<label for="smtp_port">
    <span class="question">SMTP Port</span>
    <span class="answer"><input type="text" name="smtp_port" id="smtp_port" value="$smtpport;format="html"$"/></span>
</label>

<label for="self_signup">
    <span class="question">Self sign-up</span>
    <span class="answer"><input type="checkbox" name="self_signup" id="self_signup" $if(self_signup)$checked="checked" $endif$/> Check to allow users to create their own accounts.</span>
</label>

<div class="submit">
<input type="submit" value="Setup"/>
 </div>

<div class="release_tag">$version$</div>
<!-- $build$ -->
</form>


<script type="text/javascript">
if(document.getElementById('username').value!="") {
    document.getElementById('password').focus();
} else {
    document.getElementById('username').focus();
}
</script>

$footer()$

New to GrepCode? Check out our FAQ X