Parent: [74676e] (diff)

Child: [901253] (diff)

Download this file

new_ticket.html    63 lines (53 with data), 2.8 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
<!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="master.html" />
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
<title>New Ticket</title>
</head>
<body>
<h1 class="title">Create a Ticket</h1>
<form method="POST" action="${action}">
<input type="hidden" name="ticket_num" value=""/>
<input type="hidden" name="super_id" value="${super_id}"/>
<div class="span-3 clear"><label for="summary">Name:</label></div>
<div class="span-13 last"><input name="summary" value="" class="title wide"/></div>
<div class="span-3 clear"><label for="description">Description:</label></div>
<div class="span-14 last">${c.markdown_editor.display(name='description',value='')}</div>
<div class="span-3 clear"><label for="status">Status:</label></div>
<div class="span-6">
<select name="status" class="title">
<option py:for="name in globals.status_names.split()" value="$name">$name</option>
</select>
</div>
<div class="span-3"><label for="assigned_to">Assigned To:</label></div>
<div class="span-4 append-2 last">${c.user_select.display(name='assigned_to')}</div>
<div class="span-3 clear"><label for="milestone">Milestone:</label></div>
<div class="span-6">
<select name="milestone" class="title">
<option value="">None</option>
<option py:for="name in globals.milestone_names.split()" value="$name">$name</option>
</select>
</div>
<py:if test="globals.custom_fields">
<py:for each="i,field in enumerate(globals.custom_fields)">
<div class="span-3${i%2 and ' clear' or ''}"><label for="${field.name}">${field.label}:</label></div>
<div class="${i%2 and 'span-6' or 'span-4 append-2 last'}">
<input py:if="field.type != 'select' and field.type != 'boolean'" name="${field.name}" type="text" value="" class="title wide"/>
<input py:if="field.type == 'boolean'" name="${field.name}" type="checkbox" value="True"/>
<select py:if="field.type == 'select'" name="${field.name}" class="title wide">
<option py:for="option in field.options.split()" value="${option}">$option</option>
</select>
</div>
</py:for>
</py:if>
<div class="span-3 clear"><label for="tags">Tags</label></div>
<div class="span-13 last">${c.user_tag_edit.display(name='tags', user_tags={'tags':[]}, className='title wide')}</div>
<div class="span-14 push-3 last"><input type="submit" value="Create Ticket" class="ui-button ui-widget ui-state-default ui-button-text-only"/></div>
</form>
<div class="clear"></div>
</body>
</html>