equal
deleted
inserted
replaced
|
1 {% extends "site/layout/base_workspace_form.html" %} |
|
2 {% load com %} |
|
3 {% load i18n %} |
|
4 |
|
5 {% block title %} |
|
6 {% if user_edit %}{% blocktrans with user_edit.get_profile.admin_print as username %}Edit user {{ username }}{% endblocktrans %}{% else %}{% blocktrans %}Edit anonymous users{% endblocktrans %}{% endif %} |
|
7 {% endblock %} |
|
8 |
|
9 {% block pre_form %} |
|
10 |
|
11 <script type="text/javascript"> |
|
12 <!-- |
|
13 tb_conf['current_tab'] = 'user'; |
|
14 --> |
|
15 </script> |
|
16 |
|
17 <div id="user" class="tab-meta"> |
|
18 |
|
19 <ul class="sub_list"> |
|
20 <li><a href="{% url user %}">{% blocktrans %}Users' list{% endblocktrans %}</a></li> |
|
21 <li> / </li> |
|
22 <li><a href="{% url user-add %}">{% blocktrans %}Add a new user{% endblocktrans %}</a></li> |
|
23 <li> / </li> |
|
24 <li class="active_sub">{% if user_edit %}{% blocktrans with user_edit.get_profile.admin_print as username %}Edit user {{ username }}{% endblocktrans %}{% else %}{% blocktrans %}Edit anonymous users{% endblocktrans %}{% endif %}</li> |
|
25 </ul> |
|
26 {% endblock %} |
|
27 |
|
28 {% block buttons %} |
|
29 <input name="cancel" type="button" id="cancel_button" value="{% blocktrans %}Cancel{% endblocktrans %}"/> |
|
30 <script type="text/javascript"> |
|
31 <!-- |
|
32 $(document).ready(function(){ |
|
33 $("#cancel_button").click(function () { |
|
34 window.location = "{% url user %}"; |
|
35 }); |
|
36 }) ; |
|
37 --> |
|
38 </script> |
|
39 {% endblock %} |
|
40 |
|
41 {% block post_form %} |
|
42 </div> |
|
43 {% endblock %} |