diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-12-31 19:33:39 -0500 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-12-31 19:33:39 -0500 |
commit | a597566bf12a6feb5a760f1e816468750612ffe0 (patch) | |
tree | f74e8bd2b98e8a9c46bd6afaa6bf7f3b073ad374 /askbot/skins/default/templates/user_profile/user_edit.html | |
parent | 4fbbd9e02b7814c26b25740574933dd4040fdf6b (diff) | |
download | askbot-a597566bf12a6feb5a760f1e816468750612ffe0.tar.gz askbot-a597566bf12a6feb5a760f1e816468750612ffe0.tar.bz2 askbot-a597566bf12a6feb5a760f1e816468750612ffe0.zip |
moved most includable templates to directory blocks and user templates to the directory user_profile
Diffstat (limited to 'askbot/skins/default/templates/user_profile/user_edit.html')
-rw-r--r-- | askbot/skins/default/templates/user_profile/user_edit.html | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/askbot/skins/default/templates/user_profile/user_edit.html b/askbot/skins/default/templates/user_profile/user_edit.html new file mode 100644 index 00000000..ecdc8809 --- /dev/null +++ b/askbot/skins/default/templates/user_profile/user_edit.html @@ -0,0 +1,92 @@ +{% extends "one_column_body.html" %} +{% import "macros.html" as macros %} +<!-- user_edit.html --> +{% block title %}{% spaceless %}{% trans %}Edit user profile{% endtrans %}{% endspaceless %}{% endblock %} +{% block content %} +<div id="main-bar" class="headNormal"> + {{ request.user.username }} - {% trans %}edit profile{% endtrans %} +</div> +<div id="main-body" style="width:100%;padding-top:10px"> + <form name="" action="{% url edit_user request.user.id %}" method="post"> + <div id="left" style="float:left;width:180px"> + {% if request.user.email %} + {{ macros.gravatar(request.user, 128) }} + {% else %} + <img src="{{"/images/nophoto.png"|media}}"> + {% endif %} + <h1><a href="{% url faq %}#gravatar">{% trans %}change picture{% endtrans %}</a><h1> + </div> + <div id="askform" style="float:right;width:750px;text-align:left;"> + <h2>{% trans %}Registered user{% endtrans %}</h2> + <table class="user-details"> + <tr> + <th width="100px"></th> + <th></th> + </tr> + <tr style="height:35px"> + <td>{% trans %}Screen Name{% endtrans %}:</td> + <td> + {% if settings.EDITABLE_SCREEN_NAME %} + {{ form.username }} + <span class="form-error"></span> {{ form.username.errors }} </td> + {% else %} + {{ request.user.username }} + {% endif %} + </td> + </tr> + <tr style="height:35px"> + <td>{{ form.email.label_tag() }}:</td> + <td>{{ form.email }} <span class="form-error"></span> {{ form.email.errors }} </td> + </tr> + <tr style="height:35px"> + <td></td> + <td class="title-desc">{{ form.email.help_text }}</td> + </tr> + <tr style="height:35px"> + <td>{{ form.realname.label_tag() }}:</td> + <td>{{ form.realname }} <span class="form-error"></span> {{ form.realname.errors }} </td> + </tr> + <tr style="height:35px"> + <td>{{ form.website.label_tag() }}:</td> + <td>{{ form.website }} <span class="form-error"></span> {{ form.website.errors }} </td> + </tr> + <tr style="height:35px"> + <td>{{ form.city.label_tag() }}:</td> + <td>{{ form.city }} <span class="form-error"></span> {{ form.city.errors }} </td> + </tr> + <tr style="height:35px"> + <td>{{ form.birthday.label_tag() }}:</td> + <td>{{ form.birthday }} <span class="form-error"></span> {{ form.birthday.errors }} </td> + </tr> + <tr style="height:35px"> + <td></td> + <td class="title-desc">{{ form.birthday.help_text }}</td> + </tr> + <tr style="height:10px"> + <td colspan="2"> + </td> + </tr> + <tr> + <td style="vertical-align:top">{{ form.about.label_tag() }}:</td> + <td>{{ form.about }} <span class="form-error"></span> {{ form.about.errors }} </td> + </tr> + </table> + <div style="margin:30px 0 60px 0"> + <input type="submit" value="{% trans %}Update{% endtrans %}" class="submit" > + <input id="cancel" type="button" value="{% trans %}Cancel{% endtrans %}" class="submit" > + </div> + </div> + </form> +</div> +{% endblock %} +{% block endjs %} + <script type="text/javascript"> + $().ready(function(){ + $("#nav_profile").attr('className',"on"); + $("#cancel").bind('click', function(){history.go(-1);}) + }); + </script> + {% block userjs %} + {% endblock %} +{% endblock %} +<!-- end user_edit.html --> |