Fossil SCM
HTML validator error free ticket configuration
Commit
cf8d628d1d9573621f0424a10949e5a6ab0096dd
Parent
a62bfaf55d7fcd5…
2 files changed
+4
-4
+28
-32
+4
-4
| --- src/style.c | ||
| +++ src/style.c | ||
| @@ -277,11 +277,11 @@ | ||
| 277 | 277 | @ font-weight: bold; |
| 278 | 278 | @ text-align: center; |
| 279 | 279 | @ padding: 0 0 0 1em; |
| 280 | 280 | @ color: #558195; |
| 281 | 281 | @ vertical-align: bottom; |
| 282 | -@ width: 100%%; | |
| 282 | +@ width: 100% ; | |
| 283 | 283 | @ } |
| 284 | 284 | @ |
| 285 | 285 | @ /* The login status message in the top right-hand corner */ |
| 286 | 286 | @ div.status { |
| 287 | 287 | @ display: table-cell; |
| @@ -295,11 +295,11 @@ | ||
| 295 | 295 | @ } |
| 296 | 296 | @ |
| 297 | 297 | @ /* The header across the top of the page */ |
| 298 | 298 | @ div.header { |
| 299 | 299 | @ display: table; |
| 300 | -@ width: 100%%; | |
| 300 | +@ width: 100% ; | |
| 301 | 301 | @ } |
| 302 | 302 | @ |
| 303 | 303 | @ /* The main menu bar that appears at the top of the page beneath |
| 304 | 304 | @ ** the header */ |
| 305 | 305 | @ div.mainmenu { |
| @@ -480,16 +480,16 @@ | ||
| 480 | 480 | @ text-decoration: line-through; |
| 481 | 481 | }, |
| 482 | 482 | { "table.browser", |
| 483 | 483 | "format for the file display table", |
| 484 | 484 | @ /* the format for wiki errors */ |
| 485 | - @ width: 100%%; | |
| 485 | + @ width: 100% ; | |
| 486 | 486 | @ border: 0; |
| 487 | 487 | }, |
| 488 | 488 | { "td.browser", |
| 489 | 489 | "format for cells in the file browser", |
| 490 | - @ width: 25%%; | |
| 490 | + @ width: 24% ; | |
| 491 | 491 | @ vertical-align: top; |
| 492 | 492 | }, |
| 493 | 493 | { "ul.browser", |
| 494 | 494 | "format for the list in the file browser", |
| 495 | 495 | @ margin-left: 0.5em; |
| 496 | 496 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -277,11 +277,11 @@ | |
| 277 | @ font-weight: bold; |
| 278 | @ text-align: center; |
| 279 | @ padding: 0 0 0 1em; |
| 280 | @ color: #558195; |
| 281 | @ vertical-align: bottom; |
| 282 | @ width: 100%%; |
| 283 | @ } |
| 284 | @ |
| 285 | @ /* The login status message in the top right-hand corner */ |
| 286 | @ div.status { |
| 287 | @ display: table-cell; |
| @@ -295,11 +295,11 @@ | |
| 295 | @ } |
| 296 | @ |
| 297 | @ /* The header across the top of the page */ |
| 298 | @ div.header { |
| 299 | @ display: table; |
| 300 | @ width: 100%%; |
| 301 | @ } |
| 302 | @ |
| 303 | @ /* The main menu bar that appears at the top of the page beneath |
| 304 | @ ** the header */ |
| 305 | @ div.mainmenu { |
| @@ -480,16 +480,16 @@ | |
| 480 | @ text-decoration: line-through; |
| 481 | }, |
| 482 | { "table.browser", |
| 483 | "format for the file display table", |
| 484 | @ /* the format for wiki errors */ |
| 485 | @ width: 100%%; |
| 486 | @ border: 0; |
| 487 | }, |
| 488 | { "td.browser", |
| 489 | "format for cells in the file browser", |
| 490 | @ width: 25%%; |
| 491 | @ vertical-align: top; |
| 492 | }, |
| 493 | { "ul.browser", |
| 494 | "format for the list in the file browser", |
| 495 | @ margin-left: 0.5em; |
| 496 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -277,11 +277,11 @@ | |
| 277 | @ font-weight: bold; |
| 278 | @ text-align: center; |
| 279 | @ padding: 0 0 0 1em; |
| 280 | @ color: #558195; |
| 281 | @ vertical-align: bottom; |
| 282 | @ width: 100% ; |
| 283 | @ } |
| 284 | @ |
| 285 | @ /* The login status message in the top right-hand corner */ |
| 286 | @ div.status { |
| 287 | @ display: table-cell; |
| @@ -295,11 +295,11 @@ | |
| 295 | @ } |
| 296 | @ |
| 297 | @ /* The header across the top of the page */ |
| 298 | @ div.header { |
| 299 | @ display: table; |
| 300 | @ width: 100% ; |
| 301 | @ } |
| 302 | @ |
| 303 | @ /* The main menu bar that appears at the top of the page beneath |
| 304 | @ ** the header */ |
| 305 | @ div.mainmenu { |
| @@ -480,16 +480,16 @@ | |
| 480 | @ text-decoration: line-through; |
| 481 | }, |
| 482 | { "table.browser", |
| 483 | "format for the file display table", |
| 484 | @ /* the format for wiki errors */ |
| 485 | @ width: 100% ; |
| 486 | @ border: 0; |
| 487 | }, |
| 488 | { "td.browser", |
| 489 | "format for cells in the file browser", |
| 490 | @ width: 24% ; |
| 491 | @ vertical-align: top; |
| 492 | }, |
| 493 | { "ul.browser", |
| 494 | "format for the list in the file browser", |
| 495 | @ margin-left: 0.5em; |
| 496 |
+28
-32
| --- src/tktsetup.c | ||
| +++ src/tktsetup.c | ||
| @@ -130,21 +130,21 @@ | ||
| 130 | 130 | db_set(zDbField, z, 0); |
| 131 | 131 | if( xRebuild ) xRebuild(); |
| 132 | 132 | cgi_redirect("tktsetup"); |
| 133 | 133 | } |
| 134 | 134 | } |
| 135 | - @ <form action="%s(g.zBaseURL)/%s(g.zPath)" method="POST"> | |
| 135 | + @ <form action="%s(g.zBaseURL)/%s(g.zPath)" method="post"><div> | |
| 136 | 136 | login_insert_csrf_secret(); |
| 137 | 137 | @ <p>%s(zDesc)</p> |
| 138 | 138 | @ <textarea name="x" rows="%d(height)" cols="80">%h(z)</textarea> |
| 139 | - @ <blockquote> | |
| 140 | - @ <input type="submit" name="submit" value="Apply Changes"> | |
| 141 | - @ <input type="submit" name="clear" value="Revert To Default"> | |
| 142 | - @ <input type="submit" name="setup" value="Cancel"> | |
| 143 | - @ </blockquote> | |
| 144 | - @ </form> | |
| 145 | - @ <hr> | |
| 139 | + @ <blockquote><p> | |
| 140 | + @ <input type="submit" name="submit" value="Apply Changes" /> | |
| 141 | + @ <input type="submit" name="clear" value="Revert To Default" /> | |
| 142 | + @ <input type="submit" name="setup" value="Cancel" /> | |
| 143 | + @ </p></blockquote> | |
| 144 | + @ </div></form> | |
| 145 | + @ <hr /> | |
| 146 | 146 | @ <h2>Default %s(zTitle)</h2> |
| 147 | 147 | @ <blockquote><pre> |
| 148 | 148 | @ %h(zDfltValue) |
| 149 | 149 | @ </pre></blockquote> |
| 150 | 150 | style_footer(); |
| @@ -153,13 +153,13 @@ | ||
| 153 | 153 | /* |
| 154 | 154 | ** WEBPAGE: tktsetup_tab |
| 155 | 155 | */ |
| 156 | 156 | void tktsetup_tab_page(void){ |
| 157 | 157 | static const char zDesc[] = |
| 158 | - @ <p>Enter a valid CREATE TABLE statement for the "ticket" table. The | |
| 158 | + @ Enter a valid CREATE TABLE statement for the "ticket" table. The | |
| 159 | 159 | @ table must contain columns named "tkt_id", "tkt_uuid", and "tkt_mtime" |
| 160 | - @ with an unique index on "tkt_uuid" and "tkt_mtime".</p> | |
| 160 | + @ with an unique index on "tkt_uuid" and "tkt_mtime". | |
| 161 | 161 | ; |
| 162 | 162 | tktsetup_generic( |
| 163 | 163 | "Ticket Table Schema", |
| 164 | 164 | "ticket-table", |
| 165 | 165 | zDefaultTicketTable, |
| @@ -229,12 +229,12 @@ | ||
| 229 | 229 | /* |
| 230 | 230 | ** WEBPAGE: tktsetup_com |
| 231 | 231 | */ |
| 232 | 232 | void tktsetup_com_page(void){ |
| 233 | 233 | static const char zDesc[] = |
| 234 | - @ <p>Enter TH1 script that initializes variables prior to generating | |
| 235 | - @ any of the ticket view, edit, or creation pages.</p> | |
| 234 | + @ Enter TH1 script that initializes variables prior to generating | |
| 235 | + @ any of the ticket view, edit, or creation pages. | |
| 236 | 236 | ; |
| 237 | 237 | tktsetup_generic( |
| 238 | 238 | "Ticket Common Script", |
| 239 | 239 | "ticket-common", |
| 240 | 240 | zDefaultTicketCommon, |
| @@ -338,12 +338,11 @@ | ||
| 338 | 338 | /* |
| 339 | 339 | ** WEBPAGE: tktsetup_newpage |
| 340 | 340 | */ |
| 341 | 341 | void tktsetup_newpage_page(void){ |
| 342 | 342 | static const char zDesc[] = |
| 343 | - @ <p>Enter HTML with embedded TH1 script that will render the "new ticket" | |
| 344 | - @ page</p> | |
| 343 | + @ Enter HTML with embedded TH1 script that will render the "new ticket" page | |
| 345 | 344 | ; |
| 346 | 345 | tktsetup_generic( |
| 347 | 346 | "HTML For New Tickets", |
| 348 | 347 | "ticket-newpage", |
| 349 | 348 | zDefaultNew, |
| @@ -412,12 +411,11 @@ | ||
| 412 | 411 | /* |
| 413 | 412 | ** WEBPAGE: tktsetup_viewpage |
| 414 | 413 | */ |
| 415 | 414 | void tktsetup_viewpage_page(void){ |
| 416 | 415 | static const char zDesc[] = |
| 417 | - @ <p>Enter HTML with embedded TH1 script that will render the "view ticket" | |
| 418 | - @ page</p> | |
| 416 | + @ Enter HTML with embedded TH1 script that will render the "view ticket" page | |
| 419 | 417 | ; |
| 420 | 418 | tktsetup_generic( |
| 421 | 419 | "HTML For Viewing Tickets", |
| 422 | 420 | "ticket-viewpage", |
| 423 | 421 | zDefaultView, |
| @@ -535,12 +533,11 @@ | ||
| 535 | 533 | /* |
| 536 | 534 | ** WEBPAGE: tktsetup_editpage |
| 537 | 535 | */ |
| 538 | 536 | void tktsetup_editpage_page(void){ |
| 539 | 537 | static const char zDesc[] = |
| 540 | - @ <p>Enter HTML with embedded TH1 script that will render the "edit ticket" | |
| 541 | - @ page</p> | |
| 538 | + @ Enter HTML with embedded TH1 script that will render the "edit ticket" page | |
| 542 | 539 | ; |
| 543 | 540 | tktsetup_generic( |
| 544 | 541 | "HTML For Editing Tickets", |
| 545 | 542 | "ticket-editpage", |
| 546 | 543 | zDefaultEdit, |
| @@ -585,12 +582,11 @@ | ||
| 585 | 582 | /* |
| 586 | 583 | ** WEBPAGE: tktsetup_reportlist |
| 587 | 584 | */ |
| 588 | 585 | void tktsetup_reportlist(void){ |
| 589 | 586 | static const char zDesc[] = |
| 590 | - @ <p>Enter HTML with embedded TH1 script that will render the "report list" | |
| 591 | - @ page</p> | |
| 587 | + @ Enter HTML with embedded TH1 script that will render the "report list" page | |
| 592 | 588 | ; |
| 593 | 589 | tktsetup_generic( |
| 594 | 590 | "HTML For Report List", |
| 595 | 591 | "ticket-reportlist", |
| 596 | 592 | zDefaultReportList, |
| @@ -633,13 +629,13 @@ | ||
| 633 | 629 | /* |
| 634 | 630 | ** WEBPAGE: tktsetup_rpttplt |
| 635 | 631 | */ |
| 636 | 632 | void tktsetup_rpttplt_page(void){ |
| 637 | 633 | static const char zDesc[] = |
| 638 | - @ <p>Enter the default ticket report format template. This is the | |
| 634 | + @ Enter the default ticket report format template. This is the | |
| 639 | 635 | @ the template report format that initially appears when creating a |
| 640 | - @ new ticket summary report.</p> | |
| 636 | + @ new ticket summary report. | |
| 641 | 637 | ; |
| 642 | 638 | tktsetup_generic( |
| 643 | 639 | "Default Report Template", |
| 644 | 640 | "ticket-report-template", |
| 645 | 641 | zDefaultReport, |
| @@ -674,13 +670,13 @@ | ||
| 674 | 670 | /* |
| 675 | 671 | ** WEBPAGE: tktsetup_keytplt |
| 676 | 672 | */ |
| 677 | 673 | void tktsetup_keytplt_page(void){ |
| 678 | 674 | static const char zDesc[] = |
| 679 | - @ <p>Enter the default ticket report color-key template. This is the | |
| 675 | + @ Enter the default ticket report color-key template. This is the | |
| 680 | 676 | @ the color-key that initially appears when creating a |
| 681 | - @ new ticket summary report.</p> | |
| 677 | + @ new ticket summary report. | |
| 682 | 678 | ; |
| 683 | 679 | tktsetup_generic( |
| 684 | 680 | "Default Report Color-Key Template", |
| 685 | 681 | "ticket-key-template", |
| 686 | 682 | zDefaultKey, |
| @@ -703,34 +699,34 @@ | ||
| 703 | 699 | if( P("setup") ){ |
| 704 | 700 | cgi_redirect("tktsetup"); |
| 705 | 701 | } |
| 706 | 702 | style_header("Ticket Display On Timelines"); |
| 707 | 703 | db_begin_transaction(); |
| 708 | - @ <form action="%s(g.zBaseURL)/tktsetup_timeline" method="POST"> | |
| 704 | + @ <form action="%s(g.zBaseURL)/tktsetup_timeline" method="post"><div> | |
| 709 | 705 | login_insert_csrf_secret(); |
| 710 | 706 | |
| 711 | - @ <hr> | |
| 707 | + @ <hr /> | |
| 712 | 708 | entry_attribute("Ticket Title", 40, "ticket-title-expr", "t", "title"); |
| 713 | 709 | @ <p>An SQL expression in a query against the TICKET table that will |
| 714 | 710 | @ return the title of the ticket for display purposes.</p> |
| 715 | 711 | |
| 716 | - @ <hr> | |
| 712 | + @ <hr /> | |
| 717 | 713 | entry_attribute("Ticket Status", 40, "ticket-status-column", "s", "status"); |
| 718 | 714 | @ <p>The name of the column in the TICKET table that contains the ticket |
| 719 | 715 | @ status in human-readable form. Case sensitive.</p> |
| 720 | 716 | |
| 721 | - @ <hr> | |
| 717 | + @ <hr /> | |
| 722 | 718 | entry_attribute("Ticket Closed", 40, "ticket-closed-expr", "c", |
| 723 | 719 | "status='Closed'"); |
| 724 | 720 | @ <p>An SQL expression that evaluates to true in a TICKET table query if |
| 725 | 721 | @ the ticket is closed.</p> |
| 726 | 722 | |
| 727 | - @ <hr> | |
| 723 | + @ <hr /> | |
| 728 | 724 | @ <p> |
| 729 | - @ <input type="submit" name="submit" value="Apply Changes"> | |
| 730 | - @ <input type="submit" name="setup" value="Cancel"> | |
| 725 | + @ <input type="submit" name="submit" value="Apply Changes" /> | |
| 726 | + @ <input type="submit" name="setup" value="Cancel" /> | |
| 731 | 727 | @ </p> |
| 732 | - @ </form> | |
| 728 | + @ </div></form> | |
| 733 | 729 | db_end_transaction(0); |
| 734 | 730 | style_footer(); |
| 735 | 731 | |
| 736 | 732 | } |
| 737 | 733 |
| --- src/tktsetup.c | |
| +++ src/tktsetup.c | |
| @@ -130,21 +130,21 @@ | |
| 130 | db_set(zDbField, z, 0); |
| 131 | if( xRebuild ) xRebuild(); |
| 132 | cgi_redirect("tktsetup"); |
| 133 | } |
| 134 | } |
| 135 | @ <form action="%s(g.zBaseURL)/%s(g.zPath)" method="POST"> |
| 136 | login_insert_csrf_secret(); |
| 137 | @ <p>%s(zDesc)</p> |
| 138 | @ <textarea name="x" rows="%d(height)" cols="80">%h(z)</textarea> |
| 139 | @ <blockquote> |
| 140 | @ <input type="submit" name="submit" value="Apply Changes"> |
| 141 | @ <input type="submit" name="clear" value="Revert To Default"> |
| 142 | @ <input type="submit" name="setup" value="Cancel"> |
| 143 | @ </blockquote> |
| 144 | @ </form> |
| 145 | @ <hr> |
| 146 | @ <h2>Default %s(zTitle)</h2> |
| 147 | @ <blockquote><pre> |
| 148 | @ %h(zDfltValue) |
| 149 | @ </pre></blockquote> |
| 150 | style_footer(); |
| @@ -153,13 +153,13 @@ | |
| 153 | /* |
| 154 | ** WEBPAGE: tktsetup_tab |
| 155 | */ |
| 156 | void tktsetup_tab_page(void){ |
| 157 | static const char zDesc[] = |
| 158 | @ <p>Enter a valid CREATE TABLE statement for the "ticket" table. The |
| 159 | @ table must contain columns named "tkt_id", "tkt_uuid", and "tkt_mtime" |
| 160 | @ with an unique index on "tkt_uuid" and "tkt_mtime".</p> |
| 161 | ; |
| 162 | tktsetup_generic( |
| 163 | "Ticket Table Schema", |
| 164 | "ticket-table", |
| 165 | zDefaultTicketTable, |
| @@ -229,12 +229,12 @@ | |
| 229 | /* |
| 230 | ** WEBPAGE: tktsetup_com |
| 231 | */ |
| 232 | void tktsetup_com_page(void){ |
| 233 | static const char zDesc[] = |
| 234 | @ <p>Enter TH1 script that initializes variables prior to generating |
| 235 | @ any of the ticket view, edit, or creation pages.</p> |
| 236 | ; |
| 237 | tktsetup_generic( |
| 238 | "Ticket Common Script", |
| 239 | "ticket-common", |
| 240 | zDefaultTicketCommon, |
| @@ -338,12 +338,11 @@ | |
| 338 | /* |
| 339 | ** WEBPAGE: tktsetup_newpage |
| 340 | */ |
| 341 | void tktsetup_newpage_page(void){ |
| 342 | static const char zDesc[] = |
| 343 | @ <p>Enter HTML with embedded TH1 script that will render the "new ticket" |
| 344 | @ page</p> |
| 345 | ; |
| 346 | tktsetup_generic( |
| 347 | "HTML For New Tickets", |
| 348 | "ticket-newpage", |
| 349 | zDefaultNew, |
| @@ -412,12 +411,11 @@ | |
| 412 | /* |
| 413 | ** WEBPAGE: tktsetup_viewpage |
| 414 | */ |
| 415 | void tktsetup_viewpage_page(void){ |
| 416 | static const char zDesc[] = |
| 417 | @ <p>Enter HTML with embedded TH1 script that will render the "view ticket" |
| 418 | @ page</p> |
| 419 | ; |
| 420 | tktsetup_generic( |
| 421 | "HTML For Viewing Tickets", |
| 422 | "ticket-viewpage", |
| 423 | zDefaultView, |
| @@ -535,12 +533,11 @@ | |
| 535 | /* |
| 536 | ** WEBPAGE: tktsetup_editpage |
| 537 | */ |
| 538 | void tktsetup_editpage_page(void){ |
| 539 | static const char zDesc[] = |
| 540 | @ <p>Enter HTML with embedded TH1 script that will render the "edit ticket" |
| 541 | @ page</p> |
| 542 | ; |
| 543 | tktsetup_generic( |
| 544 | "HTML For Editing Tickets", |
| 545 | "ticket-editpage", |
| 546 | zDefaultEdit, |
| @@ -585,12 +582,11 @@ | |
| 585 | /* |
| 586 | ** WEBPAGE: tktsetup_reportlist |
| 587 | */ |
| 588 | void tktsetup_reportlist(void){ |
| 589 | static const char zDesc[] = |
| 590 | @ <p>Enter HTML with embedded TH1 script that will render the "report list" |
| 591 | @ page</p> |
| 592 | ; |
| 593 | tktsetup_generic( |
| 594 | "HTML For Report List", |
| 595 | "ticket-reportlist", |
| 596 | zDefaultReportList, |
| @@ -633,13 +629,13 @@ | |
| 633 | /* |
| 634 | ** WEBPAGE: tktsetup_rpttplt |
| 635 | */ |
| 636 | void tktsetup_rpttplt_page(void){ |
| 637 | static const char zDesc[] = |
| 638 | @ <p>Enter the default ticket report format template. This is the |
| 639 | @ the template report format that initially appears when creating a |
| 640 | @ new ticket summary report.</p> |
| 641 | ; |
| 642 | tktsetup_generic( |
| 643 | "Default Report Template", |
| 644 | "ticket-report-template", |
| 645 | zDefaultReport, |
| @@ -674,13 +670,13 @@ | |
| 674 | /* |
| 675 | ** WEBPAGE: tktsetup_keytplt |
| 676 | */ |
| 677 | void tktsetup_keytplt_page(void){ |
| 678 | static const char zDesc[] = |
| 679 | @ <p>Enter the default ticket report color-key template. This is the |
| 680 | @ the color-key that initially appears when creating a |
| 681 | @ new ticket summary report.</p> |
| 682 | ; |
| 683 | tktsetup_generic( |
| 684 | "Default Report Color-Key Template", |
| 685 | "ticket-key-template", |
| 686 | zDefaultKey, |
| @@ -703,34 +699,34 @@ | |
| 703 | if( P("setup") ){ |
| 704 | cgi_redirect("tktsetup"); |
| 705 | } |
| 706 | style_header("Ticket Display On Timelines"); |
| 707 | db_begin_transaction(); |
| 708 | @ <form action="%s(g.zBaseURL)/tktsetup_timeline" method="POST"> |
| 709 | login_insert_csrf_secret(); |
| 710 | |
| 711 | @ <hr> |
| 712 | entry_attribute("Ticket Title", 40, "ticket-title-expr", "t", "title"); |
| 713 | @ <p>An SQL expression in a query against the TICKET table that will |
| 714 | @ return the title of the ticket for display purposes.</p> |
| 715 | |
| 716 | @ <hr> |
| 717 | entry_attribute("Ticket Status", 40, "ticket-status-column", "s", "status"); |
| 718 | @ <p>The name of the column in the TICKET table that contains the ticket |
| 719 | @ status in human-readable form. Case sensitive.</p> |
| 720 | |
| 721 | @ <hr> |
| 722 | entry_attribute("Ticket Closed", 40, "ticket-closed-expr", "c", |
| 723 | "status='Closed'"); |
| 724 | @ <p>An SQL expression that evaluates to true in a TICKET table query if |
| 725 | @ the ticket is closed.</p> |
| 726 | |
| 727 | @ <hr> |
| 728 | @ <p> |
| 729 | @ <input type="submit" name="submit" value="Apply Changes"> |
| 730 | @ <input type="submit" name="setup" value="Cancel"> |
| 731 | @ </p> |
| 732 | @ </form> |
| 733 | db_end_transaction(0); |
| 734 | style_footer(); |
| 735 | |
| 736 | } |
| 737 |
| --- src/tktsetup.c | |
| +++ src/tktsetup.c | |
| @@ -130,21 +130,21 @@ | |
| 130 | db_set(zDbField, z, 0); |
| 131 | if( xRebuild ) xRebuild(); |
| 132 | cgi_redirect("tktsetup"); |
| 133 | } |
| 134 | } |
| 135 | @ <form action="%s(g.zBaseURL)/%s(g.zPath)" method="post"><div> |
| 136 | login_insert_csrf_secret(); |
| 137 | @ <p>%s(zDesc)</p> |
| 138 | @ <textarea name="x" rows="%d(height)" cols="80">%h(z)</textarea> |
| 139 | @ <blockquote><p> |
| 140 | @ <input type="submit" name="submit" value="Apply Changes" /> |
| 141 | @ <input type="submit" name="clear" value="Revert To Default" /> |
| 142 | @ <input type="submit" name="setup" value="Cancel" /> |
| 143 | @ </p></blockquote> |
| 144 | @ </div></form> |
| 145 | @ <hr /> |
| 146 | @ <h2>Default %s(zTitle)</h2> |
| 147 | @ <blockquote><pre> |
| 148 | @ %h(zDfltValue) |
| 149 | @ </pre></blockquote> |
| 150 | style_footer(); |
| @@ -153,13 +153,13 @@ | |
| 153 | /* |
| 154 | ** WEBPAGE: tktsetup_tab |
| 155 | */ |
| 156 | void tktsetup_tab_page(void){ |
| 157 | static const char zDesc[] = |
| 158 | @ Enter a valid CREATE TABLE statement for the "ticket" table. The |
| 159 | @ table must contain columns named "tkt_id", "tkt_uuid", and "tkt_mtime" |
| 160 | @ with an unique index on "tkt_uuid" and "tkt_mtime". |
| 161 | ; |
| 162 | tktsetup_generic( |
| 163 | "Ticket Table Schema", |
| 164 | "ticket-table", |
| 165 | zDefaultTicketTable, |
| @@ -229,12 +229,12 @@ | |
| 229 | /* |
| 230 | ** WEBPAGE: tktsetup_com |
| 231 | */ |
| 232 | void tktsetup_com_page(void){ |
| 233 | static const char zDesc[] = |
| 234 | @ Enter TH1 script that initializes variables prior to generating |
| 235 | @ any of the ticket view, edit, or creation pages. |
| 236 | ; |
| 237 | tktsetup_generic( |
| 238 | "Ticket Common Script", |
| 239 | "ticket-common", |
| 240 | zDefaultTicketCommon, |
| @@ -338,12 +338,11 @@ | |
| 338 | /* |
| 339 | ** WEBPAGE: tktsetup_newpage |
| 340 | */ |
| 341 | void tktsetup_newpage_page(void){ |
| 342 | static const char zDesc[] = |
| 343 | @ Enter HTML with embedded TH1 script that will render the "new ticket" page |
| 344 | ; |
| 345 | tktsetup_generic( |
| 346 | "HTML For New Tickets", |
| 347 | "ticket-newpage", |
| 348 | zDefaultNew, |
| @@ -412,12 +411,11 @@ | |
| 411 | /* |
| 412 | ** WEBPAGE: tktsetup_viewpage |
| 413 | */ |
| 414 | void tktsetup_viewpage_page(void){ |
| 415 | static const char zDesc[] = |
| 416 | @ Enter HTML with embedded TH1 script that will render the "view ticket" page |
| 417 | ; |
| 418 | tktsetup_generic( |
| 419 | "HTML For Viewing Tickets", |
| 420 | "ticket-viewpage", |
| 421 | zDefaultView, |
| @@ -535,12 +533,11 @@ | |
| 533 | /* |
| 534 | ** WEBPAGE: tktsetup_editpage |
| 535 | */ |
| 536 | void tktsetup_editpage_page(void){ |
| 537 | static const char zDesc[] = |
| 538 | @ Enter HTML with embedded TH1 script that will render the "edit ticket" page |
| 539 | ; |
| 540 | tktsetup_generic( |
| 541 | "HTML For Editing Tickets", |
| 542 | "ticket-editpage", |
| 543 | zDefaultEdit, |
| @@ -585,12 +582,11 @@ | |
| 582 | /* |
| 583 | ** WEBPAGE: tktsetup_reportlist |
| 584 | */ |
| 585 | void tktsetup_reportlist(void){ |
| 586 | static const char zDesc[] = |
| 587 | @ Enter HTML with embedded TH1 script that will render the "report list" page |
| 588 | ; |
| 589 | tktsetup_generic( |
| 590 | "HTML For Report List", |
| 591 | "ticket-reportlist", |
| 592 | zDefaultReportList, |
| @@ -633,13 +629,13 @@ | |
| 629 | /* |
| 630 | ** WEBPAGE: tktsetup_rpttplt |
| 631 | */ |
| 632 | void tktsetup_rpttplt_page(void){ |
| 633 | static const char zDesc[] = |
| 634 | @ Enter the default ticket report format template. This is the |
| 635 | @ the template report format that initially appears when creating a |
| 636 | @ new ticket summary report. |
| 637 | ; |
| 638 | tktsetup_generic( |
| 639 | "Default Report Template", |
| 640 | "ticket-report-template", |
| 641 | zDefaultReport, |
| @@ -674,13 +670,13 @@ | |
| 670 | /* |
| 671 | ** WEBPAGE: tktsetup_keytplt |
| 672 | */ |
| 673 | void tktsetup_keytplt_page(void){ |
| 674 | static const char zDesc[] = |
| 675 | @ Enter the default ticket report color-key template. This is the |
| 676 | @ the color-key that initially appears when creating a |
| 677 | @ new ticket summary report. |
| 678 | ; |
| 679 | tktsetup_generic( |
| 680 | "Default Report Color-Key Template", |
| 681 | "ticket-key-template", |
| 682 | zDefaultKey, |
| @@ -703,34 +699,34 @@ | |
| 699 | if( P("setup") ){ |
| 700 | cgi_redirect("tktsetup"); |
| 701 | } |
| 702 | style_header("Ticket Display On Timelines"); |
| 703 | db_begin_transaction(); |
| 704 | @ <form action="%s(g.zBaseURL)/tktsetup_timeline" method="post"><div> |
| 705 | login_insert_csrf_secret(); |
| 706 | |
| 707 | @ <hr /> |
| 708 | entry_attribute("Ticket Title", 40, "ticket-title-expr", "t", "title"); |
| 709 | @ <p>An SQL expression in a query against the TICKET table that will |
| 710 | @ return the title of the ticket for display purposes.</p> |
| 711 | |
| 712 | @ <hr /> |
| 713 | entry_attribute("Ticket Status", 40, "ticket-status-column", "s", "status"); |
| 714 | @ <p>The name of the column in the TICKET table that contains the ticket |
| 715 | @ status in human-readable form. Case sensitive.</p> |
| 716 | |
| 717 | @ <hr /> |
| 718 | entry_attribute("Ticket Closed", 40, "ticket-closed-expr", "c", |
| 719 | "status='Closed'"); |
| 720 | @ <p>An SQL expression that evaluates to true in a TICKET table query if |
| 721 | @ the ticket is closed.</p> |
| 722 | |
| 723 | @ <hr /> |
| 724 | @ <p> |
| 725 | @ <input type="submit" name="submit" value="Apply Changes" /> |
| 726 | @ <input type="submit" name="setup" value="Cancel" /> |
| 727 | @ </p> |
| 728 | @ </div></form> |
| 729 | db_end_transaction(0); |
| 730 | style_footer(); |
| 731 | |
| 732 | } |
| 733 |