Fossil SCM
setup_settings page: keep labels on the left side of their entry fields.
Commit
c1ca1000fe8033004fe7f6ce3bfa1e48027bfa6e8fc439c7576525b7e0063d25
Parent
12eae3f58af3e44…
1 file changed
+11
-6
+11
-6
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -876,25 +876,30 @@ | ||
| 876 | 876 | } |
| 877 | 877 | } |
| 878 | 878 | } |
| 879 | 879 | @ <br /><input type="submit" name="submit" value="Apply Changes" /> |
| 880 | 880 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 881 | + @ <table> | |
| 881 | 882 | for(i=0, pSet=aSetting; i<nSetting; i++, pSet++){ |
| 882 | 883 | if( pSet->width>0 && !pSet->forceTextArea ){ |
| 883 | 884 | int hasVersionableValue = pSet->versionable && |
| 884 | 885 | (db_get_versioned(pSet->name, NULL)!=0); |
| 886 | + @ <tr><td> | |
| 887 | + @ <a href='%R/help?cmd=%s(pSet->name)'>%h(pSet->name)</a> | |
| 888 | + if( pSet->versionable ){ | |
| 889 | + @ (v) | |
| 890 | + } else { | |
| 891 | + @ | |
| 892 | + } | |
| 893 | + @</td><td> | |
| 885 | 894 | entry_attribute("", /*pSet->width*/ 25, pSet->name, |
| 886 | 895 | pSet->var!=0 ? pSet->var : pSet->name, |
| 887 | 896 | (char*)pSet->def, hasVersionableValue); |
| 888 | - @ <a href='%R/help?cmd=%s(pSet->name)'>%h(pSet->name)</a> | |
| 889 | - if( pSet->versionable ){ | |
| 890 | - @ (v)<br /> | |
| 891 | - } else { | |
| 892 | - @ <br /> | |
| 893 | - } | |
| 897 | + @</td></tr> | |
| 894 | 898 | } |
| 895 | 899 | } |
| 900 | + @</table> | |
| 896 | 901 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 897 | 902 | for(i=0, pSet=aSetting; i<nSetting; i++, pSet++){ |
| 898 | 903 | if( pSet->width>0 && pSet->forceTextArea ){ |
| 899 | 904 | int hasVersionableValue = db_get_versioned(pSet->name, NULL)!=0; |
| 900 | 905 | @ <a href='%R/help?cmd=%s(pSet->name)'>%s(pSet->name)</a> |
| 901 | 906 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -876,25 +876,30 @@ | |
| 876 | } |
| 877 | } |
| 878 | } |
| 879 | @ <br /><input type="submit" name="submit" value="Apply Changes" /> |
| 880 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 881 | for(i=0, pSet=aSetting; i<nSetting; i++, pSet++){ |
| 882 | if( pSet->width>0 && !pSet->forceTextArea ){ |
| 883 | int hasVersionableValue = pSet->versionable && |
| 884 | (db_get_versioned(pSet->name, NULL)!=0); |
| 885 | entry_attribute("", /*pSet->width*/ 25, pSet->name, |
| 886 | pSet->var!=0 ? pSet->var : pSet->name, |
| 887 | (char*)pSet->def, hasVersionableValue); |
| 888 | @ <a href='%R/help?cmd=%s(pSet->name)'>%h(pSet->name)</a> |
| 889 | if( pSet->versionable ){ |
| 890 | @ (v)<br /> |
| 891 | } else { |
| 892 | @ <br /> |
| 893 | } |
| 894 | } |
| 895 | } |
| 896 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 897 | for(i=0, pSet=aSetting; i<nSetting; i++, pSet++){ |
| 898 | if( pSet->width>0 && pSet->forceTextArea ){ |
| 899 | int hasVersionableValue = db_get_versioned(pSet->name, NULL)!=0; |
| 900 | @ <a href='%R/help?cmd=%s(pSet->name)'>%s(pSet->name)</a> |
| 901 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -876,25 +876,30 @@ | |
| 876 | } |
| 877 | } |
| 878 | } |
| 879 | @ <br /><input type="submit" name="submit" value="Apply Changes" /> |
| 880 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 881 | @ <table> |
| 882 | for(i=0, pSet=aSetting; i<nSetting; i++, pSet++){ |
| 883 | if( pSet->width>0 && !pSet->forceTextArea ){ |
| 884 | int hasVersionableValue = pSet->versionable && |
| 885 | (db_get_versioned(pSet->name, NULL)!=0); |
| 886 | @ <tr><td> |
| 887 | @ <a href='%R/help?cmd=%s(pSet->name)'>%h(pSet->name)</a> |
| 888 | if( pSet->versionable ){ |
| 889 | @ (v) |
| 890 | } else { |
| 891 | @ |
| 892 | } |
| 893 | @</td><td> |
| 894 | entry_attribute("", /*pSet->width*/ 25, pSet->name, |
| 895 | pSet->var!=0 ? pSet->var : pSet->name, |
| 896 | (char*)pSet->def, hasVersionableValue); |
| 897 | @</td></tr> |
| 898 | } |
| 899 | } |
| 900 | @</table> |
| 901 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 902 | for(i=0, pSet=aSetting; i<nSetting; i++, pSet++){ |
| 903 | if( pSet->width>0 && pSet->forceTextArea ){ |
| 904 | int hasVersionableValue = db_get_versioned(pSet->name, NULL)!=0; |
| 905 | @ <a href='%R/help?cmd=%s(pSet->name)'>%s(pSet->name)</a> |
| 906 |