| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233 |
- {% extends "base.html" %}
- {% block content %}
- <style>
- body{
- color: #1a202c;
- text-align: left;
- background-color: #e2e8f0;
- padding-top: 100px;
- font-size: 14px;
- }
- .main-body {
- padding: 15px; } .card { box-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px 0 rgba(0,0,0,.06);
- }
- .card {
- position: relative;
- display: flex;
- flex-direction: column;
- min-width: 0;
- word-wrap: break-word;
- background-color: #fff;
- background-clip: border-box;
- border: 0 solid rgba(0,0,0,.125);
- border-radius: .25rem;
- }
- .card-body {
- flex: 1 1 auto;
- min-height: 1px;
- padding: 1rem;
- }
- .gutters-sm {
- margin-right: -8px;
- margin-left: -8px;
- }
- .gutters-sm>.col, .gutters-sm>[class*=col-] {
- padding-right: 8px;
- padding-left: 8px;
- }
- .mb-3, .my-3 {
- margin-bottom: 1rem!important;
- }
- .bg-gray-300 {
- background-color: #e2e8f0;
- }
- .h-100 {
- height: 100%!important;
- }
- .shadow-none {
- box-shadow: none!important;
- }
- .input-UploadProfile-Browse {
- width: 80px;
- color:transparent;
- }
- .bookmark_box_background_color {
- background-color: #fff;
- border-radius: .5rem;
- background-image: url("static/logo/home_bookmark_logo.png");
- background-repeat: no-repeat;
- background-size: cover;
- }
- .href_link_button
- {
- float: right;
- list-style-type: none;
- }
- .list li {
- display:block;
- list-style-position: outside;
- list-style-type: disc;
- text-align: left;
- list-style-type: none;
- }
- .list_li_height {
- height: nowrap;
- }
- .bull {
- display:list-item
- }
- .text_border {
- padding: 1px 0px 1px 0px;
- font-size: 14px;
- position:absolute; left:90px;
- bottom:-1px;
- border: 2px solid gray;
- }
- </style>
- <div class="mx-auto text-center">
- <!------ Profile Information ---------->
- <div class="container">
- <div class="main-body">
- <div class="row">
- <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/uploads/defaultprofileimg/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>
- </div>
- </form>
- </div>
- <!------ Change Username and 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 Username or Password</b></p><br>
- <div class="row">
- <div class="col-sm-3" style='position:relative; left:20px'>
- <h6 class="mb-0"><label for="username">Username</label></h6><br>
- </div>
- <div class="col-sm-9 text-secondary">
- <input type="text" id="username" name="username"><br>
- </div>
- </div>
- <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="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>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- <!------ List of bookmarks you have created ---------->
- <div class="card">
- <div class="container">
- <div class="col-md-12">
- <h2 class="text-center" style="padding-left:75px; padding-right:75px;">List of bookmarks you have created </h2>
- <hr>
- <!------ Download bookmark button ---------->
- <form method="POST" target="_blank">
- <input name="dl_bookml" value="dl_bookml" style="display:none;"/>
- <button type="submit" class="btn btn-info">Download Bookmarks for backup</button>
- </form>
- <br>
- </div>
- <!------ Bookmark list ---------->
- <div class="row">
- {% for bg, bml in bdic.items(): %}
- <div class="col-md-6">
- <div class="bookmark_box_background_color" style="border-style: inset;">
- <div>
- <h3 >{{ bg }}</h3>
- <hr>
- <!-- Code: Each Link in the Box-->
- <!-------- Icon ---------->
- {% for bm in bml: %}
- <div class="row">
- <div class="col.md-4">
- <ul class="list">
- <li><img src="static/sitecons/{{bm.icon}}" height=25 width=25> {{ bm.name }}</li>
- </div>
- <!-------- Link/Delete/Status---------->
- <div class="col.md-4">
- <li class="href_link_button" style="position:absolute; right:125px;">
- <a href="{{ bm.link }}" TARGET="_BLANK">
- <img src="static/logo/link_logo.png"width="30" height="30">
- </a>
- <form method="POST">
- <input name="web_delete" value="{{bm.id}}" style="display:none;"/>
- <button type="submit" class="btn btn-danger" style="padding: 3px; font-size: 6px; border-width: 3px;position:absolute; left:35px; bottom:0px">Delete</button>
- </form>
- <b class="text_border btn-outline-secondary"><i>{{ bm.status }}</i></b>
- </li>
- </ul>
- </div>
- </div>
- {% endfor %}
- </div>
- </div>
- <br>
- </div>
- {% endfor %}
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- {% endblock %}
|