<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:py="http://genshi.edgewall.org/"
  xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="layout.html" />
<xi:include href="macros.html" />
<head>
<title>周知事項一覧</title>
</head>
<body>
<div id="main">
<h1>周知事項一覧</h1>
<form>
<div py:if="milestones is not None"><lavel>milestone:</lavel> <select name="milestone">
  <option py:for="m in milestones"
    selected="${selected_milestone==m or None}" value="$m">$m</option>
</select></div>
<div py:if="components is not None"><lavel>component:</lavel> <select name="component">
  <option py:for="c in components"
    selected="${selected_component==c or None}" value="$c">$c</option>
</select></div>
<div py:if="priority is not None"><lavel>priority:</lavel> <select name="priority">
  <option py:for="p in priority"
    selected="${selected_priority==p or None}" value="$p">$p</option>
</select></div>
<div py:if="typelist is not None"><lavel>type:</lavel> <select name="type">
  <option py:for="t in typelist" selected="${selected_type==t or None}"
    value="$t">$t</option>
</select></div>
<input type="submit" value="再表示" />
<br />
</form>
<table class="informlist" py:if="len(usernamelist) > 0">
  <thead>
    <tr>
      <th>ID</th>
      <th>タイトル</th>
      <th>問い合わせ内容</th>
      <th py:for="username in usernamelist"><py:for
        each="u in username">$u<br />
      </py:for></th>
    </tr>
  </thead>

  <tr py:for="ticket in ticketlist">
    <td><a href="${req.base_url}/ticket/${ticket['id']}"
      title="チケットを見る">#${ticket["id"]}</a></td>
    <td>${ticket["summary"]}</td>
    <td>${ticket["question"]}</td>
    <py:for each='userdata in ticket["tabledata"]'>
      <td py:if="userdata is None" class="warning"></td>
      <td py:if="userdata == True">Ｙ</td>
      <td py:if="userdata == False">Ｎ</td>
    </py:for>
  </tr>

</table>
</div>
<div py:if="len(usernamelist) == 0" class="system-message">
該当するデータが存在しません。
</div>
</body>
</html>