Parent: [db9798] (diff)

Child: [1c3c54] (diff)

Download this file

mass_edit.html    104 lines (99 with data), 4.6 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
<!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"/>
<link rel="stylesheet" type="text/css" href="${g.app_static('css/tracker.css')}"/>
<style type="text/css">
div.ticket { font-size:160% }
</style>
</head>
<body>
<h1 class="title">ForgeTracker for $c.project.shortname</h1>
<div class="content">
<div class="row">
<div class="column grid_12">
<h2>Tickets</h2>
<py:if test="not len(tickets)">No tickets found.</py:if>
<table py:if="len(tickets)">
<thead>
<tr>
<th></th>
<th data-sort="ticket_num_i">Ticket</th>
<th data-sort="status_s">Status</th>
<th>Description</th>
<th data-sort="assigned_to_s">Assigned To</th>
<th data-sort="mod_date_dt">Updated</th>
</tr>
</thead>
<tbody class="ticket-list">
<tr py:for="t in tickets">
<td><input type="checkbox" name="${t._id}" value=""/></td>
<td><a href="${t.url()}">[#${t.ticket_num}] ${t.summary}</a></td>
<td class="${t.status}">${t.status}</td>
<td py:if="len(t.description) &gt; 70">${t.description[0:70]}...</td>
<td py:if="len(t.description) &lt;= 70">${t.description}</td>
<td py:if="t.assigned_to_id">${t.assigned_to.display_name}</td>
<td py:if="not t.assigned_to_id"></td>
<td>${h.ago(t.mod_date)}</td>
</tr>
</tbody>
</table>
<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>
<py:for each="option in field.options.split()">
<option py:if="not option.startswith('*')" value="${option}">${option}</option>
<option py:if="option.startswith('*')" value="${option[1:]}" selected="selected">${option[1:]}</option>
</py:for>
</select>
</div>
</div>
<button onclick="update_tickets()">Update Tickets</button>
<span id="result"></span>
</div>
</div>
</div>
</body>
<script type="text/javascript">
$('tbody.ticket-list').children(':even').addClass('even');
</script>
<script type="text/javascript">
var q="${Markup(q)}", count=$count, limit=$limit, page=$page, sort="${Markup(sort)}";
</script>
<script type="text/javascript" src="${g.app_static('js/ticket-list.js')}"/>
<script type="text/javascript" src="${g.app_static('js/mass-edit.js')}"/>
</html>