{% extends "kiwi/subbase.html" %}
{% load kiwimarkup %}
{% load kiwiwiki %}
{% block head_title %}{{ block.super }} - Aide de la syntaxe Wiki{% endblock %}
{% block head_more_links %}
    <link rel="Stylesheet" title="Normal" media="screen" type="text/css" href="{{ metas.kiwimedias_url }}js/bof_editor/wikibar/ui.css"/>
    <link rel="Stylesheet" title="Normal" media="screen" type="text/css" href="{{ metas.kiwimedias_url }}js/bof_editor/ui.css"/>
{% endblock %}
{% block head_more_js %}
    <script type="text/javascript" src="{{ metas.kiwimedias_url }}js/bof_editor/wikibar/api.js"></script>
    <script type="text/javascript" src="{{ metas.kiwimedias_url }}js/bof_editor/api.js"></script>
    
    <script type="text/javascript">
    //<![CDATA[
        $(document).ready(function(){
            MEDIAS_URL = "{{ metas.medias_url }}";
            $('#id_text').BOF_Editor({
                'url_preview': "{% url kiwi.views.syntax.preview %}",
                'with_wikibar': true
            });
        });
    //]]>
    </script>
{% endblock %}
{% block header_pathline_content %}
    <a href="{% url kiwi.views.syntax.help %}">Aide de la syntaxe Wiki</a>
{% endblock %}

{% block content %}
    <div class="columned">
    
        <div id="submenu">
            <div class="container">
                <h2>Sommaire</h2>
                <div class="summary">
                    <ul>
                        <li><a href="#helper-blocks">Blocs de contenus</a></li>
                        <li><a href="#helper-bulletlists">Listes à puces ou numérotées</a></li>
                        <li><a href="#helper-titles">Titres et sommaire des titres</a></li>
                        <li><a href="#helper-inline">Mise en forme des éléments en lignes</a></li>
                        <li><a href="#helper-links">Liens</a></li>
                        <li><a href="#helper-macros">Macros</a></li>
                        <li><a href="#helper-test">Test de la syntaxe</a></li>
                    </ul>
                </div>
            </div>
        </div>
        
        <div class="content_container">
            <h2>Aide de la syntaxe Wiki</h2>
            
            <div class="help_syntax">
            
                {% include "kiwi/syntax_help_content.html" %}
                
                <div class="wiki2xhtml">
                    <h3 id="helper-test">Test de la syntaxe</h3>
                    <p>Vous pouvez utiliser ce formulaire pour tester la syntaxe.</p>
                    
                    <fieldset>
                        <legend><label for="id_text">Texte:</label></legend>
                        <div>
                            <textarea id="id_text" rows="14" cols="100" name="text" class="vLargeTextField">{{ wikipageObject.text }}</textarea>
                        </div>
                    </fieldset>
                </div>
            </div>
        </div>
    </div>
{% endblock %}