1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 18:00:00 +00:00

Added tabs to make profile more organized

This commit is contained in:
UnKnoWn 2017-05-17 05:19:00 +08:00 committed by GitHub
parent 6792716903
commit 1ac211276e

View file

@ -5,63 +5,61 @@
<h1>Edit Profile</h1> <h1>Edit Profile</h1>
<div class="bs-example bs-example-tabs" data-example-id="togglable-tabs"> <ul class="nav nav-tabs" id="myTabs" role="tablist">
<ul class="nav nav-tabs" id="myTabs" role="tablist"> <li role="presentation" class="active">
<li role="presentation" class="active"> <a href="#password-change" id="password-change-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="false">Password</a>
<a href="#password-change" id="password-change-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="false">Password</a> </li>
</li> <li role="presentation">
<li role="presentation"> <a href="#email-change" role="tab" id="email-change-tab" data-toggle="tab" aria-controls="profile" aria-expanded="true">Email</a>
<a href="#email-change" role="tab" id="email-change-tab" data-toggle="tab" aria-controls="profile" aria-expanded="true">Email</a> </li>
</li> </ul>
</ul> <div class="tab-content">
<div class="tab-content"> <div class="tab-pane fade" role="tabpanel" id="password-change" aria-labelledby="password-change-tab">
<div class="tab-pane fade" role="tabpanel" id="password-change" aria-labelledby="password-change-tab"> <form method="POST">
<form method="POST"> {{ form.csrf_token }}
{{ form.csrf_token }} <div class="row">
<div class="row"> <div class="form-group col-md-4">
<div class="form-group col-md-4"> {{ render_field(form.current_password, class_='form-control', placeholder='Current password') }}
{{ render_field(form.current_password, class_='form-control', placeholder='Current password') }}
</div>
</div> </div>
<div class="row"> </div>
<div class="form-group col-md-4"> <div class="row">
{{ render_field(form.new_password, class_='form-control', placeholder='New password') }} <div class="form-group col-md-4">
</div> {{ render_field(form.new_password, class_='form-control', placeholder='New password') }}
</div> </div>
<div class="row"> </div>
<div class="form-group col-md-4"> <div class="row">
{{ render_field(form.password_confirm, class_='form-control', placeholder='New password (confirm)') }} <div class="form-group col-md-4">
</div> {{ render_field(form.password_confirm, class_='form-control', placeholder='New password (confirm)') }}
</div> </div>
<br> </div>
<div class="row"> <br>
<div class="col-md-4"> <div class="row">
<input type="submit" value="Update" class="btn btn-primary"> <div class="col-md-4">
</div> <input type="submit" value="Update" class="btn btn-primary">
</div> </div>
</form> </div>
</div> </form>
<div class="tab-pane fade" role="tabpanel" id="email-change" aria-labelledby="email-change-tab"> </div>
<form method="POST"> <div class="tab-pane fade" role="tabpanel" id="email-change" aria-labelledby="email-change-tab">
{{ form.csrf_token }} <form method="POST">
<div class="row"> {{ form.csrf_token }}
<div class="form-group col-md-4"> <div class="row">
{{ render_field(form.email, class_='form-control', placeholder='New email address') }} <div class="form-group col-md-4">
</div> {{ render_field(form.email, class_='form-control', placeholder='New email address') }}
</div> </div>
<div class="row"> </div>
<div class="form-group col-md-4"> <div class="row">
{{ render_field(form.current_password, class_='form-control', placeholder='Current password') }} <div class="form-group col-md-4">
</div> {{ render_field(form.current_password, class_='form-control', placeholder='Current password') }}
</div> </div>
<br> </div>
<div class="row"> <br>
<div class="col-md-4"> <div class="row">
<input type="submit" value="Update" class="btn btn-primary"> <div class="col-md-4">
</div> <input type="submit" value="Update" class="btn btn-primary">
</div> </div>
</form> </div>
</div> </form>
</div> </div>
</div> </div>