Version 2 (modified by 14 years ago) (diff) | ,
---|
Provides forms anywhere there is a wiki
Notice: This plugin is unmaintained and available for adoption.
Description
This plugin aims to allow for forms anywhere there is a wiki. This is meant to provide a more flexible version of TracFormsPlugin.
Bugs/Feature Requests
Existing bugs and feature requests for WikiFormsPlugin are here.
If you have any issues, create a new ticket.
Download
Download the zipped source from [download:wikiformsplugin here].
Source
You can check out WikiFormsPlugin from here using Subversion, or browse the source with Trac.
Example
Normal wiki formatted stuff... {{{ #!WikiForms == Selects == || '''Description''' || '''Example''' || '''Value''' || simple select || <tf>select:simple_select:1 2 3 4</tf> || <tf>value:simple_select</tf> || labeled select || <tf>select:labeled_select:1=l1 2=l2 3=l3 4=l4</tf> || <tf>value:labeled_select</tf> || quoted select || <tf>select:quoted_select:'"a"' "'b'" 'c c'</tf> || <tf>value:quoted_select</tf> || complex select || <tf>select:complex_select: # # keep in mind that # - comments are removed # - newlines are replaced with '' (empty string) # prior to parsing. After all those the preformatting the # fields still have to be separated by whitespace to be distinguishable. # Further cfg-options are: # default # class # id value0 # label = value 'v a l u e 1' # label = value, both containing whitespace value2='l a b e l 2' # 'v a l u e 3'=label3 # 'val ue4'="lab el4" class=my_css_class id=my_css_id default=value2 # this is the cfg option (not an entry for the selector-list)... : # separator, from now on everything becomes a selector-list entry even if the name matches a cfg-option </tf> || <tf>value:complex_select</tf> == Checkboxes == || '''Description''' || '''Example''' || '''Value''' || simple checkbox || <tf>checkbox:simple_checkbox</tf> || <tf>value:simple_checkbox</tf> || complex checkbox || <tf>checkbox:complex_checkbox: # Further cfg-options are: # checked : flag ('1','true' 'on' 'yes') used if there is no database entry available... # value : value stored when checkbox is checked # class # id value=value_if_checked checked=true </tf> || <tf>value:complex_checkbox</tf> == Inputs == || '''Description''' || '''Example''' || '''Value''' || simple input || <tf>input:simple_input</tf> || <tf>value:simple_input</tf> || complex input || <tf>input:complex_input: # Further cfg-options are: # value : default value if no database entry is available # size : width in characters (defaults to 22) # class # id value=" 'foo' "'"bar" 'baz size=30 </tf> || <tf>value:complex_input</tf> == Radios == || '''Description''' || '''Example''' || '''Value''' || 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> || complex radio || <tf>radio:complex_radio: # Further cfg-options are: # checked : flag ('1','true' 'on' 'yes') used if there is no database entry available... # value : value stored when this radio is selected # class # id value=dummy1 size=30 </tf> [[BR]] <tf>radio:complex_radio: value=dummy2</tf> || <tf>value:complex_radio</tf> == Textareas == || '''Description''' || '''Example''' || '''Value''' || simple text || <tf>textarea:simple_text</tf> || <tf>value:simple_text</tf> || complex text || <tf>textarea:complex_text: # Further cfg-options are: # rows : defaults to 2 # cols : defaults to 10 # value : default value if no database entry is available, defaults to '' # class # id cols=30 rows=5 value='Please fill your approval comment in here'</tf> || <tf>value:complex_text</tf> == Submit Buttons == || '''Description''' || '''Example''' || simple button || <tf>submit</tf> || complex button || <tf>submit: # label : label on the button, defaults to 'Send' # class # id label='Commit'</tf> == Query Stuff == <tf> # to have a value which is always there... set:to_be_queried:magic_value</tf> === Without Formatting === || '''Value''' || <tf>value:to_be_queried</tf> || '''Who''' || <tf>who:to_be_queried</tf> || '''When''' || <tf>when:to_be_queried</tf> === With Formatting === || '''Value''' (in bold) || '''<tf>value:to_be_queried</tf>''' || '''Who''' (underlined) || __<tf>who:to_be_queried</tf>__ || '''When''' (in italic) || ''<tf>when:to_be_queried</tf>'' <tf>lastmodified</tf> == Debug Stuff == <tf> # set an relative field set:rel_name:rel_value </tf> <tf> # set an absolute field set:/abs_name:abs_value </tf> <tf>delete:/abs_name</tf> <tf> # dump fields... dump:.* </tf> }}} Normal wiki formatted stuff...
Recent Changes
- 17238 by rjollos on 2018-07-09 20:09:40
-
TracWikiForms 1.0.0dev: Fix windows incompatibility
The
%T
format code does not exist on Windows.
Fixes #13451.
- 16886 by rjollos on 2017-10-16 05:58:27
-
TracWikiForms 1.0.0dev:
WIKIFORMS_ADMIN
grantsWIKIFORMS_VIEW
Refs #13301.
- 16885 by rjollos on 2017-10-16 05:52:55
-
TracWikiForms 1.0.0dev: Remove import unused after r16884
Refs #13301.
(more)
Author/Contributors
Author: asic_druide
Maintainer: asic_druide
Contributors: