src/cm/templates/site/settings.html
changeset 0 40c8f766c9b8
child 160 0c01050f9717
equal deleted inserted replaced
-1:000000000000 0:40c8f766c9b8
       
     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 {% endblock %}
       
    21 
       
    22 {% block buttons %}
       
    23     <input name="cancel" type="button" id="cancel_button" value="{% blocktrans %}Cancel{% endblocktrans %}"/>
       
    24     <script type="text/javascript">
       
    25     <!--
       
    26 
       
    27     
       
    28     $(document).ready(function(){
       
    29         old_state = $("#id_workspace_role_model").attr('value');
       
    30         
       
    31         $("#id_workspace_role_model").change(function (e) { 
       
    32             question = "{% blocktrans %}Are you sure you want to change the role model? All roles (except managers) will be resetted!{% endblocktrans %}";
       
    33             if (!confirm(question)) {
       
    34             	$("#id_workspace_role_model").attr('value',old_state);
       
    35             }
       
    36           });
       
    37         
       
    38         $("#cancel_button").click(function (e) { 
       
    39             window.location = "{% url index %}";
       
    40             e.stopPropagation(); 
       
    41           });                
       
    42     }) ;
       
    43     -->
       
    44     </script>
       
    45 {% endblock %}
       
    46 
       
    47 {% block post_form %}
       
    48 </div>
       
    49 {% endblock %}
       
    50