added some conditionals

This commit is contained in:
nilsding 2014-08-18 17:31:37 +02:00
parent 3d6915fac5
commit 1efa145cf2

View File

@ -12,24 +12,25 @@
</ul>
</div>
<div class="col-md-9">
<form role="form">
<form role="form" action="ucp.php?page=settings" method="POST">
<div class="form-group">
<label for="sitename">Site Name</label>
<input type="text" class="form-control" id="sitename" placeholder="3 words about your mom" value="{$site_name}">
</div>
<div class="checkbox">
<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>
</div>
<div class="form-group">
<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>
<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>
<hr/>
<form role="form">
<form role="form" action="ucp.php?page=settings" method="POST">
<div class="form-group">
<label for="password_change">New Password</label>
<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">
</div>
<button type="submit" class="btn btn-default">Change Password</button>
<input type="hidden" name="password">
</form>
</div>
</div>