final move of files
[web.mtrack] / MTrackWeb / templates / ticket.html
1
2 <flexy:toJSON 
3     preview="preview"
4     tid="tid" />
5
6
7
8 <div flexy:if="preview" class='ui-state-highlight ui-corner-all'>
9     <span class='ui-icon ui-icon-info'></span>
10     This is a preview of your pending changes.  It does not show
11     changes to the resolution; those will be applied when you submit.
12 </div>
13
14
15
16 <div flexy:foreach="error,e" class='ui-state-error ui-corner-all'>
17     <span class='ui-icon ui-icon-alert'></span>
18     {e}
19 </div>
20
21 <div id="watch-list"></div>
22
23   
24
25 <div id="issue-desc">
26
27     <h1 flexy:if="issue.nsident">
28         <del flexy:if="!issue.isOpen()">#{issue.nsident} [{issue.status}] {issue.summary}</del>
29         <span flexy:if="issue.isOpen()">#{issue.nsident} [{issue.status}] {issue.summary}</span>
30     </h1> 
31
32
33
34
35
36
37     <div id="ticketinfo">
38
39         <table flexy:if="issue.nsident" id='ctime'>
40             <tr>
41                 <td><label>Opened</label>:</td>
42                 <td>{issue.createdWhen(link):h}</td>
43                 <td>{issue.createdWho(link):h}</td>
44             </tr>
45             <tr flexy:if="!eq(issue.created,issued.updated)">
46                 <td><label>Updated</label>:</td>
47                 <td>{issue.updatedWhen(link):h}</td>
48                 <td>{issue.updatedWho(link):h}</td>
49             </tr>
50         </table>
51
52
53          
54
55         
56         
57         <fieldset id='readonly-tkt-properties'>
58             <legend>Properties</legend> 
59             <table>
60                 <tr>
61                     <td><label>Milestone</label>:</td>
62                     <td width='100%'>{issue.milestoneToHtml():h}</td>  
63                 </tr> 
64                   <tr>
65                     <td><label>Component</label>:</td>
66                     <td width='100%'>{issue.componentsToHtml():h}</td>  
67                 </tr> 
68                 <tr>
69                     <td><label>Classification</label>:</td>
70                     <td width='100%'>{issue.classification}</td>
71                 </tr> 
72                 <tr>
73                     <td><label>Priority</label>:</td>
74                     <td width='100%'>{issue.priority}</td>
75                 </tr> 
76                 <tr>
77                     <td><label>Severity</label>:</td>
78                     <td width='100%'>{issue.severity}</td>
79                 </tr> 
80                 <tr>
81                     <td><label>Keywords</label>:</td>
82                     <td width='100%'>{issue.keywordsToHtml():h}</td>
83                 </tr> 
84                 <tr>
85                     <td colspan='2'><label>ChangeLog (customer visible)</label>:</td>
86                 </tr>
87                     <td colspan='2'>{issue.changelog:b}</td>
88                 </tr> 
89                  
90                  
91                 
92                 
93             </table>
94         </fieldset> 
95         <fieldset id='readonly-tkt-resources'>
96             <legend>Resources</legend> 
97             <table>
98                 <tr>
99                     <td><label>Responsible</label>:</td>
100                     <td width='100%'>{issue.owner}</td>
101                 </tr> 
102                 <tr>
103                     <td><label>Estimated Hours</label>:</td>
104                     <td width='100%'>{issue.estimated}</td>
105                 </tr> 
106                 <tr>
107                     <td><label>Spent Hours</label>:</td>
108                     <td width='100%'>{issue.spent}</td>
109                 </tr> 
110                   <tr>
111                     <td><label>Cc</label>:</td>
112                     <td width='100%'>{issue.cc}</td>
113                 </tr> 
114                  
115                 
116                 
117             </table>
118         </fieldset> 
119         
120     </div> 
121     
122     {attachmentsToHtml(issue):h}
123
124     <div id='readonly-tkt-description'>{issue.descriptionToHtml():h}</div>
125 </div>
126
127 <br>
128
129 <div flexy:if="showEditBar" id='tkt-view-button-block' class='button-float'>
130     <button class='mtrack-edit-desc'>Edit</button> 
131     <button class='mtrack-make-comment'>Add Comment / Update Status</button> 
132     
133 </div>
134
135     
136     
137      
138
139 <form id='tktedit' method='post' action='{baseURL}/Ticket/{issue.nsident}' enctype='multipart/form-data'>
140     
141     
142     <div id="edit-issue-desc"  style="display:none"  > 
143         
144         
145         
146         
147         
148         
149         <input class='summaryedit' id='summary' name='summary' size='80'>
150         
151         <input type='hidden' name='issue.nsident' value='{issue.nsident}'>
152         
153         <table class='fields'>
154             <tr valign='top'>
155                 <td colspan='4'><label for='description'>Full description:</label><br>
156                     <textarea id='description' name='description' style='height: 11em' rows='10' cols='78' class='code wiki'></textarea>
157                 </td>
158             </tr>
159         </table>
160         
161         <fieldset id='Properties' class="container-block-normal">
162             <legend>Properties</legend>
163             <table class='fields'>
164                 <tr valign='top'>
165                     <td colspan='2'>
166                         <select id='milestone' 
167                             name='milestone[]' 
168                             multiple='multiple' 
169                             title='Milestone (select to add)'></select>
170                     </td>
171                     <td colspan='2'>
172                         <select id='component' 
173                             name='component[]' 
174                             multiple='multiple' 
175                             title='Component (select to add)'></select>
176                     </td>
177                 </tr>
178                 <tr valign='top'>
179                     <td><label for='classification'>Classification:</label></td>
180                     <td class='col1'><select id='classification' name='classification'></select></td>
181                     
182                     <td><label for='priority'>Priority:</label></td>
183                     <td class='col2'><select id='priority' name='priority'></select></td>
184                 </tr>
185                 <tr valign='top'>
186                     <td><label for='severity'>Severity:</label></td>
187                     <td class='col1'><select id='severity' name='severity'></select></td>
188                     
189                     <td><label for='keywords'>Keywords:</label></td>
190                     <td class='col2'><input id='keywords' name='keywords' value=''></td>
191                 </tr>
192                 <tr valign='top'>
193                     <td colspan='4'>
194                         <label for='changelog'>ChangeLog (customer visible):</label><br>
195                         <textarea id='changelog' name='changelog' rows='5' cols='78' class='code'></textarea>
196                     </td>
197                 </tr>
198             </table>
199         </fieldset>
200         
201         
202     </div>
203     <div id='update-issue-desc' style='display:none'  >
204     
205     
206         <fieldset id='Resources' class="container-block-small">
207             <legend>Resources</legend>
208             <table>
209                 <tr valign='top'>
210                     <td><label for='owner'>Responsible:</label></td>
211                     <td class='col1'><select id='owner' name='owner'></select></td>
212                 </tr>
213                 <tr valign='top'>                    
214                     <td><label for='estimated'>Estimated Hours:</label></td>
215                     <td class='col2'><input id='estimated' name='estimated'></td>
216                 </tr>
217                 <tr valign='top'>
218                     <td><label for='cc'>Cc:</label></td>
219                     <td class='col1'><input id='cc' name='cc' value=''></td>
220                 </tr>
221             </table>
222
223         </fieldset>
224         <fieldset  flexy:if="id" id='files-container' class="container-block-small">  
225             <legend>Attachments</legend>
226                 {issue.attachmentsDeleteToHtml():h}
227                 
228                 <label for='attachments[]'>Select file(s) to be attached</label>
229                 <input type='file' class='multi' name='attachments[]'>
230         </fieldset>
231         
232         <fieldset  flexy:if="id" id='action-container'  class="container-block-small">
233             <legend>Action - Issue is currently - {issue.status}</legend>
234                 <input type='radio' id='none' name='action' value='none' checked='checked'> 
235                 <label for='none'>Leave status as {issue.status}</label><br>
236                 <span flexy:if="issue.isOpen()">
237                     <input type='radio' id='accept' name='action' value='accept'> 
238                     <label for='accept'>Assign this ticket to ME</label><br>
239                 </span>
240                 {foreach:change_status,cs}
241                     <input type='radio' id='change_{cs}' name='action' value='change_{cs}' flexy:ignore="yes"> 
242                     <label for='change_{cs}'>Change status to: <B>{cs}</B></label><br>
243                 {end:}
244                 
245                 
246                 {foreach:resolve_status,cs}
247                     <input type='radio' id='resolve_{cs}' name='action' value='resolve_{cs}'  flexy:ignore="yes"> 
248                     <label for='resolve_{cs}'>Resolve as: <B>{cs}</B></label><br>
249                 {end:}
250                 
251             
252                 <br>
253                 <label for='spent'>Log time spent (hours)</label> <input type='text' name='spent' value='0'><br>
254                 <br>
255         </fieldset>
256         
257  
258         
259         <div class="clear"></div>
260         
261         <fieldset id='comment-container'>
262             <legend>Comment</legend>
263             <textarea name='comment' id="comment" class="wiki shortwiki" rows="5" cols="78"></textarea>
264         </fieldset>
265         
266         
267         {captcha():h}
268         
269     </div>
270
271     <div id='tkt-edit-button-block' class='button-float' style='display:none'>
272
273         <button class='mtrack-button-submit' type="submit" name="preview">Preview</button>
274         <button class='mtrack-button-submit' type="submit" name="apply">Submit changes</button>
275         <button class='mtrack-edit-cancel' type="submit" name="cancel">Cancel</button> 
276         <button flexy:if="id" class='mtrack-make-comment'>Add Comment / Update Status</button>
277  
278     </div>
279     
280     
281     
282 </form>    
283
284 <div id="events-list"></div>
285
286 <br style="clear:both">
287 <div  flexy:if="issue.nsident" class='button-float' >
288     <button id="bottom-comment-button" class="mtrack-make-comment">Add Comment</button>
289 </div>
290        
291 <div id="confirmCancelDialog" style="display:none" title="Are you sure?">
292   You've entered information into the form.
293   If you cancel, you will not be able to get it back.
294 </div>
295
296 <div id="noCommentDialog" style="display:none" title="Please enter comment">
297   It seems you have not made any changes to the ticket,
298   and haven't entered any comments.
299 </div>
300
301 <div id="noSummaryDialog" style="display:none" title="Please enter summary">
302 It seems you haven't entered a summary for the ticket.
303 </div>
304
305