Skip to content

Commit

Permalink
[6-6] お問い合わせ一覧のテンプレート
Browse files Browse the repository at this point in the history
  • Loading branch information
hidenorigoto committed Dec 28, 2015
1 parent f04b208 commit 920b60c
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
31 changes: 31 additions & 0 deletions app/Resources/views/Admin/Inquiry/index.html.twig
@@ -0,0 +1,31 @@
{% extends "Admin/layout.html.twig" %}

{% block title %}お問い合わせ管理{% endblock %}

{% block body %}
<h2 class="sub-header">お問い合わせ管理</h2>
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th>日時</th>
<th>名前</th>
<th>種別</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{% for inquiry in inquiryList %}
<tr>
<td>{{ inquiry.id }}</td>
<td></td>
<td>{{ inquiry.name }}</td>
<td>{% if inquiry.type == 0 %}公演について{% else %}その他{% endif %}</td>
<td>
詳細
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
31 changes: 31 additions & 0 deletions docs/lists/ch06/06-06.txt
@@ -0,0 +1,31 @@
{% extends "Admin/layout.html.twig" %}

{% block title %}お問い合わせ管理{% endblock %}

{% block body %}
<h2 class="sub-header">お問い合わせ管理</h2>
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th>日時</th>
<th>名前</th>
<th>種別</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{% for inquiry in inquiryList %}
<tr>
<td>{{ inquiry.id }}</td>
<td></td>
<td>{{ inquiry.name }}</td>
<td>{% if inquiry.type == 0 %}公演について{% else %}その他{% endif %}</td>
<td>
詳細
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}

0 comments on commit 920b60c

Please sign in to comment.