770 | | <tf>submit:label='Record your changes'</tf> <tf>lastmodified</tf> |
771 | | |
772 | | }}} |
773 | | |
774 | | {{{#!comment |
775 | | |
776 | | Help to implement new form |
777 | | |
778 | | == Selects |
779 | | |
780 | | || '''Description''' || '''Example''' || '''Value''' |
781 | | || simple select || <tf>select:simple_select:1 2 3 4</tf> || <tf>value:simple_select</tf> |
782 | | || labeled select || <tf>select:labeled_select:1=l1 2=l2 3=l3 4=l4</tf> || <tf>value:labeled_select</tf> |
783 | | || quoted select || <tf>select:quoted_select:'"a"' "'b'" 'c c'</tf> || <tf>value:quoted_select</tf> |
784 | | || complex select || <tf>select:complex_select: |
785 | | # |
786 | | # keep in mind that |
787 | | # - comments are removed |
788 | | # - newlines are replaced with '' (empty string) |
789 | | # prior to parsing. After all those the preformatting the |
790 | | # fields still have to be separated by whitespace to be distinguishable. |
791 | | # Further cfg-options are: |
792 | | # default |
793 | | # class |
794 | | # id |
795 | | value0 # label = value |
796 | | 'v a l u e 1' # label = value, both containing whitespace |
797 | | value2='l a b e l 2' # |
798 | | 'v a l u e 3'=label3 # |
799 | | 'val ue4'="lab el4" |
800 | | class=my_css_class |
801 | | id=my_css_id |
802 | | default=value2 # this is the cfg option (not an entry for the selector-list)... |
803 | | : # separator, from now on everything becomes a selector-list entry even if the name matches a cfg-option |
804 | | </tf> || <tf>value:complex_select</tf> |
805 | | |
806 | | == Checkboxes |
807 | | |
808 | | || '''Description''' || '''Example''' || '''Value''' |
809 | | || simple checkbox || <tf>checkbox:simple_checkbox</tf> || <tf>value:simple_checkbox</tf> |
810 | | || complex checkbox || <tf>checkbox:complex_checkbox: |
811 | | # Further cfg-options are: |
812 | | # checked : flag ('1','true' 'on' 'yes') used if there is no database entry available... |
813 | | # value : value stored when checkbox is checked |
814 | | # class |
815 | | # id |
816 | | value=value_if_checked |
817 | | checked=true |
818 | | </tf> || <tf>value:complex_checkbox</tf> |
819 | | |
820 | | == Inputs |
821 | | |
822 | | || '''Description''' || '''Example''' || '''Value''' |
823 | | || simple input || <tf>input:simple_input</tf> || <tf>value:simple_input</tf> |
824 | | || complex input || <tf>input:complex_input: |
825 | | # Further cfg-options are: |
826 | | # value : default value if no database entry is available |
827 | | # size : width in characters (defaults to 22) |
828 | | # class |
829 | | # id |
830 | | value=" 'foo' "'"bar" 'baz |
831 | | size=30 |
832 | | </tf> || <tf>value:complex_input</tf> |
833 | | |
834 | | == Radios |
835 | | |
836 | | || '''Description''' || '''Example''' || '''Value''' |
837 | | || simple radio || <tf>radio:simple_radio:value='beer'</tf> [[BR]]<tf>radio:simple_radio:value=milk checked=true</tf> [[BR]] <tf>radio:simple_radio:value=water</tf> || <tf>value:simple_radio</tf> |
838 | | || complex radio || <tf>radio:complex_radio: |
839 | | # Further cfg-options are: |
840 | | # checked : flag ('1','true' 'on' 'yes') used if there is no database entry available... |
841 | | # value : value stored when this radio is selected |
842 | | # class |
843 | | # id |
844 | | value=dummy1 |
845 | | size=30 |
846 | | </tf> [[BR]] <tf>radio:complex_radio: |
847 | | value=dummy2</tf> || <tf>value:complex_radio</tf> |
848 | | |
849 | | == Text areas |
850 | | |
851 | | || '''Description''' || '''Example''' || '''Value''' |
852 | | || simple text || <tf>textarea:simple_text</tf> || <tf>value:simple_text</tf> |
853 | | || complex text || <tf>textarea:complex_text: |
854 | | # Further cfg-options are: |
855 | | # rows : defaults to 2 |
856 | | # cols : defaults to 10 |
857 | | # value : default value if no database entry is available, defaults to '' |
858 | | # class |
859 | | # id |
860 | | cols=30 rows=5 value='Please fill your |
861 | | approval |
862 | | comment |
863 | | in here'</tf> || <tf>value:complex_text</tf> |
864 | | |
865 | | == Submit Buttons |
866 | | |
867 | | || '''Description''' || '''Example''' |
868 | | || simple button || <tf>submit</tf> |
869 | | || complex button || <tf>submit: |
870 | | # label : label on the button, defaults to 'Send' |
871 | | # class |
872 | | # id |
873 | | label='Commit'</tf> |
874 | | |
875 | | == Query Stuff |
876 | | |
877 | | <tf> |
878 | | # to have a value which is always there... |
879 | | set:to_be_queried:magic_value</tf> |
880 | | |
881 | | === Without Formatting |
882 | | |
883 | | || '''Value''' || <tf>value:to_be_queried</tf> |
884 | | || '''Who''' || <tf>who:to_be_queried</tf> |
885 | | || '''When''' || <tf>when:to_be_queried</tf> |
886 | | |
887 | | === With Formatting |
888 | | |
889 | | || '''Value''' (in bold) || '''<tf>value:to_be_queried</tf>''' |
890 | | || '''Who''' (underlined) || __<tf>who:to_be_queried</tf>__ |
891 | | || '''When''' (in italic) || ''<tf>when:to_be_queried</tf>'' |
892 | | |
893 | | <tf>lastmodified</tf> |
894 | | |
895 | | == Debug Stuff |
896 | | |
897 | | <tf> |
898 | | # set an relative field |
899 | | set:rel_name:rel_value |
900 | | </tf> |
901 | | |
902 | | <tf> |
903 | | # set an absolute field |
904 | | set:/abs_name:abs_value |
905 | | </tf> |
906 | | |
907 | | <tf>delete:/abs_name</tf> |
908 | | |
909 | | <tf> |
910 | | # dump fields... |
911 | | dump:.* |
912 | | </tf> |
913 | | |
914 | | }}} |
| 770 | <tf>submit:label='Record your changes'</tf> |
| 771 | |
| 772 | }}} |