New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Developers/Validation/trunk (diff) – NEMO

Changes between Version 4 and Version 5 of Developers/Validation/trunk


Ignore:
Timestamp:
2018-11-08T16:29:20+01:00 (5 years ago)
Author:
nemo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Developers/Validation/trunk

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