{% load i18n %}
{% load logintag %}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{LANGUAGE_CODE}}" lang="{{LANGUAGE_CODE}}">
<head>
    <meta http-equiv="content-language" content="{{LANGUAGE_CODE}}" />
    <title>{% block title %}Eulalie{% endblock %}</title>
    {% block js_import %}
    <script type="text/javascript" src="{{MEDIA_URL}}js/jquery.min.js"></script>
    <script type="text/javascript" src="{{MEDIA_URL}}js/jquery.nyroModal.min.js"></script>
    <script type="text/javascript" src="{{LDT_MEDIA_PREFIX}}js/jquery.validate.js" ></script>
    {% endblock %}
    {% block css_import %}
    <link rel="stylesheet" href="{{BASE_URL}}static/css/blueprint/screen.css" type="text/css" media="screen, projection" />
    <link rel="stylesheet" href="{{BASE_URL}}static/css/blueprint/print.css" type="text/css" media="print" />
    <!--[if lt IE 8]>
    <link rel="stylesheet" href="{{BASE_URL}}static/css/blueprint/ie.css" type="text/css" media="screen, projection" />
    <![endif]-->
    <link rel="stylesheet" href="{{BASE_URL}}static/css/style.css" type="text/css"/>
    <link rel="stylesheet" href="{{BASE_URL}}static/css/nyroModal.css" type="text/css"/>
    <link rel="stylesheet" href="{{LDT_MEDIA_PREFIX}}/css/style.css" type="text/css"/>
    <link rel="stylesheet" href="{{LDT_MEDIA_PREFIX}}/js/login_ajax/login_ajax.css" type="text/css"/>
    {% endblock %}
    
    {% block js_declaration %}
    {% endblock %}
    
</head>
<body>
    <div class="container">
	<div id="header" class="span-24 last">      
		{% block header %}
		<div id="header_left">
                   <a href="{% url eulalie.views.workspace %}">Eulalie</a>
		</div>
		{% endblock %}
	</div>


	<div id="content" class="span-24 last">
    
        <div id="toolbar" class="span-24 last">
        {% block toolbar %}
          <table>
            <tr>
            <td>{% block login %}{% loginAjax user%}{% endblock %}</td>
            <td>
            {% if LANGUAGES.1 %}
              <div id="language_chooser">            
                <form action="{{BASE_URL}}enmi/i18n/setlang/" method="post">
                <input name="next" type="hidden" value="" />
                <label >{% trans "Langue" %}&nbsp;: </label>
                <select name="language"  onchange="submit()">
                {% for lang in LANGUAGES %}
                <option value="{{ lang.0 }}"{% ifequal lang.0 LANGUAGE_CODE %} selected="selected"{% endifequal %}>{% trans lang.1 %}</option>
                {% endfor %}    
                </select>        
                </form>            
              </div>  
              {% endif %}
              </td>
              </tr>
              </table>
            {% endblock %}
        </div>
        <div id="inner_content" class="span-24 last">
		{% block content %}{% endblock %}
        </div>      
	</div>
	<div id="footer" class="span-24 last">
		{% block footer %}
		<div class="footer_img">
		<a href="http://www.iri.centrepompidou.fr"><img src="{{MEDIA_URL}}/img/logo_IRI_footer.png" alt="Logo IRI" /></a>
		</div>
		<div class="version" id="version"><a>{{VERSION}}</a></div>
		<div style="float: right;" class="small">©2010 <a style="text-decoration: none; color: #4F5155;" href="http://www.iri.centrepompidou.fr">IRI / Centre Pompidou</a></div>
		{% endblock %}
	</div>
    </div>
</body>
</html>
