Fossil SCM
Add <label> markup around all checkbox form entries.
Commit
e78c49d30add60d19e5188258343626838909503
Parent
11abffbb497d67a…
3 files changed
+13
-12
+47
-24
+8
-8
+13
-12
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -1691,17 +1691,17 @@ | ||
| 1691 | 1691 | int stdClrFound = 0; |
| 1692 | 1692 | int i; |
| 1693 | 1693 | |
| 1694 | 1694 | @ <table border="0" cellpadding="0" cellspacing="1"> |
| 1695 | 1695 | if( zIdPropagate ){ |
| 1696 | - @ <tr><td colspan="6" align="left"> | |
| 1696 | + @ <tr><td colspan="6" align="left"><label> | |
| 1697 | 1697 | if( fPropagate ){ |
| 1698 | 1698 | @ <input type="checkbox" name="%s(zIdPropagate)" checked="checked" /> |
| 1699 | 1699 | }else{ |
| 1700 | 1700 | @ <input type="checkbox" name="%s(zIdPropagate)" /> |
| 1701 | 1701 | } |
| 1702 | - @ Propagate color to descendants</td></tr> | |
| 1702 | + @ Propagate color to descendants</label></td></tr> | |
| 1703 | 1703 | } |
| 1704 | 1704 | @ <tr> |
| 1705 | 1705 | for(i=0; i<nColor; i++){ |
| 1706 | 1706 | const char *zClr = aColor[i].zColor; |
| 1707 | 1707 | if( zClr==0 ) zClr = aColor[i].zCName; |
| @@ -2001,12 +2001,12 @@ | ||
| 2001 | 2001 | render_color_chooser(fNewPropagateColor, zNewColor, "pclr", "clr", "clrcust"); |
| 2002 | 2002 | @ </td></tr> |
| 2003 | 2003 | |
| 2004 | 2004 | @ <tr><td align="right" valign="top"><b>Tags:</b></td> |
| 2005 | 2005 | @ <td valign="top"> |
| 2006 | - @ <input type="checkbox" id="newtag" name="newtag"%s(zNewTagFlag) /> | |
| 2007 | - @ Add the following new tag name to this check-in: | |
| 2006 | + @ <label><input type="checkbox" id="newtag" name="newtag"%s(zNewTagFlag) /> | |
| 2007 | + @ Add the following new tag name to this check-in:</label> | |
| 2008 | 2008 | @ <input type="text" style="width:15;" name="tagname" value="%h(zNewTag)" |
| 2009 | 2009 | @ onkeyup="gebi('newtag').checked=!!this.value" /> |
| 2010 | 2010 | db_prepare(&q, |
| 2011 | 2011 | "SELECT tag.tagid, tagname FROM tagxref, tag" |
| 2012 | 2012 | " WHERE tagxref.rid=%d AND tagtype>0 AND tagxref.tagid=tag.tagid" |
| @@ -2017,28 +2017,29 @@ | ||
| 2017 | 2017 | while( db_step(&q)==SQLITE_ROW ){ |
| 2018 | 2018 | int tagid = db_column_int(&q, 0); |
| 2019 | 2019 | const char *zTagName = db_column_text(&q, 1); |
| 2020 | 2020 | char zLabel[30]; |
| 2021 | 2021 | sqlite3_snprintf(sizeof(zLabel), zLabel, "c%d", tagid); |
| 2022 | + @ <br /><label> | |
| 2022 | 2023 | if( P(zLabel) ){ |
| 2023 | - @ <br /><input type="checkbox" name="c%d(tagid)" checked="checked" /> | |
| 2024 | + @ <input type="checkbox" name="c%d(tagid)" checked="checked" /> | |
| 2024 | 2025 | }else{ |
| 2025 | - @ <br /><input type="checkbox" name="c%d(tagid)" /> | |
| 2026 | + @ <input type="checkbox" name="c%d(tagid)" /> | |
| 2026 | 2027 | } |
| 2027 | 2028 | if( strncmp(zTagName, "sym-", 4)==0 ){ |
| 2028 | - @ Cancel tag <b>%h(&zTagName[4])</b> | |
| 2029 | + @ Cancel tag <b>%h(&zTagName[4])</b></label> | |
| 2029 | 2030 | }else{ |
| 2030 | - @ Cancel special tag <b>%h(zTagName)</b> | |
| 2031 | + @ Cancel special tag <b>%h(zTagName)</b></label> | |
| 2031 | 2032 | } |
| 2032 | 2033 | } |
| 2033 | 2034 | db_finalize(&q); |
| 2034 | 2035 | @ </td></tr> |
| 2035 | 2036 | |
| 2036 | 2037 | @ <tr><td align="right" valign="top"><b>Branching:</b></td> |
| 2037 | 2038 | @ <td valign="top"> |
| 2038 | - @ <input id="newbr" type="checkbox" name="newbr"%s(zNewBrFlag) /> | |
| 2039 | - @ Make this check-in the start of a new branch named: | |
| 2039 | + @ <label><input id="newbr" type="checkbox" name="newbr"%s(zNewBrFlag) /> | |
| 2040 | + @ Make this check-in the start of a new branch named:</label> | |
| 2040 | 2041 | @ <input type="text" style="width:15;" name="brname" value="%h(zNewBranch)" |
| 2041 | 2042 | @ onkeyup="gebi('newbr').checked=!!this.value" /> |
| 2042 | 2043 | @ </td></tr> |
| 2043 | 2044 | |
| 2044 | 2045 | if( is_a_leaf(rid) |
| @@ -2046,13 +2047,13 @@ | ||
| 2046 | 2047 | " WHERE tagid=%d AND rid=%d AND tagtype>0", |
| 2047 | 2048 | TAG_CLOSED, rid) |
| 2048 | 2049 | ){ |
| 2049 | 2050 | @ <tr><td align="right" valign="top"><b>Leaf Closure:</b></td> |
| 2050 | 2051 | @ <td valign="top"> |
| 2051 | - @ <input type="checkbox" name="close"%s(zCloseFlag) /> | |
| 2052 | + @ <label><input type="checkbox" name="close"%s(zCloseFlag) /> | |
| 2052 | 2053 | @ Mark this leaf as "closed" so that it no longer appears on the |
| 2053 | - @ "leaves" page and is no longer labeled as a "<b>Leaf</b>". | |
| 2054 | + @ "leaves" page and is no longer labeled as a "<b>Leaf</b>".</label> | |
| 2054 | 2055 | @ </td></tr> |
| 2055 | 2056 | } |
| 2056 | 2057 | |
| 2057 | 2058 | |
| 2058 | 2059 | @ <tr><td colspan="2"> |
| 2059 | 2060 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -1691,17 +1691,17 @@ | |
| 1691 | int stdClrFound = 0; |
| 1692 | int i; |
| 1693 | |
| 1694 | @ <table border="0" cellpadding="0" cellspacing="1"> |
| 1695 | if( zIdPropagate ){ |
| 1696 | @ <tr><td colspan="6" align="left"> |
| 1697 | if( fPropagate ){ |
| 1698 | @ <input type="checkbox" name="%s(zIdPropagate)" checked="checked" /> |
| 1699 | }else{ |
| 1700 | @ <input type="checkbox" name="%s(zIdPropagate)" /> |
| 1701 | } |
| 1702 | @ Propagate color to descendants</td></tr> |
| 1703 | } |
| 1704 | @ <tr> |
| 1705 | for(i=0; i<nColor; i++){ |
| 1706 | const char *zClr = aColor[i].zColor; |
| 1707 | if( zClr==0 ) zClr = aColor[i].zCName; |
| @@ -2001,12 +2001,12 @@ | |
| 2001 | render_color_chooser(fNewPropagateColor, zNewColor, "pclr", "clr", "clrcust"); |
| 2002 | @ </td></tr> |
| 2003 | |
| 2004 | @ <tr><td align="right" valign="top"><b>Tags:</b></td> |
| 2005 | @ <td valign="top"> |
| 2006 | @ <input type="checkbox" id="newtag" name="newtag"%s(zNewTagFlag) /> |
| 2007 | @ Add the following new tag name to this check-in: |
| 2008 | @ <input type="text" style="width:15;" name="tagname" value="%h(zNewTag)" |
| 2009 | @ onkeyup="gebi('newtag').checked=!!this.value" /> |
| 2010 | db_prepare(&q, |
| 2011 | "SELECT tag.tagid, tagname FROM tagxref, tag" |
| 2012 | " WHERE tagxref.rid=%d AND tagtype>0 AND tagxref.tagid=tag.tagid" |
| @@ -2017,28 +2017,29 @@ | |
| 2017 | while( db_step(&q)==SQLITE_ROW ){ |
| 2018 | int tagid = db_column_int(&q, 0); |
| 2019 | const char *zTagName = db_column_text(&q, 1); |
| 2020 | char zLabel[30]; |
| 2021 | sqlite3_snprintf(sizeof(zLabel), zLabel, "c%d", tagid); |
| 2022 | if( P(zLabel) ){ |
| 2023 | @ <br /><input type="checkbox" name="c%d(tagid)" checked="checked" /> |
| 2024 | }else{ |
| 2025 | @ <br /><input type="checkbox" name="c%d(tagid)" /> |
| 2026 | } |
| 2027 | if( strncmp(zTagName, "sym-", 4)==0 ){ |
| 2028 | @ Cancel tag <b>%h(&zTagName[4])</b> |
| 2029 | }else{ |
| 2030 | @ Cancel special tag <b>%h(zTagName)</b> |
| 2031 | } |
| 2032 | } |
| 2033 | db_finalize(&q); |
| 2034 | @ </td></tr> |
| 2035 | |
| 2036 | @ <tr><td align="right" valign="top"><b>Branching:</b></td> |
| 2037 | @ <td valign="top"> |
| 2038 | @ <input id="newbr" type="checkbox" name="newbr"%s(zNewBrFlag) /> |
| 2039 | @ Make this check-in the start of a new branch named: |
| 2040 | @ <input type="text" style="width:15;" name="brname" value="%h(zNewBranch)" |
| 2041 | @ onkeyup="gebi('newbr').checked=!!this.value" /> |
| 2042 | @ </td></tr> |
| 2043 | |
| 2044 | if( is_a_leaf(rid) |
| @@ -2046,13 +2047,13 @@ | |
| 2046 | " WHERE tagid=%d AND rid=%d AND tagtype>0", |
| 2047 | TAG_CLOSED, rid) |
| 2048 | ){ |
| 2049 | @ <tr><td align="right" valign="top"><b>Leaf Closure:</b></td> |
| 2050 | @ <td valign="top"> |
| 2051 | @ <input type="checkbox" name="close"%s(zCloseFlag) /> |
| 2052 | @ Mark this leaf as "closed" so that it no longer appears on the |
| 2053 | @ "leaves" page and is no longer labeled as a "<b>Leaf</b>". |
| 2054 | @ </td></tr> |
| 2055 | } |
| 2056 | |
| 2057 | |
| 2058 | @ <tr><td colspan="2"> |
| 2059 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -1691,17 +1691,17 @@ | |
| 1691 | int stdClrFound = 0; |
| 1692 | int i; |
| 1693 | |
| 1694 | @ <table border="0" cellpadding="0" cellspacing="1"> |
| 1695 | if( zIdPropagate ){ |
| 1696 | @ <tr><td colspan="6" align="left"><label> |
| 1697 | if( fPropagate ){ |
| 1698 | @ <input type="checkbox" name="%s(zIdPropagate)" checked="checked" /> |
| 1699 | }else{ |
| 1700 | @ <input type="checkbox" name="%s(zIdPropagate)" /> |
| 1701 | } |
| 1702 | @ Propagate color to descendants</label></td></tr> |
| 1703 | } |
| 1704 | @ <tr> |
| 1705 | for(i=0; i<nColor; i++){ |
| 1706 | const char *zClr = aColor[i].zColor; |
| 1707 | if( zClr==0 ) zClr = aColor[i].zCName; |
| @@ -2001,12 +2001,12 @@ | |
| 2001 | render_color_chooser(fNewPropagateColor, zNewColor, "pclr", "clr", "clrcust"); |
| 2002 | @ </td></tr> |
| 2003 | |
| 2004 | @ <tr><td align="right" valign="top"><b>Tags:</b></td> |
| 2005 | @ <td valign="top"> |
| 2006 | @ <label><input type="checkbox" id="newtag" name="newtag"%s(zNewTagFlag) /> |
| 2007 | @ Add the following new tag name to this check-in:</label> |
| 2008 | @ <input type="text" style="width:15;" name="tagname" value="%h(zNewTag)" |
| 2009 | @ onkeyup="gebi('newtag').checked=!!this.value" /> |
| 2010 | db_prepare(&q, |
| 2011 | "SELECT tag.tagid, tagname FROM tagxref, tag" |
| 2012 | " WHERE tagxref.rid=%d AND tagtype>0 AND tagxref.tagid=tag.tagid" |
| @@ -2017,28 +2017,29 @@ | |
| 2017 | while( db_step(&q)==SQLITE_ROW ){ |
| 2018 | int tagid = db_column_int(&q, 0); |
| 2019 | const char *zTagName = db_column_text(&q, 1); |
| 2020 | char zLabel[30]; |
| 2021 | sqlite3_snprintf(sizeof(zLabel), zLabel, "c%d", tagid); |
| 2022 | @ <br /><label> |
| 2023 | if( P(zLabel) ){ |
| 2024 | @ <input type="checkbox" name="c%d(tagid)" checked="checked" /> |
| 2025 | }else{ |
| 2026 | @ <input type="checkbox" name="c%d(tagid)" /> |
| 2027 | } |
| 2028 | if( strncmp(zTagName, "sym-", 4)==0 ){ |
| 2029 | @ Cancel tag <b>%h(&zTagName[4])</b></label> |
| 2030 | }else{ |
| 2031 | @ Cancel special tag <b>%h(zTagName)</b></label> |
| 2032 | } |
| 2033 | } |
| 2034 | db_finalize(&q); |
| 2035 | @ </td></tr> |
| 2036 | |
| 2037 | @ <tr><td align="right" valign="top"><b>Branching:</b></td> |
| 2038 | @ <td valign="top"> |
| 2039 | @ <label><input id="newbr" type="checkbox" name="newbr"%s(zNewBrFlag) /> |
| 2040 | @ Make this check-in the start of a new branch named:</label> |
| 2041 | @ <input type="text" style="width:15;" name="brname" value="%h(zNewBranch)" |
| 2042 | @ onkeyup="gebi('newbr').checked=!!this.value" /> |
| 2043 | @ </td></tr> |
| 2044 | |
| 2045 | if( is_a_leaf(rid) |
| @@ -2046,13 +2047,13 @@ | |
| 2047 | " WHERE tagid=%d AND rid=%d AND tagtype>0", |
| 2048 | TAG_CLOSED, rid) |
| 2049 | ){ |
| 2050 | @ <tr><td align="right" valign="top"><b>Leaf Closure:</b></td> |
| 2051 | @ <td valign="top"> |
| 2052 | @ <label><input type="checkbox" name="close"%s(zCloseFlag) /> |
| 2053 | @ Mark this leaf as "closed" so that it no longer appears on the |
| 2054 | @ "leaves" page and is no longer labeled as a "<b>Leaf</b>".</label> |
| 2055 | @ </td></tr> |
| 2056 | } |
| 2057 | |
| 2058 | |
| 2059 | @ <tr><td colspan="2"> |
| 2060 |
+47
-24
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -552,34 +552,57 @@ | ||
| 552 | 552 | @ <tr> |
| 553 | 553 | @ <td class="usetupEditLabel">Capabilities:</td> |
| 554 | 554 | @ <td> |
| 555 | 555 | #define B(x) inherit[x] |
| 556 | 556 | if( g.perm.Setup ){ |
| 557 | - @ <input type="checkbox" name="as"%s(oas) />%s(B('s'))Setup<br /> | |
| 558 | - } | |
| 559 | - @ <input type="checkbox" name="aa"%s(oaa) />%s(B('a'))Admin<br /> | |
| 560 | - @ <input type="checkbox" name="ad"%s(oad) />%s(B('d'))Delete<br /> | |
| 561 | - @ <input type="checkbox" name="ae"%s(oae) />%s(B('e'))Email<br /> | |
| 562 | - @ <input type="checkbox" name="ap"%s(oap) />%s(B('p'))Password<br /> | |
| 563 | - @ <input type="checkbox" name="ai"%s(oai) />%s(B('i'))Check-In<br /> | |
| 564 | - @ <input type="checkbox" name="ao"%s(oao) />%s(B('o'))Check-Out<br /> | |
| 565 | - @ <input type="checkbox" name="ah"%s(oah) />%s(B('h'))Hyperlinks<br /> | |
| 566 | - @ <input type="checkbox" name="au"%s(oau) />%s(B('u'))Reader<br /> | |
| 567 | - @ <input type="checkbox" name="av"%s(oav) />%s(B('v'))Developer<br /> | |
| 568 | - @ <input type="checkbox" name="ag"%s(oag) />%s(B('g'))Clone<br /> | |
| 569 | - @ <input type="checkbox" name="aj"%s(oaj) />%s(B('j'))Read Wiki<br /> | |
| 570 | - @ <input type="checkbox" name="af"%s(oaf) />%s(B('f'))New Wiki<br /> | |
| 571 | - @ <input type="checkbox" name="am"%s(oam) />%s(B('m'))Append Wiki<br /> | |
| 572 | - @ <input type="checkbox" name="ak"%s(oak) />%s(B('k'))Write Wiki<br /> | |
| 573 | - @ <input type="checkbox" name="ab"%s(oab) />%s(B('b'))Attachments<br /> | |
| 574 | - @ <input type="checkbox" name="ar"%s(oar) />%s(B('r'))Read Ticket<br /> | |
| 575 | - @ <input type="checkbox" name="an"%s(oan) />%s(B('n'))New Ticket<br /> | |
| 576 | - @ <input type="checkbox" name="ac"%s(oac) />%s(B('c'))Append Ticket<br /> | |
| 577 | - @ <input type="checkbox" name="aw"%s(oaw) />%s(B('w'))Write Ticket<br /> | |
| 578 | - @ <input type="checkbox" name="at"%s(oat) />%s(B('t'))Ticket Report<br /> | |
| 579 | - @ <input type="checkbox" name="ax"%s(oax) />%s(B('x'))Private<br /> | |
| 580 | - @ <input type="checkbox" name="az"%s(oaz) />%s(B('z'))Download Zip | |
| 557 | + @ <label><input type="checkbox" name="as"%s(oas) />%s(B('s'))Setup | |
| 558 | + @ </label><br /> | |
| 559 | + } | |
| 560 | + @ <label><input type="checkbox" name="aa"%s(oaa) />%s(B('a'))Admin | |
| 561 | + @ </label><br /> | |
| 562 | + @ <label><input type="checkbox" name="ad"%s(oad) />%s(B('d'))Delete | |
| 563 | + @ </label><br /> | |
| 564 | + @ <label><input type="checkbox" name="ae"%s(oae) />%s(B('e'))Email | |
| 565 | + @ </label><br /> | |
| 566 | + @ <label><input type="checkbox" name="ap"%s(oap) />%s(B('p'))Password | |
| 567 | + @ </label><br /> | |
| 568 | + @ <label><input type="checkbox" name="ai"%s(oai) />%s(B('i'))Check-In | |
| 569 | + @ </label><br /> | |
| 570 | + @ <label><input type="checkbox" name="ao"%s(oao) />%s(B('o'))Check-Out | |
| 571 | + @ </label><br /> | |
| 572 | + @ <label><input type="checkbox" name="ah"%s(oah) />%s(B('h'))Hyperlinks | |
| 573 | + @ </label><br /> | |
| 574 | + @ <label><input type="checkbox" name="au"%s(oau) />%s(B('u'))Reader | |
| 575 | + @ </label><br /> | |
| 576 | + @ <label><input type="checkbox" name="av"%s(oav) />%s(B('v'))Developer | |
| 577 | + @ </label><br /> | |
| 578 | + @ <label><input type="checkbox" name="ag"%s(oag) />%s(B('g'))Clone | |
| 579 | + @ </label><br /> | |
| 580 | + @ <label><input type="checkbox" name="aj"%s(oaj) />%s(B('j'))Read Wiki | |
| 581 | + @ </label><br /> | |
| 582 | + @ <label><input type="checkbox" name="af"%s(oaf) />%s(B('f'))New Wiki | |
| 583 | + @ </label><br /> | |
| 584 | + @ <label><input type="checkbox" name="am"%s(oam) />%s(B('m'))Append Wiki | |
| 585 | + @ </label><br /> | |
| 586 | + @ <label><input type="checkbox" name="ak"%s(oak) />%s(B('k'))Write Wiki | |
| 587 | + @ </label><br /> | |
| 588 | + @ <label><input type="checkbox" name="ab"%s(oab) />%s(B('b'))Attachments | |
| 589 | + @ </label><br /> | |
| 590 | + @ <label><input type="checkbox" name="ar"%s(oar) />%s(B('r'))Read Ticket | |
| 591 | + @ </label><br /> | |
| 592 | + @ <label><input type="checkbox" name="an"%s(oan) />%s(B('n'))New Ticket | |
| 593 | + @ </label><br /> | |
| 594 | + @ <label><input type="checkbox" name="ac"%s(oac) />%s(B('c'))Append Ticket | |
| 595 | + @ </label><br /> | |
| 596 | + @ <label><input type="checkbox" name="aw"%s(oaw) />%s(B('w'))Write Ticket | |
| 597 | + @ </label><br /> | |
| 598 | + @ <label><input type="checkbox" name="at"%s(oat) />%s(B('t'))Ticket Report | |
| 599 | + @ </label><br /> | |
| 600 | + @ <label><input type="checkbox" name="ax"%s(oax) />%s(B('x'))Private | |
| 601 | + @ </label><br /> | |
| 602 | + @ <label><input type="checkbox" name="az"%s(oaz) />%s(B('z'))Download Zip | |
| 603 | + @ </label> | |
| 581 | 604 | @ </td> |
| 582 | 605 | @ </tr> |
| 583 | 606 | @ <tr> |
| 584 | 607 | @ <td align="right">Password:</td> |
| 585 | 608 | if( zPw[0] ){ |
| 586 | 609 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -552,34 +552,57 @@ | |
| 552 | @ <tr> |
| 553 | @ <td class="usetupEditLabel">Capabilities:</td> |
| 554 | @ <td> |
| 555 | #define B(x) inherit[x] |
| 556 | if( g.perm.Setup ){ |
| 557 | @ <input type="checkbox" name="as"%s(oas) />%s(B('s'))Setup<br /> |
| 558 | } |
| 559 | @ <input type="checkbox" name="aa"%s(oaa) />%s(B('a'))Admin<br /> |
| 560 | @ <input type="checkbox" name="ad"%s(oad) />%s(B('d'))Delete<br /> |
| 561 | @ <input type="checkbox" name="ae"%s(oae) />%s(B('e'))Email<br /> |
| 562 | @ <input type="checkbox" name="ap"%s(oap) />%s(B('p'))Password<br /> |
| 563 | @ <input type="checkbox" name="ai"%s(oai) />%s(B('i'))Check-In<br /> |
| 564 | @ <input type="checkbox" name="ao"%s(oao) />%s(B('o'))Check-Out<br /> |
| 565 | @ <input type="checkbox" name="ah"%s(oah) />%s(B('h'))Hyperlinks<br /> |
| 566 | @ <input type="checkbox" name="au"%s(oau) />%s(B('u'))Reader<br /> |
| 567 | @ <input type="checkbox" name="av"%s(oav) />%s(B('v'))Developer<br /> |
| 568 | @ <input type="checkbox" name="ag"%s(oag) />%s(B('g'))Clone<br /> |
| 569 | @ <input type="checkbox" name="aj"%s(oaj) />%s(B('j'))Read Wiki<br /> |
| 570 | @ <input type="checkbox" name="af"%s(oaf) />%s(B('f'))New Wiki<br /> |
| 571 | @ <input type="checkbox" name="am"%s(oam) />%s(B('m'))Append Wiki<br /> |
| 572 | @ <input type="checkbox" name="ak"%s(oak) />%s(B('k'))Write Wiki<br /> |
| 573 | @ <input type="checkbox" name="ab"%s(oab) />%s(B('b'))Attachments<br /> |
| 574 | @ <input type="checkbox" name="ar"%s(oar) />%s(B('r'))Read Ticket<br /> |
| 575 | @ <input type="checkbox" name="an"%s(oan) />%s(B('n'))New Ticket<br /> |
| 576 | @ <input type="checkbox" name="ac"%s(oac) />%s(B('c'))Append Ticket<br /> |
| 577 | @ <input type="checkbox" name="aw"%s(oaw) />%s(B('w'))Write Ticket<br /> |
| 578 | @ <input type="checkbox" name="at"%s(oat) />%s(B('t'))Ticket Report<br /> |
| 579 | @ <input type="checkbox" name="ax"%s(oax) />%s(B('x'))Private<br /> |
| 580 | @ <input type="checkbox" name="az"%s(oaz) />%s(B('z'))Download Zip |
| 581 | @ </td> |
| 582 | @ </tr> |
| 583 | @ <tr> |
| 584 | @ <td align="right">Password:</td> |
| 585 | if( zPw[0] ){ |
| 586 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -552,34 +552,57 @@ | |
| 552 | @ <tr> |
| 553 | @ <td class="usetupEditLabel">Capabilities:</td> |
| 554 | @ <td> |
| 555 | #define B(x) inherit[x] |
| 556 | if( g.perm.Setup ){ |
| 557 | @ <label><input type="checkbox" name="as"%s(oas) />%s(B('s'))Setup |
| 558 | @ </label><br /> |
| 559 | } |
| 560 | @ <label><input type="checkbox" name="aa"%s(oaa) />%s(B('a'))Admin |
| 561 | @ </label><br /> |
| 562 | @ <label><input type="checkbox" name="ad"%s(oad) />%s(B('d'))Delete |
| 563 | @ </label><br /> |
| 564 | @ <label><input type="checkbox" name="ae"%s(oae) />%s(B('e'))Email |
| 565 | @ </label><br /> |
| 566 | @ <label><input type="checkbox" name="ap"%s(oap) />%s(B('p'))Password |
| 567 | @ </label><br /> |
| 568 | @ <label><input type="checkbox" name="ai"%s(oai) />%s(B('i'))Check-In |
| 569 | @ </label><br /> |
| 570 | @ <label><input type="checkbox" name="ao"%s(oao) />%s(B('o'))Check-Out |
| 571 | @ </label><br /> |
| 572 | @ <label><input type="checkbox" name="ah"%s(oah) />%s(B('h'))Hyperlinks |
| 573 | @ </label><br /> |
| 574 | @ <label><input type="checkbox" name="au"%s(oau) />%s(B('u'))Reader |
| 575 | @ </label><br /> |
| 576 | @ <label><input type="checkbox" name="av"%s(oav) />%s(B('v'))Developer |
| 577 | @ </label><br /> |
| 578 | @ <label><input type="checkbox" name="ag"%s(oag) />%s(B('g'))Clone |
| 579 | @ </label><br /> |
| 580 | @ <label><input type="checkbox" name="aj"%s(oaj) />%s(B('j'))Read Wiki |
| 581 | @ </label><br /> |
| 582 | @ <label><input type="checkbox" name="af"%s(oaf) />%s(B('f'))New Wiki |
| 583 | @ </label><br /> |
| 584 | @ <label><input type="checkbox" name="am"%s(oam) />%s(B('m'))Append Wiki |
| 585 | @ </label><br /> |
| 586 | @ <label><input type="checkbox" name="ak"%s(oak) />%s(B('k'))Write Wiki |
| 587 | @ </label><br /> |
| 588 | @ <label><input type="checkbox" name="ab"%s(oab) />%s(B('b'))Attachments |
| 589 | @ </label><br /> |
| 590 | @ <label><input type="checkbox" name="ar"%s(oar) />%s(B('r'))Read Ticket |
| 591 | @ </label><br /> |
| 592 | @ <label><input type="checkbox" name="an"%s(oan) />%s(B('n'))New Ticket |
| 593 | @ </label><br /> |
| 594 | @ <label><input type="checkbox" name="ac"%s(oac) />%s(B('c'))Append Ticket |
| 595 | @ </label><br /> |
| 596 | @ <label><input type="checkbox" name="aw"%s(oaw) />%s(B('w'))Write Ticket |
| 597 | @ </label><br /> |
| 598 | @ <label><input type="checkbox" name="at"%s(oat) />%s(B('t'))Ticket Report |
| 599 | @ </label><br /> |
| 600 | @ <label><input type="checkbox" name="ax"%s(oax) />%s(B('x'))Private |
| 601 | @ </label><br /> |
| 602 | @ <label><input type="checkbox" name="az"%s(oaz) />%s(B('z'))Download Zip |
| 603 | @ </label> |
| 604 | @ </td> |
| 605 | @ </tr> |
| 606 | @ <tr> |
| 607 | @ <td align="right">Password:</td> |
| 608 | if( zPw[0] ){ |
| 609 |
+8
-8
| --- src/user.c | ||
| +++ src/user.c | ||
| @@ -465,26 +465,26 @@ | ||
| 465 | 465 | } |
| 466 | 466 | @ </table></center> |
| 467 | 467 | db_finalize(&q); |
| 468 | 468 | @ <hr> |
| 469 | 469 | @ <form method="post" action="%s(g.zTop)/access_log"> |
| 470 | - @ <input type="checkbox" name="delold"> | |
| 471 | - @ Delete all but the most recent 200 entries</input> | |
| 470 | + @ <label><input type="checkbox" name="delold"> | |
| 471 | + @ Delete all but the most recent 200 entries</input></label> | |
| 472 | 472 | @ <input type="submit" name="deloldbtn" value="Delete"></input> |
| 473 | 473 | @ </form> |
| 474 | 474 | @ <form method="post" action="%s(g.zTop)/access_log"> |
| 475 | - @ <input type="checkbox" name="delanon"> | |
| 476 | - @ Delete all entries for user "anonymous"</input> | |
| 475 | + @ <label><input type="checkbox" name="delanon"> | |
| 476 | + @ Delete all entries for user "anonymous"</input></label> | |
| 477 | 477 | @ <input type="submit" name="delanonbtn" value="Delete"></input> |
| 478 | 478 | @ </form> |
| 479 | 479 | @ <form method="post" action="%s(g.zTop)/access_log"> |
| 480 | - @ <input type="checkbox" name="delfail"> | |
| 481 | - @ Delete all failed login attempts</input> | |
| 480 | + @ <label><input type="checkbox" name="delfail"> | |
| 481 | + @ Delete all failed login attempts</input></label> | |
| 482 | 482 | @ <input type="submit" name="delfailbtn" value="Delete"></input> |
| 483 | 483 | @ </form> |
| 484 | 484 | @ <form method="post" action="%s(g.zTop)/access_log"> |
| 485 | - @ <input type="checkbox" name="delall"> | |
| 486 | - @ Delete all entries</input> | |
| 485 | + @ <label><input type="checkbox" name="delall"> | |
| 486 | + @ Delete all entries</input></label> | |
| 487 | 487 | @ <input type="submit" name="delallbtn" value="Delete"></input> |
| 488 | 488 | @ </form> |
| 489 | 489 | style_footer(); |
| 490 | 490 | } |
| 491 | 491 |
| --- src/user.c | |
| +++ src/user.c | |
| @@ -465,26 +465,26 @@ | |
| 465 | } |
| 466 | @ </table></center> |
| 467 | db_finalize(&q); |
| 468 | @ <hr> |
| 469 | @ <form method="post" action="%s(g.zTop)/access_log"> |
| 470 | @ <input type="checkbox" name="delold"> |
| 471 | @ Delete all but the most recent 200 entries</input> |
| 472 | @ <input type="submit" name="deloldbtn" value="Delete"></input> |
| 473 | @ </form> |
| 474 | @ <form method="post" action="%s(g.zTop)/access_log"> |
| 475 | @ <input type="checkbox" name="delanon"> |
| 476 | @ Delete all entries for user "anonymous"</input> |
| 477 | @ <input type="submit" name="delanonbtn" value="Delete"></input> |
| 478 | @ </form> |
| 479 | @ <form method="post" action="%s(g.zTop)/access_log"> |
| 480 | @ <input type="checkbox" name="delfail"> |
| 481 | @ Delete all failed login attempts</input> |
| 482 | @ <input type="submit" name="delfailbtn" value="Delete"></input> |
| 483 | @ </form> |
| 484 | @ <form method="post" action="%s(g.zTop)/access_log"> |
| 485 | @ <input type="checkbox" name="delall"> |
| 486 | @ Delete all entries</input> |
| 487 | @ <input type="submit" name="delallbtn" value="Delete"></input> |
| 488 | @ </form> |
| 489 | style_footer(); |
| 490 | } |
| 491 |
| --- src/user.c | |
| +++ src/user.c | |
| @@ -465,26 +465,26 @@ | |
| 465 | } |
| 466 | @ </table></center> |
| 467 | db_finalize(&q); |
| 468 | @ <hr> |
| 469 | @ <form method="post" action="%s(g.zTop)/access_log"> |
| 470 | @ <label><input type="checkbox" name="delold"> |
| 471 | @ Delete all but the most recent 200 entries</input></label> |
| 472 | @ <input type="submit" name="deloldbtn" value="Delete"></input> |
| 473 | @ </form> |
| 474 | @ <form method="post" action="%s(g.zTop)/access_log"> |
| 475 | @ <label><input type="checkbox" name="delanon"> |
| 476 | @ Delete all entries for user "anonymous"</input></label> |
| 477 | @ <input type="submit" name="delanonbtn" value="Delete"></input> |
| 478 | @ </form> |
| 479 | @ <form method="post" action="%s(g.zTop)/access_log"> |
| 480 | @ <label><input type="checkbox" name="delfail"> |
| 481 | @ Delete all failed login attempts</input></label> |
| 482 | @ <input type="submit" name="delfailbtn" value="Delete"></input> |
| 483 | @ </form> |
| 484 | @ <form method="post" action="%s(g.zTop)/access_log"> |
| 485 | @ <label><input type="checkbox" name="delall"> |
| 486 | @ Delete all entries</input></label> |
| 487 | @ <input type="submit" name="delallbtn" value="Delete"></input> |
| 488 | @ </form> |
| 489 | style_footer(); |
| 490 | } |
| 491 |