Fossil SCM
Improved some labels and help text and corrected the 'hint' styling to encompass elements outside of the FORM element.
Commit
f41eb6964cb88a6c670456df4198824b0b003518c0e9a0d06fda3b1332488f54
Parent
43d6e3caf2dc5d5…
2 files changed
+20
-17
+1
-1
+20
-17
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -3760,11 +3760,11 @@ | ||
| 3760 | 3760 | /* All set. Here we go... */ |
| 3761 | 3761 | #define fp fossil_print |
| 3762 | 3762 | /* ^^^ Appologies, Richard, but the @ form plays havoc with emacs */ |
| 3763 | 3763 | |
| 3764 | 3764 | fp("<h1>Editing:</h1>"); |
| 3765 | - fp("<p class='hint'>"); | |
| 3765 | + fp("<p class='fileedit-hint'>"); | |
| 3766 | 3766 | fp("File: <code>%h</code><br>" |
| 3767 | 3767 | "Version: <code id='r-label'>%s</code><br>", |
| 3768 | 3768 | zFilename, zRevResolved); |
| 3769 | 3769 | fp("Permalink: <code>" |
| 3770 | 3770 | "<a id='permalink' href='%R/fileedit?file=%T&r=%!S'>" |
| @@ -3788,11 +3788,11 @@ | ||
| 3788 | 3788 | fp("<textarea name='comment' rows='3' cols='80'>"); |
| 3789 | 3789 | if(zComment && *zComment){ |
| 3790 | 3790 | fp("%h"/*%h? %s?*/, zComment); |
| 3791 | 3791 | } |
| 3792 | 3792 | fp("</textarea>\n"); |
| 3793 | - fp("<div class='hint'>Comments use the Fossil wiki markup " | |
| 3793 | + fp("<div class='fileedit-hint'>Comments use the Fossil wiki markup " | |
| 3794 | 3794 | "syntax.</div>"/*TODO: radiobuttons for fossil/me/plain text*/); |
| 3795 | 3795 | |
| 3796 | 3796 | /******* Content *******/ |
| 3797 | 3797 | fp("<h3>File Content</h3>\n"); |
| 3798 | 3798 | fp("<textarea name='content' id='fileedit-content' " |
| @@ -3811,11 +3811,14 @@ | ||
| 3811 | 3811 | */ |
| 3812 | 3812 | if(0==submitMode || P("dry_run")!=0){ |
| 3813 | 3813 | cimi.flags |= CIMINI_DRY_RUN; |
| 3814 | 3814 | } |
| 3815 | 3815 | style_labeled_checkbox("dry_run", "Dry-run?", "1", |
| 3816 | - "In dry-run mode, do not really save.", | |
| 3816 | + "In dry-run mode, the Save button performs " | |
| 3817 | + "all work needed for saving but then rolls " | |
| 3818 | + "back the transaction, and thus does not " | |
| 3819 | + "really save.", | |
| 3817 | 3820 | cimi.flags & CIMINI_DRY_RUN); |
| 3818 | 3821 | if(P("allow_fork")!=0){ |
| 3819 | 3822 | cimi.flags |= CIMINI_ALLOW_FORK; |
| 3820 | 3823 | } |
| 3821 | 3824 | style_labeled_checkbox("allow_fork", "Allow fork?", "1", |
| @@ -3823,18 +3826,18 @@ | ||
| 3823 | 3826 | cimi.flags & CIMINI_ALLOW_FORK); |
| 3824 | 3827 | if(P("allow_older")!=0){ |
| 3825 | 3828 | cimi.flags |= CIMINI_ALLOW_OLDER; |
| 3826 | 3829 | } |
| 3827 | 3830 | style_labeled_checkbox("allow_older", "Allow older?", "1", |
| 3828 | - "Allow saving to a version which has " | |
| 3829 | - "a newer timestamp?", | |
| 3831 | + "Allow saving against a parent version " | |
| 3832 | + "which has a newer timestamp?", | |
| 3830 | 3833 | cimi.flags & CIMINI_ALLOW_OLDER); |
| 3831 | 3834 | if(P("exec_bit")!=0){ |
| 3832 | 3835 | cimi.filePerm = PERM_EXE; |
| 3833 | 3836 | } |
| 3834 | 3837 | style_labeled_checkbox("exec_bit", "Executable?", "1", |
| 3835 | - "Set executable bit?", | |
| 3838 | + "Set the executable bit?", | |
| 3836 | 3839 | PERM_EXE==cimi.filePerm); |
| 3837 | 3840 | if(P("allow_merge_conflict")!=0){ |
| 3838 | 3841 | cimi.flags |= CIMINI_ALLOW_MERGE_MARKER; |
| 3839 | 3842 | } |
| 3840 | 3843 | style_labeled_checkbox("allow_merge_conflict", |
| @@ -3841,10 +3844,19 @@ | ||
| 3841 | 3844 | "Allow merge conflict markers?", "1", |
| 3842 | 3845 | "Allow saving even if the content contains " |
| 3843 | 3846 | "what appear to be fossil merge conflict " |
| 3844 | 3847 | "markers?", |
| 3845 | 3848 | cimi.flags & CIMINI_ALLOW_MERGE_MARKER); |
| 3849 | + if(P("prefer_delta")!=0){ | |
| 3850 | + cimi.flags |= CIMINI_PREFER_DELTA; | |
| 3851 | + } | |
| 3852 | + style_labeled_checkbox("prefer_delta", | |
| 3853 | + "Prefer delta manifest?", "1", | |
| 3854 | + "Will create a delta manifest, instead of " | |
| 3855 | + "baseline, if conditions are favorable to do " | |
| 3856 | + "so. This option is only a suggestion.", | |
| 3857 | + cimi.flags & CIMINI_PREFER_DELTA); | |
| 3846 | 3858 | {/* EOL conversion policy... */ |
| 3847 | 3859 | const int eolMode = submitMode==0 ? 0 : atoi(PD("eol","0")); |
| 3848 | 3860 | switch(eolMode){ |
| 3849 | 3861 | case 1: cimi.flags |= CIMINI_CONVERT_EOL_UNIX; break; |
| 3850 | 3862 | case 2: cimi.flags |= CIMINI_CONVERT_EOL_WINDOWS; break; |
| @@ -3859,27 +3871,18 @@ | ||
| 3859 | 3871 | eolMode==1 ? " selected" : ""); |
| 3860 | 3872 | fp("<option value='2'%s>Windows EOLs</option>", |
| 3861 | 3873 | eolMode==2 ? " selected" : ""); |
| 3862 | 3874 | fp("</select>"); |
| 3863 | 3875 | } |
| 3864 | - if(P("prefer_delta")!=0){ | |
| 3865 | - cimi.flags |= CIMINI_PREFER_DELTA; | |
| 3866 | - } | |
| 3867 | - style_labeled_checkbox("prefer_delta", | |
| 3868 | - "Prefer delta manifest?", "1", | |
| 3869 | - "Will create a delta manifest, instead of " | |
| 3870 | - "baseline, if conditions are favorable to do " | |
| 3871 | - "so. This option is only a suggestion.", | |
| 3872 | - cimi.flags & CIMINI_PREFER_DELTA); | |
| 3873 | 3876 | |
| 3874 | 3877 | fp("</div></fieldset>") /* end of checkboxes */; |
| 3875 | 3878 | |
| 3876 | 3879 | /******* Buttons *******/ |
| 3877 | 3880 | fp("<fieldset class='fileedit-options'>" |
| 3878 | - "<legend>Several buttons are TODO</legend><div>"); | |
| 3881 | + "<legend>Tell the server to...</legend><div>"); | |
| 3879 | 3882 | fp("<button type='submit' name='submit' value='1'>" |
| 3880 | - "Submit</button>"); | |
| 3883 | + "Save</button>"); | |
| 3881 | 3884 | fp("<button type='submit' name='submit' value='2'>" |
| 3882 | 3885 | "Preview (TODO)</button>"); |
| 3883 | 3886 | fp("<button type='submit' name='submit' value='3'>" |
| 3884 | 3887 | "Diff (TODO)</button>"); |
| 3885 | 3888 | fp("</div></fieldset>"); |
| 3886 | 3889 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -3760,11 +3760,11 @@ | |
| 3760 | /* All set. Here we go... */ |
| 3761 | #define fp fossil_print |
| 3762 | /* ^^^ Appologies, Richard, but the @ form plays havoc with emacs */ |
| 3763 | |
| 3764 | fp("<h1>Editing:</h1>"); |
| 3765 | fp("<p class='hint'>"); |
| 3766 | fp("File: <code>%h</code><br>" |
| 3767 | "Version: <code id='r-label'>%s</code><br>", |
| 3768 | zFilename, zRevResolved); |
| 3769 | fp("Permalink: <code>" |
| 3770 | "<a id='permalink' href='%R/fileedit?file=%T&r=%!S'>" |
| @@ -3788,11 +3788,11 @@ | |
| 3788 | fp("<textarea name='comment' rows='3' cols='80'>"); |
| 3789 | if(zComment && *zComment){ |
| 3790 | fp("%h"/*%h? %s?*/, zComment); |
| 3791 | } |
| 3792 | fp("</textarea>\n"); |
| 3793 | fp("<div class='hint'>Comments use the Fossil wiki markup " |
| 3794 | "syntax.</div>"/*TODO: radiobuttons for fossil/me/plain text*/); |
| 3795 | |
| 3796 | /******* Content *******/ |
| 3797 | fp("<h3>File Content</h3>\n"); |
| 3798 | fp("<textarea name='content' id='fileedit-content' " |
| @@ -3811,11 +3811,14 @@ | |
| 3811 | */ |
| 3812 | if(0==submitMode || P("dry_run")!=0){ |
| 3813 | cimi.flags |= CIMINI_DRY_RUN; |
| 3814 | } |
| 3815 | style_labeled_checkbox("dry_run", "Dry-run?", "1", |
| 3816 | "In dry-run mode, do not really save.", |
| 3817 | cimi.flags & CIMINI_DRY_RUN); |
| 3818 | if(P("allow_fork")!=0){ |
| 3819 | cimi.flags |= CIMINI_ALLOW_FORK; |
| 3820 | } |
| 3821 | style_labeled_checkbox("allow_fork", "Allow fork?", "1", |
| @@ -3823,18 +3826,18 @@ | |
| 3823 | cimi.flags & CIMINI_ALLOW_FORK); |
| 3824 | if(P("allow_older")!=0){ |
| 3825 | cimi.flags |= CIMINI_ALLOW_OLDER; |
| 3826 | } |
| 3827 | style_labeled_checkbox("allow_older", "Allow older?", "1", |
| 3828 | "Allow saving to a version which has " |
| 3829 | "a newer timestamp?", |
| 3830 | cimi.flags & CIMINI_ALLOW_OLDER); |
| 3831 | if(P("exec_bit")!=0){ |
| 3832 | cimi.filePerm = PERM_EXE; |
| 3833 | } |
| 3834 | style_labeled_checkbox("exec_bit", "Executable?", "1", |
| 3835 | "Set executable bit?", |
| 3836 | PERM_EXE==cimi.filePerm); |
| 3837 | if(P("allow_merge_conflict")!=0){ |
| 3838 | cimi.flags |= CIMINI_ALLOW_MERGE_MARKER; |
| 3839 | } |
| 3840 | style_labeled_checkbox("allow_merge_conflict", |
| @@ -3841,10 +3844,19 @@ | |
| 3841 | "Allow merge conflict markers?", "1", |
| 3842 | "Allow saving even if the content contains " |
| 3843 | "what appear to be fossil merge conflict " |
| 3844 | "markers?", |
| 3845 | cimi.flags & CIMINI_ALLOW_MERGE_MARKER); |
| 3846 | {/* EOL conversion policy... */ |
| 3847 | const int eolMode = submitMode==0 ? 0 : atoi(PD("eol","0")); |
| 3848 | switch(eolMode){ |
| 3849 | case 1: cimi.flags |= CIMINI_CONVERT_EOL_UNIX; break; |
| 3850 | case 2: cimi.flags |= CIMINI_CONVERT_EOL_WINDOWS; break; |
| @@ -3859,27 +3871,18 @@ | |
| 3859 | eolMode==1 ? " selected" : ""); |
| 3860 | fp("<option value='2'%s>Windows EOLs</option>", |
| 3861 | eolMode==2 ? " selected" : ""); |
| 3862 | fp("</select>"); |
| 3863 | } |
| 3864 | if(P("prefer_delta")!=0){ |
| 3865 | cimi.flags |= CIMINI_PREFER_DELTA; |
| 3866 | } |
| 3867 | style_labeled_checkbox("prefer_delta", |
| 3868 | "Prefer delta manifest?", "1", |
| 3869 | "Will create a delta manifest, instead of " |
| 3870 | "baseline, if conditions are favorable to do " |
| 3871 | "so. This option is only a suggestion.", |
| 3872 | cimi.flags & CIMINI_PREFER_DELTA); |
| 3873 | |
| 3874 | fp("</div></fieldset>") /* end of checkboxes */; |
| 3875 | |
| 3876 | /******* Buttons *******/ |
| 3877 | fp("<fieldset class='fileedit-options'>" |
| 3878 | "<legend>Several buttons are TODO</legend><div>"); |
| 3879 | fp("<button type='submit' name='submit' value='1'>" |
| 3880 | "Submit</button>"); |
| 3881 | fp("<button type='submit' name='submit' value='2'>" |
| 3882 | "Preview (TODO)</button>"); |
| 3883 | fp("<button type='submit' name='submit' value='3'>" |
| 3884 | "Diff (TODO)</button>"); |
| 3885 | fp("</div></fieldset>"); |
| 3886 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -3760,11 +3760,11 @@ | |
| 3760 | /* All set. Here we go... */ |
| 3761 | #define fp fossil_print |
| 3762 | /* ^^^ Appologies, Richard, but the @ form plays havoc with emacs */ |
| 3763 | |
| 3764 | fp("<h1>Editing:</h1>"); |
| 3765 | fp("<p class='fileedit-hint'>"); |
| 3766 | fp("File: <code>%h</code><br>" |
| 3767 | "Version: <code id='r-label'>%s</code><br>", |
| 3768 | zFilename, zRevResolved); |
| 3769 | fp("Permalink: <code>" |
| 3770 | "<a id='permalink' href='%R/fileedit?file=%T&r=%!S'>" |
| @@ -3788,11 +3788,11 @@ | |
| 3788 | fp("<textarea name='comment' rows='3' cols='80'>"); |
| 3789 | if(zComment && *zComment){ |
| 3790 | fp("%h"/*%h? %s?*/, zComment); |
| 3791 | } |
| 3792 | fp("</textarea>\n"); |
| 3793 | fp("<div class='fileedit-hint'>Comments use the Fossil wiki markup " |
| 3794 | "syntax.</div>"/*TODO: radiobuttons for fossil/me/plain text*/); |
| 3795 | |
| 3796 | /******* Content *******/ |
| 3797 | fp("<h3>File Content</h3>\n"); |
| 3798 | fp("<textarea name='content' id='fileedit-content' " |
| @@ -3811,11 +3811,14 @@ | |
| 3811 | */ |
| 3812 | if(0==submitMode || P("dry_run")!=0){ |
| 3813 | cimi.flags |= CIMINI_DRY_RUN; |
| 3814 | } |
| 3815 | style_labeled_checkbox("dry_run", "Dry-run?", "1", |
| 3816 | "In dry-run mode, the Save button performs " |
| 3817 | "all work needed for saving but then rolls " |
| 3818 | "back the transaction, and thus does not " |
| 3819 | "really save.", |
| 3820 | cimi.flags & CIMINI_DRY_RUN); |
| 3821 | if(P("allow_fork")!=0){ |
| 3822 | cimi.flags |= CIMINI_ALLOW_FORK; |
| 3823 | } |
| 3824 | style_labeled_checkbox("allow_fork", "Allow fork?", "1", |
| @@ -3823,18 +3826,18 @@ | |
| 3826 | cimi.flags & CIMINI_ALLOW_FORK); |
| 3827 | if(P("allow_older")!=0){ |
| 3828 | cimi.flags |= CIMINI_ALLOW_OLDER; |
| 3829 | } |
| 3830 | style_labeled_checkbox("allow_older", "Allow older?", "1", |
| 3831 | "Allow saving against a parent version " |
| 3832 | "which has a newer timestamp?", |
| 3833 | cimi.flags & CIMINI_ALLOW_OLDER); |
| 3834 | if(P("exec_bit")!=0){ |
| 3835 | cimi.filePerm = PERM_EXE; |
| 3836 | } |
| 3837 | style_labeled_checkbox("exec_bit", "Executable?", "1", |
| 3838 | "Set the executable bit?", |
| 3839 | PERM_EXE==cimi.filePerm); |
| 3840 | if(P("allow_merge_conflict")!=0){ |
| 3841 | cimi.flags |= CIMINI_ALLOW_MERGE_MARKER; |
| 3842 | } |
| 3843 | style_labeled_checkbox("allow_merge_conflict", |
| @@ -3841,10 +3844,19 @@ | |
| 3844 | "Allow merge conflict markers?", "1", |
| 3845 | "Allow saving even if the content contains " |
| 3846 | "what appear to be fossil merge conflict " |
| 3847 | "markers?", |
| 3848 | cimi.flags & CIMINI_ALLOW_MERGE_MARKER); |
| 3849 | if(P("prefer_delta")!=0){ |
| 3850 | cimi.flags |= CIMINI_PREFER_DELTA; |
| 3851 | } |
| 3852 | style_labeled_checkbox("prefer_delta", |
| 3853 | "Prefer delta manifest?", "1", |
| 3854 | "Will create a delta manifest, instead of " |
| 3855 | "baseline, if conditions are favorable to do " |
| 3856 | "so. This option is only a suggestion.", |
| 3857 | cimi.flags & CIMINI_PREFER_DELTA); |
| 3858 | {/* EOL conversion policy... */ |
| 3859 | const int eolMode = submitMode==0 ? 0 : atoi(PD("eol","0")); |
| 3860 | switch(eolMode){ |
| 3861 | case 1: cimi.flags |= CIMINI_CONVERT_EOL_UNIX; break; |
| 3862 | case 2: cimi.flags |= CIMINI_CONVERT_EOL_WINDOWS; break; |
| @@ -3859,27 +3871,18 @@ | |
| 3871 | eolMode==1 ? " selected" : ""); |
| 3872 | fp("<option value='2'%s>Windows EOLs</option>", |
| 3873 | eolMode==2 ? " selected" : ""); |
| 3874 | fp("</select>"); |
| 3875 | } |
| 3876 | |
| 3877 | fp("</div></fieldset>") /* end of checkboxes */; |
| 3878 | |
| 3879 | /******* Buttons *******/ |
| 3880 | fp("<fieldset class='fileedit-options'>" |
| 3881 | "<legend>Tell the server to...</legend><div>"); |
| 3882 | fp("<button type='submit' name='submit' value='1'>" |
| 3883 | "Save</button>"); |
| 3884 | fp("<button type='submit' name='submit' value='2'>" |
| 3885 | "Preview (TODO)</button>"); |
| 3886 | fp("<button type='submit' name='submit' value='3'>" |
| 3887 | "Diff (TODO)</button>"); |
| 3888 | fp("</div></fieldset>"); |
| 3889 |
+1
-1
| --- src/default_css.txt | ||
| +++ src/default_css.txt | ||
| @@ -877,11 +877,11 @@ | ||
| 877 | 877 | margin: 0 0.25em 0.25em 0.25em; |
| 878 | 878 | } |
| 879 | 879 | .fileedit-form .fileedit-options > div > * { |
| 880 | 880 | margin: 0 0.25em 0.25em 0.25em; |
| 881 | 881 | } |
| 882 | -.fileedit-form .hint { | |
| 882 | +.fileedit-hint { | |
| 883 | 883 | font-size: 80%; |
| 884 | 884 | opacity: 0.75; |
| 885 | 885 | } |
| 886 | 886 | .fileedit-error-report { |
| 887 | 887 | background: yellow; |
| 888 | 888 |
| --- src/default_css.txt | |
| +++ src/default_css.txt | |
| @@ -877,11 +877,11 @@ | |
| 877 | margin: 0 0.25em 0.25em 0.25em; |
| 878 | } |
| 879 | .fileedit-form .fileedit-options > div > * { |
| 880 | margin: 0 0.25em 0.25em 0.25em; |
| 881 | } |
| 882 | .fileedit-form .hint { |
| 883 | font-size: 80%; |
| 884 | opacity: 0.75; |
| 885 | } |
| 886 | .fileedit-error-report { |
| 887 | background: yellow; |
| 888 |
| --- src/default_css.txt | |
| +++ src/default_css.txt | |
| @@ -877,11 +877,11 @@ | |
| 877 | margin: 0 0.25em 0.25em 0.25em; |
| 878 | } |
| 879 | .fileedit-form .fileedit-options > div > * { |
| 880 | margin: 0 0.25em 0.25em 0.25em; |
| 881 | } |
| 882 | .fileedit-hint { |
| 883 | font-size: 80%; |
| 884 | opacity: 0.75; |
| 885 | } |
| 886 | .fileedit-error-report { |
| 887 | background: yellow; |
| 888 |