Commit 8f0e0f7f authored by Jérome Perrin's avatar Jérome Perrin

backport a Formulator change to display field descriptions in the ZMI


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28650 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5257d1f1
...@@ -15,7 +15,7 @@ Edit <dtml-var meta_type> properties here. ...@@ -15,7 +15,7 @@ Edit <dtml-var meta_type> properties here.
<dtml-if fields> <dtml-if fields>
<tr> <tr>
<td colspan="3" class="form-title"> <td colspan="4" class="form-title">
<dtml-var "_.string.capitalize(group)"> properties <dtml-var "_.string.capitalize(group)"> properties
</td> </td>
</tr> </tr>
...@@ -37,9 +37,12 @@ Edit <dtml-var meta_type> properties here. ...@@ -37,9 +37,12 @@ Edit <dtml-var meta_type> properties here.
<td align="left" valign="top"> <td align="left" valign="top">
<dtml-var "field.render(value)"> <dtml-var "field.render(value)">
</td> </td>
<td><div class="form-element"> <td valign="top" ><div class="form-element">
<dtml-var "field.meta_type"> <dtml-var "field.meta_type">
</div></td> </div></td>
<td align="left" valign="top"><div class="form-element">
<dtml-var "field.get_value('description')">
</div></td>
</tr> </tr>
</dtml-let> </dtml-let>
</dtml-in> </dtml-in>
......
...@@ -14,4 +14,11 @@ ...@@ -14,4 +14,11 @@
Field Field
</div> </div>
</td> </td>
<dtml-if "_['URL'].find('manage_main')>-1">
<td align="left" valign="top">
<div class="form-label">
Description
</div>
</td>
</dtml-if>
</tr> </tr>
\ No newline at end of file
...@@ -33,7 +33,7 @@ Edit <dtml-var meta_type> method overrides here. ...@@ -33,7 +33,7 @@ Edit <dtml-var meta_type> method overrides here.
<td align="left" valign="top"> <td align="left" valign="top">
<dtml-var "field.render(value)"> <dtml-var "field.render(value)">
</td> </td>
<td><div class="form-element"> <td valign="top"><div class="form-element">
<dtml-var "current_field.form.get_field(field.id).meta_type"> <dtml-var "current_field.form.get_field(field.id).meta_type">
</div></td> </div></td>
</tr> </tr>
......
...@@ -39,7 +39,7 @@ This tab can therefore not be used. ...@@ -39,7 +39,7 @@ This tab can therefore not be used.
<td align="left" valign="top"> <td align="left" valign="top">
<dtml-var "field.render(value)"> <dtml-var "field.render(value)">
</td> </td>
<td><div class="form-element"> <td valign="top"><div class="form-element">
<dtml-var "current_field.form.get_field(field.id).meta_type"> <dtml-var "current_field.form.get_field(field.id).meta_type">
</div></td> </div></td>
</tr> </tr>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment