|
|
@@ -1,93 +1,159 @@
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
{% block content %}
|
|
|
-<style>
|
|
|
-table, th, td {
|
|
|
- border: 1px solid black;
|
|
|
-}
|
|
|
-</style>
|
|
|
-
|
|
|
-<!--Change Password-->
|
|
|
-<form method="POST">
|
|
|
- <div class="card-body">
|
|
|
- <p><b>Change Password</b></p><br>
|
|
|
- <hr style="border: 1px solid rgb(177, 176, 176);"/>
|
|
|
- <div class="row">
|
|
|
- <div class="col-sm-3" style='position:relative; left:20px'>
|
|
|
- <h6 class="mb-0"><label for="current_password">Current Password</label></h6><br>
|
|
|
- </div>
|
|
|
- <div class="col-sm-9 text-secondary">
|
|
|
- <input type="password" id="current_password" name="current_password"><br>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="row">
|
|
|
- <div class="col-sm-3" style='position:relative; left:20px'>
|
|
|
- <h6 class="mb-0"><label for="password">Password</label></h6><br>
|
|
|
- </div>
|
|
|
- <div class="col-sm-9 text-secondary">
|
|
|
- <input type="password" id="password" name="password"><br>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+<div class="mx-auto text-center">
|
|
|
+ <!------ Profile Information ---------->
|
|
|
+ <div class="container">
|
|
|
<div class="row">
|
|
|
- <div class="col-sm-3" style='position:relative; left:20px'>
|
|
|
- <h6 class="mb-0"><label for="password_confirm">Password<br>(Confirm)</label></h6><br>
|
|
|
+ <div class="col-md-4">
|
|
|
+ <div class="card">
|
|
|
+ <div class="card-body">
|
|
|
+ <div class="d-flex flex-column align-items-center text-center">
|
|
|
+ {% if user.profile_image %}
|
|
|
+ <img src="static/uploads/{{ user.profile_image }}" style="width:150px">
|
|
|
+ {% else %}
|
|
|
+ <img src="static/repository/website_photo/defaultprofileimg.png" style="width:150px">
|
|
|
+ {% endif %}
|
|
|
+ <div class="mt-3">
|
|
|
+ <h4>{{ user.username }}</h4>
|
|
|
+ <p class="text-secondary mb-1">{{ user.email }}</p>
|
|
|
+ <hr>
|
|
|
+ <!------ Upload Profile Image ---------->
|
|
|
+ <div class="mt-3">
|
|
|
+ <p><b>Upload Profile Image</b></p>
|
|
|
+ <form action="" method="POST" enctype="multipart/form-data">
|
|
|
+ <input
|
|
|
+ class="input-UploadProfile-Browse"
|
|
|
+ type="file"
|
|
|
+ id="profile_image"
|
|
|
+ name="profile_image"
|
|
|
+ accept="image/png, image/jpeg"
|
|
|
+ onchange="form.submit()"
|
|
|
+ value="Upload"
|
|
|
+ src="http://example.com/path/to/image.png"
|
|
|
+ >
|
|
|
+ <p>**Accept Only <b>PNG's</b>, <b>JPEG's</b>**</p>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!------ Change Password ---------->
|
|
|
+ <form method="POST">
|
|
|
+ <div class="card-body">
|
|
|
+ <hr style="border: 3px solid rgb(177, 176, 176); width:327px; border-radius: 5px;">
|
|
|
+ <p><b>Change Password</b></p><br>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-sm-3" style='position:relative; left:20px'>
|
|
|
+ <h6 class="mb-0"><label for="password">Password</label></h6><br>
|
|
|
+ </div>
|
|
|
+ <div class="col-sm-9 text-secondary">
|
|
|
+ <input type="text" id="password" name="password"><br>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-sm-3" style='position:relative; left:20px'>
|
|
|
+ <h6 class="mb-0"><label for="password_confirm">Password<br>(Confirm)</label></h6><br>
|
|
|
+ </div>
|
|
|
+ <div class="col-sm-9 text-secondary">
|
|
|
+ <input type="text" id="password_confirm" name="password_confirm">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-sm-12">
|
|
|
+ <input type="submit" value="Submit" class="btn btn-info"></a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <hr style="border: 3px solid rgb(177, 176, 176); width:327px; border-radius: 5px;">
|
|
|
+ <p><b>Security(Show 2FA and Email Confirmation. If the user turns on it, it will show a green tick. If not, it will show a red tick.)</b></p><br>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col">
|
|
|
+ <h6 class="mb-0">
|
|
|
+ <img src="static/repository/website_photo/tick_logo.jpg" alt="enable_logo" id="logo" width="12"/>
|
|
|
+ <img src="static/repository/website_photo/cross_logo.jpg" alt="disable_logo" id="logo" width="12"/>
|
|
|
+ <label for="Email_Verification">Email Address Verification</label>
|
|
|
+ </h6>
|
|
|
+ <br>
|
|
|
+ <h6 class="mb-0">
|
|
|
+ <img src="static/repository/website_photo/tick_logo.jpg" alt="enable_logo" id="logo" width="12"/>
|
|
|
+ <img src="static/repository/website_photo/cross_logo.jpg" alt="disable_logo" id="logo" width="12"/>
|
|
|
+ <label for="2FA">Two-Factor Authentication (2FA)</label>
|
|
|
+ </h6>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="col-sm-9 text-secondary">
|
|
|
- <input type="password" id="password_confirm" name="password_confirm">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="row">
|
|
|
- <div class="col-sm-12">
|
|
|
- <input type="submit" value="Submit" class="btn btn-info"></a>
|
|
|
+ <!------ List of bookmarks you have created ---------->
|
|
|
+ <div class="col">
|
|
|
+ <div class="card">
|
|
|
+ <div class="container">
|
|
|
+ <ul class="nav nav-pills mb-3" id="pills-tab" role="tablist">
|
|
|
+ <li class="nav-item">
|
|
|
+ <a class="nav-link active" id="art_by_me-tab" data-toggle="tab" href="#art_by_me" role="tab" aria-controls="art_by_me" aria-selected="true">Art By Me</a>
|
|
|
+ </li>
|
|
|
+ <li class="nav-item">
|
|
|
+ <a class="nav-link" id="art_by_own-tab" data-toggle="tab" href="#art_by_own" role="tab" aria-controls="art_by_own" aria-selected="false">Art By Own</a>
|
|
|
+ </li>
|
|
|
+ <li class="nav-item">
|
|
|
+ <a class="nav-link" id="bidding_record-tab" data-toggle="tab" href="#bidding_record" role="tab" aria-controls="bidding_record" aria-selected="false">Bidding Record</a>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <div class="tab-content" id="myTabContent">
|
|
|
+ <div class="tab-pane fade show active" id="art_by_me" role="tabpanel" aria-labelledby="art_by_me-tab">
|
|
|
+ <div class="row row-cols-3">
|
|
|
+ {%for art in my_art%}
|
|
|
+ <div class="card col-md-4 shadow p-3 mb-5 bg-white rounded" type="button" onclick="window.location.href='{{ url_for('dashboards.modal_profile')}}'">
|
|
|
+ <img style="width:200px; height:200px;" src="static/repository/{{art.dname}}">
|
|
|
+ <div class="row" id="market_item_name_left">
|
|
|
+ <b>{{art.name}}</b>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ {% endfor %}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="tab-pane fade" id="art_by_own" role="tabpanel" aria-labelledby="art_by_own-tab">.
|
|
|
+ <div class="row row-cols-3">
|
|
|
+ {%for art in my_creation%}
|
|
|
+ <div class="card col-md-4 shadow p-3 mb-5 bg-white rounded" type="button" onclick="window.location.href='{{ url_for('dashboards.modal_profile')}}'">
|
|
|
+ <img style="width:200px; height:200px;" src="static/repository/{{art.dname}}">
|
|
|
+ <div class="row" id="market_item_name_left">
|
|
|
+ <b>{{art.name}}</b>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ {% endfor %}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="tab-pane fade" id="bidding_record" role="tabpanel" aria-labelledby="bidding_record-tab">
|
|
|
+ <table class="table">
|
|
|
+ <thead class="thead-dark">
|
|
|
+ <tr>
|
|
|
+ <th>Bidding Art Item Name</th>
|
|
|
+ <th>Bidding Time(Order by DESC)</th>
|
|
|
+ <th>Bidding Price</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tr>
|
|
|
+ <td>The Krusty Krab</td>
|
|
|
+ <td>2022-4-3 15:30:00</td>
|
|
|
+ <td>150</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>Chum Bucket</td>
|
|
|
+ <td>2022-4-2 10:00:00</td>
|
|
|
+ <td>100</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-</form>
|
|
|
-
|
|
|
-<h1>Show 2FA and Email Confirmation. If the user turns on it, it will show a green tick. If not, it will show a red tick.</h1>
|
|
|
-<p>At here, you may just use 1 to show green tick, 2 to show red tick. I will styling after building front-end</p>
|
|
|
-<p>2FA: 1 </p>
|
|
|
-<p>Email Confirmation: 1 </p>
|
|
|
-
|
|
|
-<hr>
|
|
|
-<h1>Show user information</h1>
|
|
|
-<p>{{user.email}}</p>
|
|
|
-<p>{{user.username}}</p>
|
|
|
-<hr>
|
|
|
-<p>Art I Own</p>
|
|
|
-{%for art in my_art%}
|
|
|
-<p>{{art.name}}</p>
|
|
|
-<img src="static/repository/{{art.dname}}">
|
|
|
-<p>2. Art Image(Click the photo will go to pop up detail art page)</p>
|
|
|
-{%endfor%}
|
|
|
-<hr>
|
|
|
-{%for art in my_creation%}
|
|
|
-<p>Art by Me</p>
|
|
|
-<p>{{art.name}}</p>
|
|
|
-<img src="static/repository/{{art.dname}}">
|
|
|
-<p>2. Art Image(Click the photo will go to pop up detail art page)</p>
|
|
|
-{%endfor%}
|
|
|
-<a href="{{url_for('dashboards.modal_profile')}}">Popup</a>
|
|
|
+</div>
|
|
|
|
|
|
{% block modal %}{% endblock %}
|
|
|
{% block script %}{% endblock %}
|
|
|
-<hr>
|
|
|
-<p>Show the user bidding record</p>
|
|
|
-<table>
|
|
|
- <tr>
|
|
|
- <th>Bidding Art Item Name</th>
|
|
|
- <th>Bidding Time(Order by DESC)</th>
|
|
|
- <th>Bidding Price</th>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>The Krusty Krab</td>
|
|
|
- <td>2022-4-3 15:30:00</td>
|
|
|
- <td>150</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>Chum Bucket</td>
|
|
|
- <td>2022-4-2 10:00:00</td>
|
|
|
- <td>100</td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
{% endblock %}
|