| author | gibus |
| Tue, 11 Feb 2014 12:33:25 +0100 | |
| changeset 572 | 93383e54e042 |
| parent 565 | 95a5c06c4008 |
| permissions | -rw-r--r-- |
| 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(){ |
|
|
565
95a5c06c4008
With JQuery > 1.6 replace .attr() by .prop() or .val(), see http://api.jquery.com/prop/
gibus
parents:
167
diff
changeset
|
37 |
old_state = $("#id_workspace_role_model").val(); |
| 164 | 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)) { |
|
|
565
95a5c06c4008
With JQuery > 1.6 replace .attr() by .prop() or .val(), see http://api.jquery.com/prop/
gibus
parents:
167
diff
changeset
|
42 |
$("#id_workspace_role_model").val(old_state); |
| 164 | 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 |