summaryrefslogtreecommitdiff
path: root/static/forums/templates
diff options
context:
space:
mode:
authorholyantony2015-05-08 11:59:21 +0530
committerholyantony2015-05-08 11:59:21 +0530
commitf691ef58933bf33033389a1a468f655af19c1e16 (patch)
tree44d9812876286b2a855af4673c2f620e671a35af /static/forums/templates
parent20998fcb52d55b25da2f63965c98e7b171d4f1ed (diff)
downloadFOSSEE-Forum-f691ef58933bf33033389a1a468f655af19c1e16.tar.gz
FOSSEE-Forum-f691ef58933bf33033389a1a468f655af19c1e16.tar.bz2
FOSSEE-Forum-f691ef58933bf33033389a1a468f655af19c1e16.zip
Subject: Profile updation and Email notification
Description: 1. Confirmation link on registration via email 2. Profile updation on registration confirmation 3. Email notification posting question and answer
Diffstat (limited to 'static/forums/templates')
-rw-r--r--static/forums/templates/profile.html86
-rw-r--r--static/forums/templates/view-profile.html42
2 files changed, 128 insertions, 0 deletions
diff --git a/static/forums/templates/profile.html b/static/forums/templates/profile.html
new file mode 100644
index 0000000..ffb500a
--- /dev/null
+++ b/static/forums/templates/profile.html
@@ -0,0 +1,86 @@
+{% extends 'website/templates/base.html' %}
+{% load widget_tweaks %}
+{% load static %}
+{% block title %}User Profile{% endblock %}
+{% block cssblock %}<link rel="stylesheet" href="{% static 'website/css/chosen.min.css' %}" type="text/css" media="screen" charset="utf-8" />{% endblock %}
+{% block heading %}
+ <i class="fa fa-list-ul"></i> User Profile
+{% endblock %}
+
+{% block content %}
+ <div class="row well ">
+ <div class="col-sm-8">
+ <form class="form-signin form-horizontal" role="form" id="login_form" method="post" enctype="multipart/form-data">{% csrf_token %}
+ {{ form.errors }}
+ <div class="form-group">
+ <label class="col-sm-3 control-label" for="id_first_name">First Name</label>
+ <div class="col-sm-9">
+ {% render_field form.first_name class+="form-control first_name" tabindex="1" data-placeholder="Choose first_name" %}
+ {{ form.first_name.errors }}
+ <small>Please enter your first name.</small>
+ </div>
+ </div>
+ <div class="form-group">
+ <label class="col-sm-3 control-label" for="id_last_name">Last Name</label>
+ <div class="col-sm-9">
+ {% render_field form.last_name class+="form-control last_name" tabindex="1" data-placeholder="Choose last_name" %}
+ {{ form.last_name.errors }}
+ <small>Please enter your last name.</small>
+ </div>
+ </div>
+
+
+ <!--
+ <div class="form-group">
+ <label class="col-sm-3 control-label" for="id_location">Location</label>
+ <div class="col-sm-9">
+ {% render_field form.location class+="form-control location" tabindex="1" data-placeholder="Enter location" %}
+ {{ form.location.errors }}
+ </div>
+ </div>
+
+ <div class="form-group">
+ <label class="col-sm-3 control-label" for="id_street">Street</label>
+ <div class="col-sm-9">
+ {% render_field form.street class+="form-control street" tabindex="1" data-placeholder="Choose street" %}
+ {{ form.street.errors }}
+ </div>
+ </div>
+ -->
+ <div class="form-group">
+ <label class="col-sm-3 control-label" for= "id_street">Address</label>
+ <div class="col-sm-9">
+ {% render_field form.address class+="form-control street" tabindex="1" data-placeholder="Enter street" %}
+ {{ form.address.errors }}
+ <small>Please enter your valid address.</small>
+ </div>
+ </div>
+
+
+ <div class="form-group">
+ <label class="col-sm-3 control-label" for="id_phone">Phone</label>
+ <div class="col-sm-9">
+ {% render_field form.phone class+="form-control phone" tabindex="1" data-placeholder="Choose phone" %}
+ {{ form.phone.errors }}
+ <small>Please enter your valid phone number.</small>
+ </div>
+ </div>
+ {# <div class="form-group"> #}
+ {# <label class="col-sm-3 control-label" for="id_phone">Picture</label> #}
+ {# <div class="col-sm-9"> #}
+ {# {% render_field form.picture class+="form-control picture" tabindex="1" %} #}
+ {# {{ form.picture.errors }} #}
+ {# </div> #}
+ {# </div> #}
+ <div class="form-group">
+ <div class="col-sm-offset-3 col-sm-9">
+ <input class="btn btn-primary" type="submit" value="Submit" />
+ </div>
+ </div>
+ </form>
+ </div>
+ </div>
+
+{% endblock %}
+
+
diff --git a/static/forums/templates/view-profile.html b/static/forums/templates/view-profile.html
new file mode 100644
index 0000000..afed394
--- /dev/null
+++ b/static/forums/templates/view-profile.html
@@ -0,0 +1,42 @@
+{% extends 'website/templates/base.html' %}
+{% load widget_tweaks %}
+{% load static %}
+{% block title %}User Profile{% endblock %}
+{% block cssblock %}
+ <link rel="stylesheet" href="{% static 'website/css/chosen.min.css' %}" type="text/css" media="screen" charset="utf-8" />
+ <style>
+ .view-profile .dl-horizontal dt{
+ text-align: left;
+ width: 100px;
+ }
+ .view-profile .dl-horizontal dd{
+ margin-left: 100px;
+ }
+ </style>
+{% endblock %}
+{% block heading %}
+ <i class="fa fa-list-ul"></i> User Profile
+{% endblock %}
+
+{% block content %}
+ <div class="row well view-profile">
+ <div class="col-sm-8">
+
+ <div class="col-sm-8">
+ <dl class="dl-horizontal">
+ <dt>First name</dt>
+ <dd>{% if profile.user.first_name %}{{ profile.user.first_name }}{% else %}-{% endif %}</dd>
+
+ <dt>Last name</dt>
+ <dd>{% if profile.user.last_name %}{{ profile.user.last_name }}{% else %}-{% endif %}</dd>
+
+ <dt>Profile created on</dt>
+ <dd>{{ profile.created }}</dd>
+
+ </dl>
+ </div>
+ </div>
+ </div>
+{% endblock %}
+
+