~kosova/+junk/tuxfamily-twiki

« back to all changes in this revision

Viewing changes to foswiki/data/System/EditTablePlugin.txt

  • Committer: James Michael DuPont
  • Date: 2009-07-18 19:58:49 UTC
  • Revision ID: jamesmikedupont@gmail.com-20090718195849-vgbmaht2ys791uo2
added foswiki

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%META:TOPICINFO{author="ProjectContributor" date="1191744279" format="1.1" version="1"}%
 
2
---+!! Edit Table Plugin
 
3
 
 
4
%SHORTDESCRIPTION%
 
5
 
 
6
Simply add an *[&nbsp;Edit&nbsp;table&nbsp;]* button to an existing table by writing =%<nop>EDITTABLE{}%= directly above the table. This can be added to tables that are formatted with TablePlugin: add the =EDITTABLE= macro just above or below the =TABLE= tag. It can also be used without any =TABLE= tag.
 
7
 
 
8
Customize entry fields by specifying the format: use a text field, a drop down box, a date field, radio buttons or checkboxes.
 
9
 
 
10
Multiple tables per topic are editable, but only one at a time can be edited.
 
11
 
 
12
%TOC%
 
13
 
 
14
---++ Per Table Settings
 
15
 
 
16
Add a =%<nop>EDITTABLE{...}%= macro just before an existing table to make it editable, or add the variable anywhere in a topic to start a new table.
 
17
%INCLUDE{"%SYSTEMWEB%.VarEDITTABLE" section="edittable_attributes"}%
 
18
 
 
19
---+++ Using Macros in the Format Parameter
 
20
 
 
21
By default, macros in =&lt;initial value&gt;= (of text input field) and =&lt;label text&gt;= (of fixed label) get expanded when a new row is added. This can be used for example to add a timestamp to a label. You can escape characters with format tokens if you do not want that.
 
22
 
 
23
Any macro inside a table cell will be preserved. For instance, =%<nop>TOPIC%= will not get expanded to the current topic name.
 
24
 
 
25
The format tokens are the same as with %SYSTEMWEB%.FormattedSearch:
 
26
 
 
27
| *Escape:* | *Expands To:* |
 
28
| =$n= or =$n()= | New line. Use =$n()= if followed by alphanumeric character, e.g. write =Foo$n()Bar= instead of =Foo$nBar= |
 
29
| =$nop= or =$nop()= | Is a "no operation". |
 
30
| =$quot= | Double quote (="=) |
 
31
| =$percnt= | Percent sign (=%=) |
 
32
| =$dollar= | Dollar sign (=$=) |
 
33
 
 
34
 
 
35
#DateField
 
36
---+++ Date Field Type
 
37
 
 
38
<img src="%ATTACHURLPATH%/EditTablePluginCalendarExample.gif" alt="Edit Table Calendar Example" width="638" height="250" />
 
39
 
 
40
The =date= field type allows one to choose a date with a popup calendar. Popup calendar works with all modern browsers. The date picker button is inactive if the browser cannot support the popup calendar or if javascript is disabled. 
 
41
 
 
42
 
 
43
---++ Per Cell Settings
 
44
 
 
45
An individual edit field type can be defined for each table cell. Place an =%<nop>EDITCELL{ "type, ..." }%= macro at the end of the cell content. This is useful to override the per column =%<nop>EDITTABLE{ format="..." }%= settings, or to create tables with key/value rows. All edit field types of the =format="..."= parameter are supported. For example, to define a text field, type: =| cell content %<nop>EDITCELL{ "text, 20" }% |=
 
46
 
 
47
It is also possible to place the edit button inside a cell instead of default location below the table. Type =| %<nop>EDITCELL{ "editbutton, 1, Edit this table" }% |= to show a button, or =| %<nop>EDITCELL{ "editbutton, 1, Edit table, Image-URL" }% |= to show a button image with alternate text.
 
48
 
 
49
*Note:* The =%<nop>EDITCELL{ }%= macro cannot be used by itself; place an =%<nop>EDITTABLE{ }%=variable at the beginning of a table where you want to use =%<nop>EDITCELL{ }%= variables.
 
50
 
 
51
---++ Table Buttons
 
52
 
 
53
<form>
 
54
   * In page view mode:
 
55
      * <input type="submit" class="foswikiSubmit" name="et"   value="Edit table" onclick="return(false);" /> - turn the table into edit mode
 
56
   * In edit mode:
 
57
      * <input type="submit" class="foswikiButton" name="etsave"   value="Save table"  onclick="return(false);" /> - save your changes
 
58
      * <input type="submit" class="foswikiButton" name="etqsave"   value="Quiet save"  onclick="return(false);" /> - save your changes without alerting subscribed WebNotify users
 
59
      * <input type="submit" class="foswikiButton" name="etaddrow" value="Add row" onclick="return(false);" /> - add row to the table (if enabled)
 
60
      * <input type="submit" class="foswikiButton" name="etdelrow" value="Delete last row" onclick="return(false);" /> - remove last row from the table (if enabled)
 
61
      * <input type="submit" class="foswikiButtonCancel" name="etcancel" value="Cancel" onclick="return(false);" /> - cancel without saving and release edit lock
 
62
      * <img src="%ATTACHURLPATH%/btn_move.gif"> - Move a row by clicking this button next to the row to
 
63
         be moved, then at a destination.
 
64
      * <img src="%ATTACHURLPATH%/btn_delete.gif"> - Deletes the row next to this button.
 
65
</form>
 
66
 
 
67
---++ Examples
 
68
 
 
69
Line before table: =%<nop>EDITTABLE{ format="| row, -1 | text, 20, init | select, 1, one, two, three, four | radio, 3,:-),:-I,:-( | label, 0, %<nop>SERVERTIME{"$day $mon $year $hour:$min"}% |" changerows="on" }%=
 
70
%EDITTABLE{ format="| row, -1 | text, 20, init | select, 1, one, two, three, four | radio, 3,:-),:-I,:-( | label, 0, %SERVERTIME{"$day $mon $year $hour:$min"}% |" changerows="on" }%
 
71
|*Nr*|*Text field*|*Drop down*|*Mood*|*Timestamp*|
 
72
| 1 | hello table | one | :-) | 26 Jun 2002 12:30 |
 
73
| 2 |  | two | :-( | 27 Jun 2002 12:40 |
 
74
 
 
75
%RED% *Note:* Please do not save this example table! Use Foswiki:Sandbox.EditTablePluginTesting if you want to try out this Plugin %ENDCOLOR%
 
76
 
 
77
If this plugin is installed you will see an *[&nbsp;Edit&nbsp;table&nbsp;]* button above; if you were to click on it you get this form:
 
78
 
 
79
<a name="edittable1"></a>
 
80
<div class="editTable editTableEdit">
 
81
<input type="hidden" name="ettablenr" value="1" />
 
82
<table cellspacing="0" id="default" cellpadding="0" class="foswikiTable" rules="rows" border="1">
 
83
    <thead>
 
84
    <tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
 
85
        <th bgcolor="#6b7f93" valign="top" class="foswikiTableCol0 foswikiFirstCol"> <a rel="nofollow" href="%SCRIPTURL{"viewauth"}%/%SYSTEMWEB%/EditTablePlugin?ettablenr=1&amp;amp;etedit=on&amp;amp;etrows=3&amp;amp;x=27&amp;amp;y=13&amp;amp;sortcol=0;table=2;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">Nr<input type="hidden" name="etcell1x1" value="*Nr*" /></font></a> </th>
 
86
        <th bgcolor="#6b7f93" valign="top" class="foswikiTableCol1"> <a rel="nofollow" href="%SCRIPTURL{"viewauth"}%/%SYSTEMWEB%/EditTablePlugin?ettablenr=1&amp;amp;etedit=on&amp;amp;etrows=3&amp;amp;x=27&amp;amp;y=13&amp;amp;sortcol=1;table=2;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">Text field<input type="hidden" name="etcell1x2" value="*Text field*" /></font></a> </th>
 
87
        <th bgcolor="#6b7f93" valign="top" class="foswikiTableCol2"> <a rel="nofollow" href="%SCRIPTURL{"viewauth"}%/%SYSTEMWEB%/EditTablePlugin?ettablenr=1&amp;amp;etedit=on&amp;amp;etrows=3&amp;amp;x=27&amp;amp;y=13&amp;amp;sortcol=2;table=2;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">Drop down<input type="hidden" name="etcell1x3" value="*Drop down*" /></font></a> </th>
 
88
        <th bgcolor="#6b7f93" valign="top" class="foswikiTableCol3"> <a rel="nofollow" href="%SCRIPTURL{"viewauth"}%/%SYSTEMWEB%/EditTablePlugin?ettablenr=1&amp;amp;etedit=on&amp;amp;etrows=3&amp;amp;x=27&amp;amp;y=13&amp;amp;sortcol=3;table=2;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">Mood<input type="hidden" name="etcell1x4" value="*Mood*" /></font></a> </th>
 
89
        <th bgcolor="#6b7f93" valign="top" class="foswikiTableCol4 foswikiLastCol"> <a rel="nofollow" href="%SCRIPTURL{"viewauth"}%/%SYSTEMWEB%/EditTablePlugin?ettablenr=1&amp;amp;etedit=on&amp;amp;etrows=3&amp;amp;x=27&amp;amp;y=13&amp;amp;sortcol=4;table=2;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">Timestamp<input type="hidden" name="etcell1x5" value="*Timestamp*" /></font></a> </th>
 
90
    </tr>
 
91
    </thead>
 
92
    <tr class="foswikiTableOdd foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
 
93
        <td bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> <span class="et_rowlabel">1<input type="hidden" name="etcell2x1" value="1" /></span> </td>
 
94
        <td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> <input class="foswikiInputField editTableInput" type="text" name="etcell2x2" size="20" value="hello table" /> </td>
 
95
        <td bgcolor="#ffffff" valign="top" class="foswikiTableCol2"> <select class="foswikiSelect" name="etcell2x3" size="1"> <option selected="selected">one</option> <option>two</option> <option>three</option> <option>four</option></select> </td>
 
96
        <td bgcolor="#ffffff" valign="top" class="foswikiTableCol3"> <input type="radio" name="etcell2x4" value=":-)" checked="checked" /> <img src="%PUBURL%/%SYSTEMWEB%/SmiliesPlugin/smile.gif" alt="smile" title="smile" border="0" />  <input type="radio" name="etcell2x4" value=":-I" /> <img src="%PUBURL%/%SYSTEMWEB%/SmiliesPlugin/indifferent.gif" alt="indifferent" title="indifferent" border="0" />  <input type="radio" name="etcell2x4" value=":-(" /> <img src="%PUBURL%/%SYSTEMWEB%/SmiliesPlugin/frown.gif" alt="frown" title="frown" border="0" /> </td>
 
97
        <td bgcolor="#ffffff" valign="top" class="foswikiTableCol4 foswikiLastCol"> 26 Jun 2002 12:30<input type="hidden" name="etcell2x5" value="26 Jun 2002 12:30" /> </td>
 
98
    </tr>
 
99
    <tr class="foswikiTableEven foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
 
100
        <td bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol foswikiLast"> <span class="et_rowlabel">2<input type="hidden" name="etcell3x1" value="2" /></span> </td>
 
101
        <td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLast"> <input class="foswikiInputField editTableInput" type="text" name="etcell3x2" size="20" value="" /> </td>
 
102
 
 
103
        <td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLast"> <select class="foswikiSelect" name="etcell3x3" size="1"> <option>one</option> <option selected="selected">two</option> <option>three</option> <option>four</option></select> </td>
 
104
        <td bgcolor="#edf4f9" valign="top" class="foswikiTableCol3 foswikiLast"> <input type="radio" name="etcell3x4" value=":-)" /> <img src="%PUBURL%/%SYSTEMWEB%/SmiliesPlugin/smile.gif" alt="smile" title="smile" border="0" />  <input type="radio" name="etcell3x4" value=":-I" /> <img src="%PUBURL%/%SYSTEMWEB%/SmiliesPlugin/indifferent.gif" alt="indifferent" title="indifferent" border="0" />  <input type="radio" name="etcell3x4" value=":-(" checked="checked" /> <img src="%PUBURL%/%SYSTEMWEB%/SmiliesPlugin/frown.gif" alt="frown" title="frown" border="0" /> </td>
 
105
        <td bgcolor="#edf4f9" valign="top" class="foswikiTableCol4 foswikiLastCol foswikiLast"> 27 Jun 2002 12:40<input type="hidden" name="etcell3x5" value="27 Jun 2002 12:40" /> </td>
 
106
    </tr></table>
 
107
<input type="hidden" name="etrows" value="3" />
 
108
<input type="submit" name="etsave" id="etsave" value="Save table" class="foswikiSubmit" />
 
109
<input type="submit" name="etqsave" id="etqsave" value="Quiet save" class="foswikiButton" />
 
110
<input type="submit" name="etaddrow" id="etaddrow" value="Add row" class="foswikiButton" />
 
111
<input type="submit" name="etdelrow" id="etdelrow" value="Delete last row" class="foswikiButton" />
 
112
<input type="submit" name="etcancel" id="etcancel" value="Cancel" class="foswikiButtonCancel" />
 
113
</div><!-- /editTable -->
 
114
 
 
115
The following example shows a simple table with key/value rows. The default edit field type for the value column is a text field. This is overloaded by a selector for the Gender, and a date picker for the DOB. This is typically used by Foswiki applications where new topics with tables are created based on a template topic.
 
116
 
 
117
<table style="background:#f2f2f2;" cellpadding="6">
 
118
<tr>
 
119
<th>
 
120
You type:
 
121
</th>
 
122
<th>
 
123
You get:
 
124
</th>
 
125
<th>
 
126
Table in edit mode:
 
127
</th>
 
128
</tr>
 
129
<tr>
 
130
<td valign="top">
 
131
<verbatim>
 
132
%TABLE{"headerrows="1"}%
 
133
%EDITTABLE{ format="| label | text, 40 |" changerows="off" }%
 
134
|*Key*|*Value*|
 
135
| Name: | John Smith |
 
136
| Gender: | M %EDITCELL{select, 1, , F, M}% |
 
137
| DOB: | 1999/12/31 %EDITCELL{date, 10}% |
 
138
| City: | New York |
 
139
</verbatim>
 
140
</td>
 
141
<td valign="top">
 
142
<img src="%ATTACHURLPATH%/ScreenshotEditCell1.gif" alt="EDITCELL Example in view mode" width="150" height="172" />
 
143
</td>
 
144
<td valign="top">
 
145
<img src="%ATTACHURLPATH%/ScreenshotEditCell2.gif" alt="EDITCELL Example in edit mode" width="436" height="198" />
 
146
</td>
 
147
</tr></table>
 
148
 
 
149
---++ Plugin Settings
 
150
 
 
151
You can override the default settings for the plugin by defining the following [[%SYSTEMWEB%.PreferenceSettings][preferences]].
 
152
<!--
 
153
      * Set SHORTDESCRIPTION = Edit tables using edit fields, date pickers and drop down boxes
 
154
-->
 
155
Note: Texts inside =%<nop>MAKETEXT{}%= are translated into other languages.
 
156
| *Preference* | *Meaning* | *Default* |
 
157
| EDITTABLEPLUGIN_JAVASCRIPTINTERFACE | Set to 0 to be disable the ability to directly move and delete row without page refresh. Can be overridden with parameter =javascriptinterface= | 1 |
 
158
| EDITTABLEPLUGIN_CHANGEROWS | Default for change rows flag: =on=, =off=, =add= | on |
 
159
| EDITTABLEPLUGIN_QUIETSAVE | Default flag for quiet save option: =on= to show the Quiet Save button, =off= to hide | on |
 
160
| EDITTABLEPLUGIN_EDIT_BUTTON | Specify =button text=, or =alternate text, image URL=.  | %MAKETEXT{"Edit this table"}%, %ATTACHURL%/edittable.gif |
 
161
| EDITTABLEPLUGIN_SAVE_BUTTON | Specify =button text=, or =alternate text, image URL=.  | %MAKETEXT{"Save table"}% |
 
162
| EDITTABLEPLUGIN_QUIET_SAVE_BUTTON | Specify =button text=, or =alternate text, image URL=.  | %MAKETEXT{"Quiet save"}% |
 
163
| EDITTABLEPLUGIN_ADD_ROW_BUTTON | Specify =button text=, or =alternate text, image URL=.  | %MAKETEXT{"Add row"}% |
 
164
| EDITTABLEPLUGIN_DELETE_LAST_ROW_BUTTON | Specify =button text=, or =alternate text, image URL=.  | %MAKETEXT{"Delete last row"}% |
 
165
| EDITTABLEPLUGIN_CANCEL_BUTTON | Specify =button text=, or =alternate text, image URL=.  | %MAKETEXT{"Cancel"}% |
 
166
| EDITTABLEPLUGIN_INCLUDED_TOPIC_DOES_NOT_EXIST | Default help texts | <span class="foswikiAlert">%MAKETEXT{"Warning: 'include' topic does not exist!"}%</span> |
 
167
   
 
168
*Note:* The Plugin uses base settings like date format, language and style from the JSCalendarContrib.
 
169
 
 
170
---++ Limitations and Known Issues
 
171
 
 
172
   * This Plugin does not support table formatting like Multi-span cells (e.g. =| ... ||=) and cell justification (e.g. =|  centered  |   right |=)
 
173
   * There is a performance issue when editing a large table, say, with more then 50 rows
 
174
   * You cannot put two =%<nop>EDITTABLE{}%= statements on the same line in the source
 
175
   * You can include %-vars now in select values, by quoting them with &lt;nop&gt;, as in %&lt;nop&gt;X% for %<nop>X%, say for instance:
 
176
     <br /> =select,1,%&lt;nop&gt;X%,%&lt;nop&gt;Y%=
 
177
 
 
178
 
 
179
 
 
180
---++ Installation Instructions
 
181
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.
 
182
 
 
183
Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install".
 
184
 
 
185
If you have any problems, or if the extension isn't available in =configure=, then you can still install manually from the command-line. See http://foswiki.org/Support/ManuallyInstallingExtensions for more help.
 
186
 
 
187
Test if the Plugin is correctly installed:
 
188
   * Check above example if there is an *[&nbsp;Edit&nbsp;table&nbsp;]* button below the table in above example
 
189
   * Click on *[&nbsp;Edit&nbsp;table&nbsp;]*, make changes and save the table
 
190
 
 
191
---++ License
 
192
 
 
193
   * The Edit Table Plugin is released under the [[http://www.gnu.org/licenses/gpl.html][GPL]]
 
194
 
 
195
 
 
196
---++ Plugin Info
 
197
 
 
198
|  Copyright: | &copy; 2008-2009, Arthur Clemens and Foswiki Contributors; Copyright &copy; 2002-2007 Peter Thoeny, peter@thoeny.org and TWiki Contributors  | 
 
199
|  License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) |
 
200
|  Plugin Version: | 4.3 (14 Jun 2009) |
 
201
|  Change History: | <!-- specify latest version first -->&nbsp; |
 
202
|  14 Jun 2009: | 4.3: Arthur Clemens: Major code refactoring to let !EditTablePlugin work together with !SpreadSheetPlugin. |
 
203
|  18 Apr 2009: | 4.22: Ignore all saving unless it happened by saving a form using POST method. <br />Fixed including edit parameters from subwebs. <br />Removed support for settings in the plugin topic which is a bad idea anyway as they get overwritten at each Foswiki upgrade. Define the global settings in <nop>%USERSWEB%.SitePreferences instead. |
 
204
|  26 Mar 2009: | 4.21: Fixed a problem with plugin going into deep recursive orbit when a table is followed by text containing vertical bars but not valid table row. |
 
205
|  17 Mar 2009: | 4.20: Fixed several bugs related to use of macros in EDITTABLE and TABLE tags |
 
206
|  08 Feb 2009: | 4.13: Fixed incidental removal of =EDITCELL= tags when a different table in the topic is edited. Improved display of linebreaks and TML inside cells. |
 
207
|  07 Feb 2009: | 4.12: Protect =verbatim class="xxx"= during edit. |
 
208
|  16 Dec 2008: | 4.11: Kenneth Lavrsen: Foswiki version |
 
209
|  01 Nov 2008: | 4.9: Arthur Clemens: Fixed rendering of =verbatim= blocks when editing. Added parameter =buttonrow="top"= to allow the buttons to be positioned at the top of the table. |
 
210
|  26 Sep 2008: | 4.8.7: Arthur Clemens: Let empty table initialize more than one column from =header= parameter |
 
211
|  24 Sep 2008: | 4.8.6: Arthur Clemens: Fix parsing of header labels |
 
212
|  21 Sep 2008: | 4.8.5: Arthur Clemens: Fix rendering of TML inside label |
 
213
|  03 Aug 2008: | 4.8.4: TWiki 4.2.1 release version |
 
214
|  19 Jul 2008: | 4.8.3: Bugfix release |
 
215
|  20 Mar 2008: | 4.8: Arthur Clemens: Code refactoring; disabled table sort when editing; removed usage of =$percnt= to prevent variable expansion (is now done automatically); made Javascript interface aware of headers and footers, and of =changerows="off"=; improved feedback on row move. |
 
216
|  25 Dec 2007: | 4.7.1: Arthur Clemens: Added warning if =include= parameter topic does not exist. |
 
217
|  22 Dec 2007: | 4.7: Arthur Clemens: Changed handling of escaped variables. To escape TWiki variable, use formatting tokens such as =$percnt=. |
 
218
|  16 Dec 2007: | 4.6: Kenneth Lavrsen: The plugin prevents TablePlugin from initsorting the table being edited. This is done by temporarily appending the attribute disableallsort="on" to the TABLE tag of a table being edited. Additionally all header sorting is disabled while editing a table by setting a hidden formfield =sort= to "off". Disabling sorting while editing is needed now that the EditTablePlugin supports moving rows up and down. |
 
219
|  01 Dec 2007: | 4.3: Arthur Clemens: added support for TablePlugin =headerrows= and =footerrows=; updated edit button |
 
220
|  16 Oct 2007: | 4.2: Arthur Clemens: refactoring, bug fixes. |
 
221
|  07 Oct 2007: | 15182: PTh: Added !VarEDITTABLE to have it listed in !TWikiVariables |
 
222
|  15 Mar 2007: | Arthur Clemens: Fixed eating of double newlines; icons for javascript buttons and interface improvements. By default the javascript interface is turned off, set =JAVASCRIPTINTERFACE= to use it in edit mode. |
 
223
|  05 Mar 2007: | Byron Darrah: Added ability to dynamically move and delete rows. |
 
224
|  12 Oct 2006: | <a rel="nofollow" href="http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item2982">Item2982</a> Use default date format from JSCalendarContrib |
 
225
|  02 Oct 2006: | <a rel="nofollow" href="http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item2884">Item2884</a> Check also for access permission in meta data; proper fix to not warn if oneself has a lock on topic |
 
226
|  30 Aug 2006: | <a rel="nofollow" href="http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item2829">Item2829</a> Remove whitespace from select, radio and checkbox items; restored topic lock if $TWiki::Plugins::VERSION < 1.1 |
 
227
|  29 Jul 2006: | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item2684'>Item2684</a> - Quietly ignore topic edit locks on table edit |
 
228
|  21 Jan 2006: | TWiki:Main.CrawfordCurrie ported to TWiki-4.0.0, changed to use JSCalendarContrib |
 
229
|  16 Sep 2004: | Added radio buttons and checkbox controls; escaped "%VBAR%" pipe symbol found in input fields to preserve tables |
 
230
|  01 Aug 2004: | Fixed bug where edittable did not work if at the end of a topic |
 
231
|  07 Apr 2004: | Fixed bug where two tables got updated when you edit and save a table included into a topic containing other edit tables |
 
232
|  02 Mar 2004: | Default for =%<nop>EDITCELL{editbutton}%= is EDITBUTTON preference |
 
233
|  27 Feb 2004: | Added QUIETSAVE setting and =quietsave= parameter; image for Edit button |
 
234
|  18 Feb 2004: | Doc fixes; allow edit button anywhere in a cell not just at the end of a cell |
 
235
|  17 Feb 2004: | Added per cell definition of edit field types with =%<nop>EDITCELL{}%= variable; added =headerislabel= and =editbutton= parameters |
 
236
|  20 Dec 2003: | Fixed bug where calendar did not work after adding a row (TWiki:Main/PaulineCheung); added all language files of Mishoo DHTML calendar 0.9.5 |
 
237
|  13 Dec 2003: | Added CHANGEROWS, JSCALENDARDATEFORMAT, JSCALENDARLANGUAGE, JSCALENDAROPTIONS settings |
 
238
|  16 Oct 2003: | small typo fixed (garbled if ---<nop>+ header on top) |
 
239
|  15 Oct 2003: | new date field type with javascript calendar - CN |
 
240
|  14 Oct 2003: | docfix: the documentation page was an old one - CN |
 
241
|  13 Oct 2003: | bugfix: %-vars in select were resetted to first on add/del row - CN |
 
242
|  18 Sep 2003: | incompatibility: changed default of =changerows= to =on=; support for %-vars, Quiet save for saving without notification; all other fixes in Dev topic integrated - CN |
 
243
|  08 Nov 2002: | Prevent variable expansion in label text; added escape characters |
 
244
|  27 Jun 2002: | New =helptopic= parameter |
 
245
|  26 Jun 2002: | Support for variables in included EDITTABLE parameters; fixed problem with HTML in cells |
 
246
|  21 May 2002: | Added fixed label format; new =changerows="add"= parameter |
 
247
|  27 Apr 2002: | Fixed bug where text after a double quote in a cell disappeared |
 
248
|  18 Apr 2002: | Fixed bug where table was breaking when pasting multiple lines into an edit field using Netscape on Unix |
 
249
|  08 Apr 2002: | Check for change permission and edit lock of topic |
 
250
|  05 Apr 2002: | Initial version |
 
251
|  Dependencies: | None |
 
252
|  Perl Version: | 5.008 |
 
253
|  Plugin Home: | http://foswiki.org/Extensions/%TOPIC% |
 
254
|  Support: | http://foswiki.org/Support/%TOPIC% |
 
255
 
 
256
%META:FILEATTACHMENT{name="EditTablePluginCalendarExample.gif" attr="h" comment="" date="1071283396" path="EditTablePluginCalendarExample.gif" size="7823" user="ProjectContributor" version="1.1"}%
 
257
%META:FILEATTACHMENT{name="ScreenshotEditCell1.gif" attr="h" comment="Screenshot" date="1077050633" path="ScreenshotEditCell1.gif" size="2017" user="ProjectContributor" version="1.1"}%
 
258
%META:FILEATTACHMENT{name="ScreenshotEditCell2.gif" attr="h" comment="Screenshot" date="1077050702" path="ScreenshotEditCell2.gif" size="3199" user="ProjectContributor" version="1.1"}%
 
259
%META:FILEATTACHMENT{name="img.gif" attr="h" comment="Component of Mishoo DHTML calendar" date="1077813483" path="img.gif" size="145" user="ProjectContributor" version="1.1"}%
 
260
%META:FILEATTACHMENT{name="menuarrow.gif" attr="h" comment="Component of Mishoo DHTML calendar" date="1077813470" path="menuarrow.gif" size="68" user="ProjectContributor" version="1.1"}%
 
261
%META:FILEATTACHMENT{name="edittable.gif" attr="h" comment="Edit table image button" date="1077933805" path="edittable.gif" size="298" user="ProjectContributor" version="1.1"}%
 
262
%META:FILEATTACHMENT{name="btn_move.gif" attr="h" comment="Javascript button: move row" date="1077933805" path="btn_move.gif" size="298" user="ProjectContributor" version="1.1"}%
 
263
%META:FILEATTACHMENT{name="btn_delete.gif" attr="h" comment="Javascript button: delete row" date="1077933805" path="btn_delete.gif" size="298" user="ProjectContributor" version="1.1"}%
 
264
%META:FILEATTACHMENT{name="btn_delete_disabled.gif" attr="h" comment="Javascript button: delete (disabled)" date="1077933805" path="btn_delete_disabled.gif" size="298" user="ProjectContributor" version="1.1"}%
 
265
%META:FILEATTACHMENT{name="edittable.css" attr="h" comment="Plugin Style Sheet" date="1077933805" path="edittable.css" size="298" user="ProjectContributor" version="1.1"}%
 
266
%META:FILEATTACHMENT{name="edittable.js" attr="h" comment="Javascript for table editing without page refresh" date="1077933805" path="edittable.js" size="298" user="ProjectContributor" version="1.1"}%
 
267
%META:FILEATTACHMENT{name="move_done_bg_anim.gif" attr="h" comment="Background animation to show a row move has been completed" date="1077933805" path="move_done_bg_anim.gif" size="298" user="ProjectContributor" version="1.1"}%