Source

fat-po-editor / fat / fat_po_editor / templates / fat_po_editor / repositories_list.html

Full commit
{% load js_util %}
{% load i18n %}
{% add_js %}
<script type="text/javascript" src="{{ STATIC_URL }}js/repositories_list.js"></script>
{% end_add_js %}
<h3>List of repositories</h2>
<div id="repositories-list">
    <form action="{% url fat_po_editor.views.repository.add %}" method="POST">{% csrf_token %}
        {% if repositories %}
        <ul class="repository-list">
            {% for repository in repositories %}
            <li class="repo">{{ repository.path }}</li>
            {% endfor %}
        </ul>
        {% else %}
        {% trans "No repository path's have been added yet. Go ahead!" %}
        {% endif %}
        <div>
            <input type="text" name="path" value="" class="repo-name" />
            <input type="submit" name="Add" value="{% trans 'Add' %}" />
            {% comment %}
            <a href="javascript:void(0)"
               class="add-repo pseudo">Add</a>
            {% domready %}
                var repolist = (
                    new RepositoriesList({
                        $list: $('#repositories-list'),
                        add_url: '{% url fat_po_editor.views.repository.add %}',
                        autocomplete_url: "{% url fat_po_editor.views.repository.path_autocomplete %}"}));
            {% enddomready %}
            {% endcomment %}
        </div>
    </form>
</div>