summaryrefslogtreecommitdiffstats
path: root/funcweb/funcweb/templates/repeater_form.kid
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-07-08 12:21:57 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-07-08 12:21:57 -0400
commit692807b31f32d79c90e202a8edca3508dbd03e6b (patch)
tree4e6dc47e8a7f61d2477b9837a527407e51ac6162 /funcweb/funcweb/templates/repeater_form.kid
parentcd7320d59ec7f6acc087507686a05711a59654bc (diff)
parent2db8f86f027509846d2bf0c0af801c902f124e78 (diff)
downloadfunc-692807b31f32d79c90e202a8edca3508dbd03e6b.tar.gz
func-692807b31f32d79c90e202a8edca3508dbd03e6b.tar.xz
func-692807b31f32d79c90e202a8edca3508dbd03e6b.zip
Merge branch 'makkalot_extreme'
Diffstat (limited to 'funcweb/funcweb/templates/repeater_form.kid')
-rw-r--r--funcweb/funcweb/templates/repeater_form.kid30
1 files changed, 30 insertions, 0 deletions
diff --git a/funcweb/funcweb/templates/repeater_form.kid b/funcweb/funcweb/templates/repeater_form.kid
new file mode 100644
index 0000000..606b30a
--- /dev/null
+++ b/funcweb/funcweb/templates/repeater_form.kid
@@ -0,0 +1,30 @@
+<div class="expanding_form" xmlns:py="http://purl.org/kid/ns#">
+<table id="${field_id}">
+<thead><tr>
+ <th py:for="field in fields">
+ <span class="fieldlabel" py:content="field.label" />
+ </th>
+ </tr></thead>
+ <tbody>
+ <tr py:for="repetition in repetitions"
+ class="${field_class}"
+ id="${field_id}_${repetition}">
+
+ <td py:for="field in fields">
+ <span py:content="field.display(value_for(field),
+ **params_for(field))" />
+ <span py:if="error_for(field)" class="fielderror"
+ py:content="error_for(field)" />
+ <span py:if="field.help_text" class="fieldhelp"
+ py:content="field_help_text" />
+ </td>
+ <td>
+ <a
+ href="javascript:ExpandingForm.removeItem('${field_id}_${repetition}')">Remove (-)</a>
+ </td>
+
+ </tr>
+ </tbody>
+</table>
+<a id="doclink" href="javascript:ExpandingForm.addItem('${field_id}');">Add ( + )</a>
+</div>