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