2017-05-10 18:41:02 +02:00
|
|
|
|
{% extends 'layouts/master.html' %}
|
|
|
|
|
{% block title %}View{% endblock %}
|
|
|
|
|
{% block body %}
|
|
|
|
|
<h1>Contacts</h1>
|
|
|
|
|
<table class="table table-hover">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
2020-10-13 13:06:32 +00:00
|
|
|
|
<th scope="col">用户名</th>
|
|
|
|
|
<th scope="col">密码1(公开)</th>
|
|
|
|
|
<th scope="col">密码2(内部)</th>
|
2017-05-10 18:41:02 +02:00
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{% for contact in contacts %}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{ contact.name }}</td>
|
2020-10-13 13:06:32 +00:00
|
|
|
|
<td>{{ contact.password }}</td>
|
|
|
|
|
<td>{{ contact.password2 }}</td>
|
2017-05-10 18:41:02 +02:00
|
|
|
|
<td class="text-right">
|
2017-05-11 18:31:59 +02:00
|
|
|
|
<div class="row">
|
2017-05-12 00:23:01 +02:00
|
|
|
|
<form action="{{ url_for('contacts_delete') }}" method="post" class="pull-right">
|
|
|
|
|
<input type="hidden" name="id" value="{{ contact.id }}">
|
2020-10-13 13:06:32 +00:00
|
|
|
|
<input type="submit" class="btn btn-danger" data-toggle="confirmation" {# data-title="¿Estas seguro?" #} value="删除"">
|
2017-05-12 00:23:01 +02:00
|
|
|
|
</form>
|
2020-10-13 13:06:32 +00:00
|
|
|
|
<a class="btn btn-primary pull-right" href="{{ url_for('edit_contact', id=contact.id) }}">修改</a>
|
2017-05-11 18:31:59 +02:00
|
|
|
|
</div>
|
2017-05-10 18:41:02 +02:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
{% endblock %}
|