2013-04-03 11:04:23 +00:00
|
|
|
{% extends "app/website/templates/html/page.html" %}
|
2013-03-19 12:29:49 +00:00
|
|
|
|
|
|
|
{% set title="My Profile" %}
|
|
|
|
|
|
|
|
{% block content %}
|
2013-05-22 06:27:05 +00:00
|
|
|
<div class="col col-lg-12">
|
2013-03-21 11:42:25 +00:00
|
|
|
<ul class="breadcrumb">
|
|
|
|
<li><a href="index">Home</a> <span class="divider">/</span></li>
|
|
|
|
<li><a href="account">My Account</a> <span class="divider">/</span></li>
|
|
|
|
<li class="active">My Profile</li>
|
|
|
|
</ul>
|
|
|
|
<h2><i class="icon-user"></i> My Profile</h2>
|
2013-03-19 12:29:49 +00:00
|
|
|
<hr>
|
|
|
|
<div class="alert" id="message" style="display: none;"></div>
|
2013-07-10 15:19:44 +00:00
|
|
|
<form>
|
|
|
|
<fieldset>
|
|
|
|
<label>Full Name</label>
|
|
|
|
<input type="text" id="fullname" placeholder="Your Name">
|
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
|
|
<label>Password</label>
|
|
|
|
<input type="password" id="password" placeholder="Password">
|
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
|
|
<label>Company Name</label>
|
|
|
|
<input type="text" id="company_name" placeholder="Company Name" value="{{ company_name }}">
|
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
|
|
<label>Mobile No</label>
|
|
|
|
<input type="text" id="mobile_no" placeholder="Mobile No" value="{{ mobile_no }}">
|
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
|
|
<label>Phone</label>
|
|
|
|
<input type="text" id="phone" placeholder="Phone" value="{{ phone }}">
|
|
|
|
</fieldset>
|
|
|
|
<button id="update_profile" type="submit" class="btn btn-default">Update</button>
|
2013-03-19 12:29:49 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
$("#fullname").val(getCookie("full_name") || "");
|
|
|
|
$("#update_profile").click(function() {
|
|
|
|
wn.call({
|
2013-07-10 15:19:44 +00:00
|
|
|
method: "startup.webutils.update_profile",
|
2013-03-19 12:29:49 +00:00
|
|
|
type: "POST",
|
|
|
|
args: {
|
|
|
|
fullname: $("#fullname").val(),
|
2013-07-10 15:19:44 +00:00
|
|
|
password: $("#password").val(),
|
|
|
|
company_name: $("#company_name").val(),
|
|
|
|
mobile_no: $("#mobile_no").val(),
|
|
|
|
phone: $("#phone").val()
|
2013-03-19 12:29:49 +00:00
|
|
|
},
|
|
|
|
btn: this,
|
|
|
|
msg: $("#message"),
|
|
|
|
callback: function(r) {
|
|
|
|
if(!r.exc) $("#user-full-name").html($("#fullname").val());
|
|
|
|
}
|
|
|
|
});
|
|
|
|
return false;
|
|
|
|
})
|
|
|
|
})
|
|
|
|
</script>
|
2013-07-10 15:19:44 +00:00
|
|
|
{% endblock %}
|