Changes between Version 7 and Version 8 of TracFormsPlugin/Syntax


Ignore:
Timestamp:
Jun 26, 2008 1:44:20 AM (6 years ago)
Author:
rharkins
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracFormsPlugin/Syntax

    v7 v8  
    3636 
    3737|| '''Command''' || '''Version''' || '''Arguments''' || '''Meaning''' || 
    38 || '''page''' || 0.1+ || page-context || Sets the page portion of the context used to store the form.  This defaults to the page the user is currently on. || 
    39 || '''subcontext''' || 0.1+ || subcontext || Sets a subcontext within the page.  For example, a SVN checklist could have a "#!subcontext SVN" to differentiate it from other forms on the page. || 
    40 || '''default''' || 0.1+ || operation || Specifies the default operation in [tf:args] blocks.  Defaults to "checkbox" || 
    41 || '''track_fields''' || 0.1+ || [yes|no] || If no argument given or yes, keep track of field changes in this form.  Unless track_fields is specified, this defaults to false (no field changes tracked).  This affects [tf.who] and [tf.when] || 
    42 || '''submit_label''' || 0.1+ || label || Set the label to use for the submit button at the end of the form.  The default is "Submit Form" || 
    43 || '''setenv''' || 0.1+ || name value || Set the name to value in the form's environment (or any subforms therein). || 
     38|| '''page''' || 0.1 || page-context || Sets the page portion of the context used to store the form.  This defaults to the page the user is currently on. || 
     39|| '''subcontext''' || 0.1 || subcontext || Sets a subcontext within the page.  For example, a SVN checklist could have a "#!subcontext SVN" to differentiate it from other forms on the page. || 
     40|| '''default''' || 0.1 || operation || Specifies the default operation in [tf:args] blocks.  Defaults to "checkbox" || 
     41|| '''track_fields''' || 0.1 || [yes|no] || If no argument given or yes, keep track of field changes in this form.  Unless track_fields is specified, this defaults to false (no field changes tracked).  This affects [tf.who] and [tf.when] || 
     42|| '''submit_label''' || 0.1 || label || Set the label to use for the submit button at the end of the form.  The default is "Submit Form" || 
     43|| '''setenv''' || 0.1 || name value || Set the name to value in the form's environment (or any subforms therein). || 
    4444 
    4545== !TracForm Operations == 
     
    4848 
    4949|| '''Operation''' || '''Version''' || '''Argument(s)''' || '''Meaning''' || 
    50 || '''tf.checkbox''' || 0.1+ || name [value] || Put an HTML checkbox here.  Use value only if specified (simply "on" is default). || 
    51 || '''tf.radio''' || 0.1+ || name value || Put an HTML radio button here.  Use the name and value pair together. || 
    52 || '''tf.input''' || 0.1+ || name default || Put an HTML form input field here. || 
    53 || '''tf.who''' || 0.1+ || name || Show which user most recently affected the specified field.  This requires track_fields to be set in the commands section. || 
    54 || '''tf.when''' || 0.1+ || name [strftime format string] || Show when the most change was made on the specified field.  This requires track_fields to be set in the commands section. || 
    55 || '''tf.form_updater''' || 0.1+ || || Show the most recent updater of the form itself. || 
    56 || '''tf.form_updated_on''' || 0.1+ || [strftime format string] || Show when the form was most recently updated. || 
     50|| '''tf.checkbox''' || 0.1 || name [value] || Put an HTML checkbox here.  Use value only if specified (simply "on" is default). || 
     51|| '''tf.radio''' || 0.1 || name value || Put an HTML radio button here.  Use the name and value pair together. || 
     52|| '''tf.input''' || 0.1 || name default || Put an HTML form input field here. || 
     53|| '''tf.select''' || 0.2 || name value[//label]... || Put a SELECT dropdown list here.  The values are by default used as labels but can be added if //label is used (the // is removed) || 
     54|| '''tf.who''' || 0.1 || name || Show which user most recently affected the specified field.  This requires track_fields to be set in the commands section. || 
     55|| '''tf.when''' || 0.1 || name [strftime format string] || Show when the most change was made on the specified field.  This requires track_fields to be set in the commands section. || 
     56|| '''tf.form_updater''' || 0.1 || || Show the most recent updater of the form itself. || 
     57|| '''tf.form_updated_on''' || 0.1 || [strftime format string] || Show when the form was most recently updated. || 
    5758 
    5859== !TracForm Arguments == 
     
    6970 
    7071|| '''Variable''' || '''Version''' || '''Meaning''' || 
    71 || '''%USER%''' || 0.1+ || The currently active user. || 
    72 || '''%NOW%''' || 0.1+ || The current date and time. || 
     72|| '''%USER%''' || 0.1 || The currently active user. || 
     73|| '''%NOW%''' || 0.1 || The current date and time. || 
    7374 
    7475All substitutions may be applied to any argument within #! command or [tf:] operation sections.