added some conditionals

This commit is contained in:
nilsding 2014-08-18 17:31:37 +02:00
parent 3d6915fac5
commit 1efa145cf2
1 changed files with 7 additions and 5 deletions

View File

@ -12,24 +12,25 @@
</ul> </ul>
</div> </div>
<div class="col-md-9"> <div class="col-md-9">
<form role="form"> <form role="form" action="ucp.php?page=settings" method="POST">
<div class="form-group"> <div class="form-group">
<label for="sitename">Site Name</label> <label for="sitename">Site Name</label>
<input type="text" class="form-control" id="sitename" placeholder="3 words about your mom" value="{$site_name}"> <input type="text" class="form-control" id="sitename" placeholder="3 words about your mom" value="{$site_name}">
</div> </div>
<div class="checkbox"> <div class="checkbox">
<label> <label>
<input id="recent_check" type="checkbox" onchange="a(!this.checked)"> Showing Recent Answers <input id="recent_check" type="checkbox" onchange="a(!this.checked)"{if="$recent_public"} checked{/if}> Show Recent Answers
</label> </label>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="recent">Recent Answers</label> <label for="recent">Recent Answers</label>
<input type="number" class="form-control" id="recent-count" name="recent_count" value="5"> <input type="number" class="form-control" id="recent-count" name="recent_count" value="5"{if="!$recent_public"} disabled{/if}>
</div> </div>
<button type="submit" class="btn btn-default" id="recent-btn">Submit</button> <button type="submit" class="btn btn-default" id="recent-btn"{if="!$recent_public"} disabled{/if}>Submit</button>
<input type="hidden" name="generic">
</form> </form>
<hr/> <hr/>
<form role="form"> <form role="form" action="ucp.php?page=settings" method="POST">
<div class="form-group"> <div class="form-group">
<label for="password_change">New Password</label> <label for="password_change">New Password</label>
<input type="password" class="form-control" id="password_change" placeholder="Password"> <input type="password" class="form-control" id="password_change" placeholder="Password">
@ -39,6 +40,7 @@
<input type="password" class="form-control" id="password_verify" placeholder="Password"> <input type="password" class="form-control" id="password_verify" placeholder="Password">
</div> </div>
<button type="submit" class="btn btn-default">Change Password</button> <button type="submit" class="btn btn-default">Change Password</button>
<input type="hidden" name="password">
</form> </form>
</div> </div>
</div> </div>