co_list.jinja 858 Bytes
Newer Older
Krophil's avatar
Krophil committed
1
2
3
4
5
6
7
{% extends "core/base.jinja" %}

{% block title %}
{% trans %}Company list{% endtrans %}
{% endblock %}

{% block content %}
Krophil's avatar
Krophil committed
8
9
10
11
    <div id="accounting">
        {% if user.is_in_group(settings.SITH_GROUP_ACCOUNTING_ADMIN_ID) or user.is_root %}
        <p><a href="{{ url('accounting:co_new') }}">{% trans %}Create new company{% endtrans %}</a></p>
        {% endif %}
Krophil's avatar
Krophil committed
12

Krophil's avatar
Krophil committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
        </br>
        <table>
            <thead>
            <tr>
                <td>{% trans %}Companies{% endtrans %}</td>
            </tr>
            </thead>
            <tbody>
                {% for o in object_list %}
                    <tr>
                        <td><a href="{{ url('accounting:co_edit', co_id=o.id) }}">{{ o.get_display_name() }}</a></td>
                    </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
Krophil's avatar
Krophil committed
29
{% endblock %}