{% extends 'editor/editor.html' %}

{% block main %}

    <div class="index padding">
        
        <p>
            <h3>Topics/Nodes</h3>
            A topic is represented by a single node in the DOKK graph. For example
            the topic "Peers Community" is represented by a node that is visible
            <a href="/The_Peers_Community">here</a>. To create a new topic, you can
            just go the page <em>dokk.org/&lt;topic name&gt;</em>. To edit a topic,
            click the edit button at the top-right corner of the page.
        </p>
        <p class="margin-top">
            <form action="" method="post">
                <input type="hidden" name="type" value="topic" />
                <input type="text" name="id" value="" placeholder="Name" required="true" class="" />
                <input type="submit" value="Create new" class="button button_default" />
            </form>
        </p>
        
        <p class="larger-margin-top">
            <h3>Templates</h3>
            Templates are pre-built, reusable fragments that can be included
            within articles. If two or more articles share parts of their content,
            sometimes it's useful to group them into a template in order to
            avoid duplication.
        </p>
        <p class="margin-top">
            <form action="" method="post">
                <input type="hidden" name="type" value="template" />
                <input type="text" name="id" value="" placeholder="Name" required="true" class="" />
                <input type="submit" value="Create new" class="button button_default" />
                
                or <a href="{{ url('templates') }}">view all templates</a>
            </form>
        </p>
        
        <p class="larger-margin-top">
            <h3>Queries</h3>
            With queries it's possible to retrieve data from the DOKK graph and
            use it inside an article's page.
        </p>
        <p class="margin-top">
            <form action="" method="post">
                <input type="hidden" name="type" value="query" />
                <input type="text" name="id" value="" placeholder="Name" required="true" class="" />
                <input type="submit" value="Create new" class="button button_default" />
                
                or <a href="{{ url('queries') }}">view all queries</a>
            </form>
        </p>
        
        <p class="larger-margin-top">
            <h3>Files</h3>
            If you wish to contribute a file instead, you can upload it using
            the following form.
        </p>
        <p>
            <a href="{{ url('upload') }}">Upload a file</a> or
            <a href="{{ url('files') }}">show all files</a>
        </p>
        
        <div class="larger-margin-bottom"></div>
        
    </div>

{% endblock %}
