Not logged in
Diff

Differences From Artifact [dabb2f23c9]:

  • File src/tktconfig.c — part of check-in [d913179b82] at 2007-11-24 21:28:03 on branch trunk — Progress toward ticket editing. This is an incremental check-in. (user: drh size: 11455)

To Artifact [745ff35aaa]:

  • File src/tktconfig.c — part of check-in [a5e4e1ba96] at 2007-11-24 23:59:47 on branch trunk — More work on ticketing. This is a non-working incremental check-in. (user: drh size: 12188)

167
168
169
170
171
172
173

174



175
176
177
178
179
180
181
167
168
169
170
171
172
173
174

175
176
177
178
179
180
181
182
183
184







+
-
+
+
+







@ # the HTML of the "New Ticket" page.  Within this template, text contained
@ # within [...] is subscript.  That subscript runs when the page is
@ # rendered.
@ #
@ {
@   <!-- load database field names not found in CGI with an empty string -->
@   <!-- start a form -->
@   [{
@   [{Open} /status set /submit submit_new_ticket]
@      {Open} /status set
@       submit_new_ticket
@   } /submit exists if]
@   <table cellpadding="5">
@   <tr>
@   <td colspan="2">
@   Enter a one-line summary of the problem:<br>
@   <input type="text" name="title" size="60" value="[{} /title get html]">
@   </td>
@   </tr>
240
241
242
243
244
245
246
247
248



249
250
251
252
253
254
255
256





















257
258
259
260
261
262
263
243
244
245
246
247
248
249


250
251
252








253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280







-
-
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+







@   </tr>
@   </table>
@   <!-- end of form -->
@ } /tktnew_template set
@ 
@ ##########################################################################
@ # The template for the "edit ticket" page
@ {
@   <!-- database field names not found as CGI parameters are loaded
@ #
@ # Then generated text is inserted inside a form which feeds back to itself.
@ # All CGI parameters are loaded into variables.  All database files are
@        from the database automatically -->
@   <!-- start a form -->
@   [{
@     <hr><i>%LOGIN% added on %DATE%:</i><br>
@    } {
@     <hr><i>%LOGIN% claiming to be %USER% added on %DATE%:</i><br>
@    } /username /cmappnd /comment append_remark
@   /submit submit_ticket_change]
@ # loaded into variables if they have not previously been loaded by
@ # CGI parameters.
@ {
@   [
@     login /username get /username set
@     {
@       {
@         username login eq /samename set
@  "samename=" html samename html "<br>" puts
@         {
@            "\n<hr><i>" login " added on " date ":</i></br>\n" cmappnd 6 concat
@            /comment append_field
@         } samename if
@         {
@            "\n<hr><i>" login " claiming to be " username " added on " date
@            "</i><br>\n" cmappnd 8 concat /comment append_field
@         } samename not if
@       } 0 {} /cmappnd get length lt if
@       submit_ticket
@     } /submit exists if
@   ]
@   <table cellpadding="5">
@   <tr><td align="right">Title:</td><td>
@   <input type="text" name="title" value="[title html]" size="60">
@   </td></tr>
@   <tr><td align="right">Status:</td><td>
@   [/status status_choices 1 combobox]
@   </td></tr>
281
282
283
284
285
286
287

288
289
290
291







292
293
294
295
296
297
298

299
300


301
302
303
304

305
306
307
308
309
310
311
312
313
314
315
316
317
318
298
299
300
301
302
303
304
305




306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321

322
323
324
325
326
327
328
329
330
331
332
333
334

335
336
337
338
339
340
341







+
-
-
-
-
+
+
+
+
+
+
+







+

-
+
+




+






-







@     <input type="text" name="contact" size="40" value="[contact html]">
@     </td></tr>
@   [1 enable_output]
@   <tr><td align="right">Version&nbsp;Found&nbsp;In:</td><td>
@   <input type="text" name="foundin" size="50" value="[foundin html]">
@   </td></tr>
@   <tr><td colspan="2">
@
@   [0 /eall 0 get /eall set]
@   [/aonlybtn exists not /eall set]
@   [/eallbtn exists /eall set]
@   [/w hascap eall and /eall set]
@   [
@      0 /eall get /eall set           # eall means "edit all".  default==no
@      /aonlybtn exists not /eall set  # Edit all if no aonlybtn CGI param
@      /eallbtn exists /eall set       # Edit all if eallbtn CGI param
@      /w hascap eall and /eall set    # WrTkt permission needed to edit all
@   ]
@ 
@   [eall enable_output]
@     Description And Comments:<br>
@     <textarea name="comment" cols="80" 
@      rows="[{} /comment get linecount 15 max 10 min html]"
@      wrap="virtual" class="wikiedit">[comment html]</textarea><br>
@     <input type="hidden" name="eall" value="1">
@     <input type="submit" name="aonlybtn" value="Append Remark">
@   
@   [eall not enable_output]
@     Append Remark:<br>
@     Append Remark from 
@     <input type="text" name="username" value="[username html]" size="30">:<br>
@     <textarea name="cmappnd" cols="80" rows="15"
@      wrap="virtual" class="wikiedit">[{} /cmappnd get html]</textarea><br>
@     [/w hascap eall not and enable_output]
@     <input type="submit" name="eallbtn" value="Edit All">
@
@   [1 enable_output]
@   </td></tr>
@   <tr><td align="right"></td><td>
@   <input type="submit" name="submit" value="Submit Changes">
@   </td></tr>
@   </table>
@   <!-- end-form inserted automatically -->
@ } /tktedit_template set
@ 
@ ##########################################################################
@ # The template for the "view ticket" page
@ {
@   <!-- load database fields automatically loaded into variables -->
@   <table cellpadding="5">