Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="tabs_nav">
- <ul class="nav nav-tabs">
- <li><a href="#history">История</a></li>
- <li><a href="#groups">Группы</a></li>
- <li><a href="#permissions">Права</a></li>
- <li><a href="#documents">Документы</a></li>
- <li class="dropdown">
- <a class="dropdown-toggle" data-toggle="dropdown" href="#contacts">Контакты<b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li>
- {% if not user.userprofile.position %}
- <a href="{% url employee_add_not_position user.id %}">
- Добавить контакт
- </a>
- {% else %}
- <a href="{% url employee_add user.id %}">
- Добавить контакт
- </a>
- {% endif %}
- </li>
- </ul>
- </li>
- </ul>
- <div class="tabs_content">
- <div id="history">
- {% load pagination_tags %}
- {% autopaginate user_history 20 %}
- <table class="table table-striped table-bordered table-condensed ">
- <thead>
- <th>#</th>
- <th>
- ip-адрес
- </th>
- <th>
- Действие
- </th>
- <th>
- Дата
- </th>
- <th>
- Лицевой счет
- </th>
- </thead>
- {% for item in user_history %}
- <tr>
- <td>
- {{ forloop.counter0|add:page_obj.start_index }}
- </td>
- <td>
- {{ item.remote_addr }}
- </td>
- <td>
- {{ item.action_description }}
- </td>
- <td>
- {{ item.dt }}
- </td>
- <td>
- {{ item.pa }}
- </td>
- </tr>
- {% endfor %}
- </table>
- {% paginate %}
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement