| author | Simon Descarpentries <sid@sopinspace.com> |
| Fri, 04 Apr 2014 18:23:30 +0200 | |
| changeset 624 | 3dd70d01cec2 |
| parent 565 | 95a5c06c4008 |
| permissions | -rw-r--r-- |
| 0 | 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 |
||
| 164 | 20 |
<ul class="sub_list"> |
21 |
<li class="active_sub">{% blocktrans %}General{% endblocktrans %}</li> |
|
22 |
<li> / </li> |
|
23 |
<li><a href="{% url settings-design %}">{% blocktrans %}Appearance{% endblocktrans %}</a></li> |
|
24 |
</ul> |
|
25 |
||
| 0 | 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 |
||
33 |
|
|
34 |
$(document).ready(function(){ |
|
|
565
95a5c06c4008
With JQuery > 1.6 replace .attr() by .prop() or .val(), see http://api.jquery.com/prop/
gibus
parents:
164
diff
changeset
|
35 |
old_state = $("#id_workspace_role_model").val(); |
| 0 | 36 |
|
37 |
$("#id_workspace_role_model").change(function (e) { |
|
38 |
question = "{% blocktrans %}Are you sure you want to change the role model? All roles (except managers) will be resetted!{% endblocktrans %}"; |
|
39 |
if (!confirm(question)) { |
|
|
565
95a5c06c4008
With JQuery > 1.6 replace .attr() by .prop() or .val(), see http://api.jquery.com/prop/
gibus
parents:
164
diff
changeset
|
40 |
$("#id_workspace_role_model").val(old_state); |
| 0 | 41 |
} |
42 |
}); |
|
43 |
|
|
44 |
$("#cancel_button").click(function (e) { |
|
45 |
window.location = "{% url index %}"; |
|
46 |
e.stopPropagation(); |
|
47 |
}); |
|
48 |
}) ; |
|
49 |
--> |
|
50 |
</script> |
|
51 |
{% endblock %} |
|
52 |
||
53 |
{% block post_form %} |
|
54 |
</div> |
|
55 |
{% endblock %} |
|
56 |