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

{% 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">
    {% 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 %}
    <form action="{% url fat_po_editor.views.repository.add %}" method="POST">{% csrf_token %}
        <div class="add-form">
            {{ add_repo_form.as_p }}
        </div>
        <input type="submit" name="Add" value="{% trans 'Add' %}" class="add" />
        {% domready %}
            $('#id_path')
                .autocomplete({
                    source: "{% url fat_po_editor.views.repository.path_autocomplete %}"});
        {% enddomready %}
    </form>
</div>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.