blob: 61ae1b0d53f33f1b451975b8bbf86c0696d8a276 [file] [log] [blame]
Rushabh Mehta3023a8f2013-04-03 16:34:23 +05301{% extends "app/website/templates/html/page.html" %}
Rushabh Mehtaa75efa72013-03-19 17:59:49 +05302
3{% set title="My Profile" %}
4
5{% block content %}
Rushabh Mehta4a2f0f82013-05-22 11:57:05 +05306<div class="col col-lg-12">
Rushabh Mehtabed19ac2013-03-21 17:12:25 +05307 <ul class="breadcrumb">
8 <li><a href="index">Home</a> <span class="divider">/</span></li>
9 <li><a href="account">My Account</a> <span class="divider">/</span></li>
10 <li class="active">My Profile</li>
11 </ul>
12 <h2><i class="icon-user"></i> My Profile</h2>
Rushabh Mehtaa75efa72013-03-19 17:59:49 +053013 <hr>
14 <div class="alert" id="message" style="display: none;"></div>
Anand Doshi2ac0a832013-07-10 20:49:44 +053015 <form>
16 <fieldset>
17 <label>Full Name</label>
18 <input type="text" id="fullname" placeholder="Your Name">
19 </fieldset>
20 <fieldset>
21 <label>Password</label>
22 <input type="password" id="password" placeholder="Password">
23 </fieldset>
24 <fieldset>
25 <label>Company Name</label>
26 <input type="text" id="company_name" placeholder="Company Name" value="{{ company_name }}">
27 </fieldset>
28 <fieldset>
29 <label>Mobile No</label>
30 <input type="text" id="mobile_no" placeholder="Mobile No" value="{{ mobile_no }}">
31 </fieldset>
32 <fieldset>
33 <label>Phone</label>
34 <input type="text" id="phone" placeholder="Phone" value="{{ phone }}">
35 </fieldset>
36 <button id="update_profile" type="submit" class="btn btn-default">Update</button>
Rushabh Mehtaa75efa72013-03-19 17:59:49 +053037 </form>
38</div>
39<script>
40$(document).ready(function() {
41 $("#fullname").val(getCookie("full_name") || "");
42 $("#update_profile").click(function() {
43 wn.call({
Anand Doshi2ac0a832013-07-10 20:49:44 +053044 method: "startup.webutils.update_profile",
Rushabh Mehtaa75efa72013-03-19 17:59:49 +053045 type: "POST",
46 args: {
47 fullname: $("#fullname").val(),
Anand Doshi2ac0a832013-07-10 20:49:44 +053048 password: $("#password").val(),
49 company_name: $("#company_name").val(),
50 mobile_no: $("#mobile_no").val(),
51 phone: $("#phone").val()
Rushabh Mehtaa75efa72013-03-19 17:59:49 +053052 },
53 btn: this,
54 msg: $("#message"),
55 callback: function(r) {
56 if(!r.exc) $("#user-full-name").html($("#fullname").val());
57 }
58 });
59 return false;
60 })
61})
62</script>
Anand Doshi2ac0a832013-07-10 20:49:44 +053063{% endblock %}