</div> </section> <?php endif; ?> <section class="container collapsible"> <h3><span class="fa fa-fw fa-chevron-right expander"></span> Account</h3> <div class="content content-dark clearfix"> <form id="profileSaveForm" action="/profile/update" method="post" role="form"> <div class="ds-block"> <?php if($model->user['nameChangedCount'] < Config::$a['profile']['nameChangeLimit']): ?> <div class="form-group"> <label>Username: <br><small>(You have <?=Tpl::n(Config::$a['profile']['nameChangeLimit'] - $model->user['nameChangedCount'])?> name changes left)</small> </label> <input class="form-control" type="text" name="username" value="<?=Tpl::out($model->user['username'])?>" placeholder="Username" /> <span class="help-block">A-z 0-9 and underscores. Must contain at least 3 and at most 20 characters</span> </div> <?php endif; ?> <?php if($model->user['nameChangedCount'] >= Config::$a['profile']['nameChangeLimit']): ?> <div class="form-group"> <label>Username: <br><small>(You have no more name changes available)</small> </label> <input class="form-control" type="text" disabled="disabled" name="username" value="<?=Tpl::out($model->user['username'])?>" placeholder="Username" /> </div> <?php endif; ?>
?> <section class="container collapsible"> <h3><span class="glyphicon glyphicon-chevron-right expander"></span> Account</h3> <div class="content content-dark clearfix"> <form id="profileSaveForm" action="/profile/update" method="post" role="form"> <div class="ds-block"> <?php if ($model->user['nameChangedCount'] < Config::$a['profile']['nameChangeLimit']) { ?> <div class="form-group"> <label>Username: <br><small>(You have <?php echo Tpl::n(Config::$a['profile']['nameChangeLimit'] - $model->user['nameChangedCount']); ?> name changes left)</small> </label> <input class="form-control" type="text" name="username" value="<?php echo Tpl::out($model->user['username']); ?> " placeholder="Username" /> <span class="help-block">A-z 0-9 and underscores. Must contain at least 3 and at most 20 characters</span> </div> <?php } ?> <?php if ($model->user['nameChangedCount'] >= Config::$a['profile']['nameChangeLimit']) {