<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.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="${g.pyforge_templates}/master.html"/>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
<title>ForgeTracker Index Page</title>
<link rel="alternate" type="application/rss+xml" title="RSS" href="feed.rss"/>
<link rel="alternate" type="application/atom+xml" title="Atom" href="feed.atom"/>
<style type="text/css">
div.ticket { font-size:160% }
</style>
</head>
<body>
<h1 class="title">ForgeTracker for $c.project.shortname</h1>
<h2>Tickets</h2>
<py:if test="not len(tickets)">No tickets found.</py:if>
<table py:if="len(tickets)">
<thead>
<tr>
<th></th>
<th>#</th>
<th>Summary</th>
</tr>
</thead>
<tbody class="ticket-list">
<tr py:for="ticket in tickets">
<td><input type="checkbox" name="${ticket._id}" value=""/></td>
<td><a href="${ticket.url()}">#$ticket.ticket_num</a></td>
<td>$ticket.summary</td>
</tr>
</tbody>
</table>
<script type="text/javascript">
$('tbody.ticket-list').children(':even').addClass('even');
</script>
<h2>Update</h2>
<div id="update-values">
<div>
<label for="assigned_to">Assigned To:</label>
<br/>
${c.user_select.display(name='assigned_to')}
</div>
<div>
<label for="status">Status:</label>
<br/>
<select name="status">
<option value="" selected="selected"></option>
<option py:for="option in globals.status_names.split()" value="${option}">$option</option>
</select>
</div>
<div>
<label for="milestone">Milestone:</label>
<br/>
<select name="milestone">
<option value="" selected="selected">None</option>
<option py:for="option in globals.milestone_names.split()" value="${option}">$option</option>
</select>
</div>
<div py:for="field in globals.custom_fields" py:if="field.type != 'sum'">
<label for="${field.name}">${field.label}:</label>
<br/>
<input py:if="field.type != 'select' and field.type != 'boolean'" name="${field.name}" type="text" value=""/>
<input py:if="field.type == 'boolean'" name="${field.name}" type="checkbox" value="True"/>
<select py:if="field.type == 'select'" name="${field.name}">
<option value="" selected="selected"></option>
<option py:for="option in field.options.split()" value="${option}">$option</option>
</select>
</div>
</div>
<button onclick="update_tickets()">Update Tickets</button>
<span id="result"></span>
</body>
<script type="text/javascript" src="/static/Tickets/js/mass-edit.js"/>
</html>