|
164
|
1 |
{% extends "site/layout/base_workspace_form.html" %} |
|
|
2 |
{% load i18n %} |
|
|
3 |
{% load com %} |
|
|
4 |
|
|
|
5 |
{% block title %}{% blocktrans %}Settings{% endblocktrans %}{% endblock %} |
|
|
6 |
|
|
|
7 |
{% block head %} |
|
|
8 |
{% endblock %} |
|
|
9 |
|
|
|
10 |
{% block pre_form %} |
|
|
11 |
|
|
|
12 |
<script type="text/javascript"> |
|
|
13 |
<!-- |
|
|
14 |
tb_conf['current_tab'] = 'settings'; |
|
|
15 |
--> |
|
|
16 |
</script> |
|
|
17 |
|
|
|
18 |
<div id="settings" class="tab-meta"> |
|
|
19 |
|
|
|
20 |
<ul class="sub_list"> |
|
|
21 |
<li><a href="{% url settings %}">{% blocktrans %}General{% endblocktrans %}</a></li> |
|
|
22 |
<li> / </li> |
|
167
|
23 |
<li class="active_sub">{% blocktrans %}Appearance{% endblocktrans %}</li> |
|
164
|
24 |
</ul> |
|
|
25 |
|
|
|
26 |
{% endblock %} |
|
|
27 |
|
|
|
28 |
{% block buttons %} |
|
|
29 |
<input name="cancel" type="button" id="cancel_button" value="{% blocktrans %}Cancel{% endblocktrans %}"/> |
|
|
30 |
| |
|
|
31 |
<input name="delete_logo" type="submit" id="delete_logo_button" value="{% blocktrans %}Delete logo{% endblocktrans %}"/> |
|
|
32 |
<script type="text/javascript"> |
|
|
33 |
<!-- |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
$(document).ready(function(){ |
|
|
37 |
old_state = $("#id_workspace_role_model").attr('value'); |
|
|
38 |
|
|
|
39 |
$("#id_workspace_role_model").change(function (e) { |
|
|
40 |
question = "{% blocktrans %}Are you sure you want to change the role model? All roles (except managers) will be resetted!{% endblocktrans %}"; |
|
|
41 |
if (!confirm(question)) { |
|
|
42 |
$("#id_workspace_role_model").attr('value',old_state); |
|
|
43 |
} |
|
|
44 |
}); |
|
|
45 |
|
|
|
46 |
$("#cancel_button").click(function (e) { |
|
|
47 |
window.location = "{% url index %}"; |
|
|
48 |
e.stopPropagation(); |
|
|
49 |
}); |
|
|
50 |
}) ; |
|
|
51 |
--> |
|
|
52 |
</script> |
|
|
53 |
{% endblock %} |
|
|
54 |
|
|
|
55 |
{% block post_form %} |
|
|
56 |
</div> |
|
|
57 |
{% endblock %} |
|
|
58 |
|