blob: 4c03b400b9b570787df5d94d13d7c1b0a7f5c133 [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 Mehtacce21d12013-08-21 17:48:08 +05306<div class="col-md-12">
Rushabh Mehtabed19ac2013-03-21 17:12:25 +05307 <ul class="breadcrumb">
Anand Doshif7e56482013-08-29 17:46:40 +05308 <li><a href="index">Home</a></li>
9 <li><a href="account">My Account</a></li>
10 <li class="active"><i class="icon-user icon-fixed-width"></i> My Profile</li>
Rushabh Mehtabed19ac2013-03-21 17:12:25 +053011 </ul>
Rushabh Mehtaa75efa72013-03-19 17:59:49 +053012 <div class="alert" id="message" style="display: none;"></div>
Anand Doshi2ac0a832013-07-10 20:49:44 +053013 <form>
14 <fieldset>
15 <label>Full Name</label>
Rushabh Mehtacce21d12013-08-21 17:48:08 +053016 <input class="form-control" type="text" id="fullname" placeholder="Your Name">
Anand Doshi2ac0a832013-07-10 20:49:44 +053017 </fieldset>
18 <fieldset>
19 <label>Password</label>
Rushabh Mehtacce21d12013-08-21 17:48:08 +053020 <input class="form-control" type="password" id="password" placeholder="Password">
Anand Doshi2ac0a832013-07-10 20:49:44 +053021 </fieldset>
22 <fieldset>
23 <label>Company Name</label>
Rushabh Mehtacce21d12013-08-21 17:48:08 +053024 <input class="form-control" type="text" id="company_name" placeholder="Company Name" value="{{ company_name }}">
Anand Doshi2ac0a832013-07-10 20:49:44 +053025 </fieldset>
26 <fieldset>
27 <label>Mobile No</label>
Rushabh Mehtacce21d12013-08-21 17:48:08 +053028 <input class="form-control" type="text" id="mobile_no" placeholder="Mobile No" value="{{ mobile_no }}">
Anand Doshi2ac0a832013-07-10 20:49:44 +053029 </fieldset>
30 <fieldset>
31 <label>Phone</label>
Rushabh Mehtacce21d12013-08-21 17:48:08 +053032 <input class="form-control" type="text" id="phone" placeholder="Phone" value="{{ phone }}">
Anand Doshi2ac0a832013-07-10 20:49:44 +053033 </fieldset>
34 <button id="update_profile" type="submit" class="btn btn-default">Update</button>
Rushabh Mehtaa75efa72013-03-19 17:59:49 +053035 </form>
36</div>
37<script>
38$(document).ready(function() {
39 $("#fullname").val(getCookie("full_name") || "");
40 $("#update_profile").click(function() {
41 wn.call({
Anand Doshi2ac0a832013-07-10 20:49:44 +053042 method: "startup.webutils.update_profile",
Rushabh Mehtaa75efa72013-03-19 17:59:49 +053043 type: "POST",
44 args: {
45 fullname: $("#fullname").val(),
Anand Doshi2ac0a832013-07-10 20:49:44 +053046 password: $("#password").val(),
47 company_name: $("#company_name").val(),
48 mobile_no: $("#mobile_no").val(),
49 phone: $("#phone").val()
Rushabh Mehtaa75efa72013-03-19 17:59:49 +053050 },
51 btn: this,
52 msg: $("#message"),
53 callback: function(r) {
54 if(!r.exc) $("#user-full-name").html($("#fullname").val());
55 }
56 });
57 return false;
58 })
59})
60</script>
Anand Doshi2ac0a832013-07-10 20:49:44 +053061{% endblock %}