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>
<p>
    {% if repositories %}
    <ul id="repository-list-ul">
        {% for repository in repositories %}
        <li>{{ repository }}</li>
        {% endfor %}
    </ul>
    {% else %}
    {% trans "No repository path's have been added yet. Go ahead!" %}
    {% endif %}
</p>
<p class="repositories-list">
    <input type="text" name="path" value="" id="repository_add_path" class="input-path" />
    <a href="javascript:void(0)"
       class="pseudo"
       id="add-repo">Add</a>
    {% domready %}
        var repolist = (
            new RepositoriesList({
                $add_button: $('#add-repo'),
                $add_path_input: $('#repository_add_path'),
                add_url: '{% url fat_po_editor.views.repository.add %}',
                autocomplete_url: "{% url fat_po_editor.views.repository.path_autocomplete %}",
                $repository_list_url: $('#repository-list-ul')}));
    {% enddomready %}
    
    {# {% url fat_po_editor.views.repository.add %} #}
</p>