Fossil SCM
Add a "Preview" button to the default Edit Ticket screen configuration.
Commit
6bcff72d23a42482562a2b4e46e0059ff276ece3
Parent
024859fff29ad08…
1 file changed
+18
+18
| --- src/tktsetup.c | ||
| +++ src/tktsetup.c | ||
| @@ -491,14 +491,30 @@ | ||
| 491 | 491 | @ Description And Comments:<br> |
| 492 | 492 | @ <textarea name="comment" cols="80" rows="$nline" |
| 493 | 493 | @ wrap="virtual" class="wikiedit">$<comment></textarea><br> |
| 494 | 494 | @ <input type="hidden" name="eall" value="1"> |
| 495 | 495 | @ <input type="submit" name="aonlybtn" value="Append Remark"> |
| 496 | +@ <input type="submit" name="preview1btn" value="Preview"> | |
| 496 | 497 | @ <th1>enable_output [expr {!$eall}]</th1> |
| 497 | 498 | @ Append Remark from |
| 498 | 499 | @ <input type="text" name="username" value="$<username>" size="30">:<br> |
| 499 | 500 | @ <textarea name="cmappnd" cols="80" rows="15" |
| 500 | 501 | @ wrap="virtual" class="wikiedit">$<cmappnd></textarea><br> |
| 501 | 502 | @ <th1>enable_output [expr {[hascap w] && !$eall}]</th1> |
| 502 | 503 | @ <input type="submit" name="eallbtn" value="Edit All"> |
| 504 | +@ <th1>enable_output [expr {!$eall}]</th1> | |
| 505 | +@ <input type="submit" name="preview2btn" value="Preview"> | |
| 503 | 506 | @ <th1>enable_output 1</th1> |
| 504 | 507 | @ </td></tr> |
| 508 | +@ | |
| 509 | +@ <th1>enable_output [info exists preview1btn]</th1> | |
| 510 | +@ <tr><td colspan="2"> | |
| 511 | +@ Description Preview:<br><hr> | |
| 512 | +@ <th1>wiki $comment</th1> | |
| 513 | +@ <hr> | |
| 514 | +@ </td></tr> | |
| 515 | +@ <th1>enable_output [info exists preview2btn]</th1> | |
| 516 | +@ <tr><td colspan="2"> | |
| 517 | +@ Description Preview:<br><hr> | |
| 518 | +@ <th1>wiki $cmappnd</th1> | |
| 519 | +@ <hr> | |
| 520 | +@ </td></tr> | |
| @@ -505,5 +521,7 @@ | ||
| 521 | +@ <th1>enable_output 1</th1> | |
| 522 | +@ | |
| 505 | 523 | @ <tr><td align="right"></td><td> |
| 506 | 524 | @ <input type="submit" name="submit" value="Submit Changes"> |
| 507 | 525 | @ <input type="submit" name="cancel" value="Cancel"> |
| 508 | 526 | @ </td></tr> |
| 509 | 527 | @ </table> |
| 510 | 528 |
| --- src/tktsetup.c | |
| +++ src/tktsetup.c | |
| @@ -491,14 +491,30 @@ | |
| 491 | @ Description And Comments:<br> |
| 492 | @ <textarea name="comment" cols="80" rows="$nline" |
| 493 | @ wrap="virtual" class="wikiedit">$<comment></textarea><br> |
| 494 | @ <input type="hidden" name="eall" value="1"> |
| 495 | @ <input type="submit" name="aonlybtn" value="Append Remark"> |
| 496 | @ <th1>enable_output [expr {!$eall}]</th1> |
| 497 | @ Append Remark from |
| 498 | @ <input type="text" name="username" value="$<username>" size="30">:<br> |
| 499 | @ <textarea name="cmappnd" cols="80" rows="15" |
| 500 | @ wrap="virtual" class="wikiedit">$<cmappnd></textarea><br> |
| 501 | @ <th1>enable_output [expr {[hascap w] && !$eall}]</th1> |
| 502 | @ <input type="submit" name="eallbtn" value="Edit All"> |
| 503 | @ <th1>enable_output 1</th1> |
| 504 | @ </td></tr> |
| @@ -505,5 +521,7 @@ | |
| 505 | @ <tr><td align="right"></td><td> |
| 506 | @ <input type="submit" name="submit" value="Submit Changes"> |
| 507 | @ <input type="submit" name="cancel" value="Cancel"> |
| 508 | @ </td></tr> |
| 509 | @ </table> |
| 510 |
| --- src/tktsetup.c | |
| +++ src/tktsetup.c | |
| @@ -491,14 +491,30 @@ | |
| 491 | @ Description And Comments:<br> |
| 492 | @ <textarea name="comment" cols="80" rows="$nline" |
| 493 | @ wrap="virtual" class="wikiedit">$<comment></textarea><br> |
| 494 | @ <input type="hidden" name="eall" value="1"> |
| 495 | @ <input type="submit" name="aonlybtn" value="Append Remark"> |
| 496 | @ <input type="submit" name="preview1btn" value="Preview"> |
| 497 | @ <th1>enable_output [expr {!$eall}]</th1> |
| 498 | @ Append Remark from |
| 499 | @ <input type="text" name="username" value="$<username>" size="30">:<br> |
| 500 | @ <textarea name="cmappnd" cols="80" rows="15" |
| 501 | @ wrap="virtual" class="wikiedit">$<cmappnd></textarea><br> |
| 502 | @ <th1>enable_output [expr {[hascap w] && !$eall}]</th1> |
| 503 | @ <input type="submit" name="eallbtn" value="Edit All"> |
| 504 | @ <th1>enable_output [expr {!$eall}]</th1> |
| 505 | @ <input type="submit" name="preview2btn" value="Preview"> |
| 506 | @ <th1>enable_output 1</th1> |
| 507 | @ </td></tr> |
| 508 | @ |
| 509 | @ <th1>enable_output [info exists preview1btn]</th1> |
| 510 | @ <tr><td colspan="2"> |
| 511 | @ Description Preview:<br><hr> |
| 512 | @ <th1>wiki $comment</th1> |
| 513 | @ <hr> |
| 514 | @ </td></tr> |
| 515 | @ <th1>enable_output [info exists preview2btn]</th1> |
| 516 | @ <tr><td colspan="2"> |
| 517 | @ Description Preview:<br><hr> |
| 518 | @ <th1>wiki $cmappnd</th1> |
| 519 | @ <hr> |
| 520 | @ </td></tr> |
| @@ -505,5 +521,7 @@ | |
| 521 | @ <th1>enable_output 1</th1> |
| 522 | @ |
| 523 | @ <tr><td align="right"></td><td> |
| 524 | @ <input type="submit" name="submit" value="Submit Changes"> |
| 525 | @ <input type="submit" name="cancel" value="Cancel"> |
| 526 | @ </td></tr> |
| 527 | @ </table> |
| 528 |