{% extends "site/layout/base_workspace_form.html" %}
{% load i18n %}
{% load com %}

{% block title %}{% blocktrans %}Settings{% endblocktrans %}{% endblock %}

{% block head %}
{% endblock %}

{% block pre_form %}

<script type="text/javascript">
<!--
tb_conf['current_tab'] = 'settings';
-->
</script>

<div id="settings" class="tab-meta">   

<ul class="sub_list">
    <li><a href="{% url settings %}">{% blocktrans %}General{% endblocktrans %}</a></li>
    <li> / </li>
    <li class="active_sub">{% blocktrans %}Design{% endblocktrans %}</li>
</ul>

{% endblock %}

{% block buttons %}
    <input name="cancel" type="button" id="cancel_button" value="{% blocktrans %}Cancel{% endblocktrans %}"/>
    &nbsp;|&nbsp; 
    <input name="delete_logo" type="submit" id="delete_logo_button" value="{% blocktrans %}Delete logo{% endblocktrans %}"/>
    <script type="text/javascript">
    <!--

    
    $(document).ready(function(){
        old_state = $("#id_workspace_role_model").attr('value');
        
        $("#id_workspace_role_model").change(function (e) { 
            question = "{% blocktrans %}Are you sure you want to change the role model? All roles (except managers) will be resetted!{% endblocktrans %}";
            if (!confirm(question)) {
            	$("#id_workspace_role_model").attr('value',old_state);
            }
          });
        
        $("#cancel_button").click(function (e) { 
            window.location = "{% url index %}";
            e.stopPropagation(); 
          });                
    }) ;
    -->
    </script>
{% endblock %}

{% block post_form %}
</div>
{% endblock %}

