summaryrefslogtreecommitdiff
path: root/tmpl/profile.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl/profile.tmpl')
-rw-r--r--tmpl/profile.tmpl24
1 files changed, 24 insertions, 0 deletions
diff --git a/tmpl/profile.tmpl b/tmpl/profile.tmpl
new file mode 100644
index 0000000..92bb780
--- /dev/null
+++ b/tmpl/profile.tmpl
@@ -0,0 +1,24 @@
+{% extends "base.tmpl" %}
+
+{% block title %}Profile{% endblock %}
+
+{% block page_contents %}
+ <div class="row">
+ <div class="col-12"><h2>Edit Profile</h2></div>
+ <div class="col-12"><hr style="border: 1px solid rgba(0, 0, 0, 1)"/></div>
+ </div>
+ <form action="profile.php" method="post">
+ <div class="row">
+ <div class="col-12 col-sm-4 col-md-3 col-lg-2">Username</div>
+ <div class="col-12 col-sm-8 col-md-9 col-lg-10">{{ sess_info.login_member.username }}</div>
+ <div class="col-12 col-sm-4 col-md-3 col-lg-2">Email</div>
+ <div class="col-12 col-sm-8 col-md-9 col-lg-10"><input type="email" name="email" value="{{ sess_info.login_member.email | escape('html_attr') }}" /></div>
+ <div class="col-12 col-sm-4 col-md-3 col-lg-2">Full name</div>
+ <div class="col-12 col-sm-8 col-md-9 col-lg-10"><input type="text" name="fullname" value="{{ sess_info.login_member.full_name | escape('html_attr') }}" /></div>
+ <div class="col-12 col-sm-4 col-md-3 col-lg-2">Old Password</div>
+ <div class="col-12 col-sm-8 col-md-9 col-lg-10"><input type="password" name="old_passwd" /></div>
+ <div class="col-12 col-sm-4 col-md-3 col-lg-2">New Password</div>
+ <div class="col-12 col-sm-8 col-md-9 col-lg-10"><input type="password" name="new_passwd" /></div>
+ <div class="col-12"><button class="btn btn-success" type="submit">Update</button></div>
+ </div>
+{% endblock %}