Commit 7810dd4a authored by Julien Muchembled's avatar Julien Muchembled

ZMI: small cosmetics changes to field settings

parent cecc1a98
......@@ -101,6 +101,7 @@ class ProxyWidget(Widget.Widget):
description= \
"ID of the master form.",
default="",
display_width=40,
required=1)
field_id = fields.StringField(
......@@ -109,12 +110,13 @@ class ProxyWidget(Widget.Widget):
description= \
"ID of the field in the master form.",
default="",
display_width=40,
required=1)
target = fields.HyperLinkField(
'target',
title='Proxy Target',
description="Link to the master field edit form",
description="Link to the master field edit form.",
default='Click to edit the target',
href='manage_edit_target',
required=0)
......
<style>form td:not(:last-child) { padding-right: 1em; }</style>
<dtml-var manage_page_header>
<dtml-let help_product="'Formulator'" help_topic=meta_type>
<dtml-var manage_tabs>
......@@ -42,6 +43,9 @@ Surcharge <dtml-var meta_type> properties here.
<td><div class="form-element">
<dtml-var "field.meta_type">
</div></td>
<td><div class="form-element">
<dtml-var "field.get_value('description')">
</div></td>
</tr>
</dtml-let>
</dtml-in>
......@@ -50,7 +54,8 @@ Surcharge <dtml-var meta_type> properties here.
</dtml-let>
</dtml-in>
</table>
<table cellspacing="0" cellpadding="2" border="0">
<!-- Then, display Template Field properties -->
<dtml-if "current_field is not None">
......@@ -123,19 +128,13 @@ Surcharge <dtml-var meta_type> properties here.
</dtml-let>
</dtml-if>
</dtml-let>
</table>
<tr>
<td align="left" valign="top">
<div class="form-element">
<input class="form-element" type="submit" name="submit"
value="Save Changes" />
</div>
</td>
</tr>
</table>
</form>
<script type="text/javascript">
......
......@@ -19,9 +19,11 @@
Field
</div>
</td>
<dtml-if "_['URL'].endswith(('/manage_main', '/manage_edit'))">
<td align="left" valign="top">
<div class="form-label">
Description
</div>
</td>
</dtml-if>
</tr>
<style>form td:not(:last-child) { padding-right: 1em; }</style>
<dtml-var manage_page_header>
<dtml-var manage_tabs>
......@@ -52,8 +53,8 @@ This tab can therefore not be used.
</dtml-let>
</dtml-in>
</table>
<table cellspacing="0" cellpadding="2" border="0">
<!-- XXX Loop until find not a proxy field -->
<dtml-let proxy_field="this()"
......@@ -125,18 +126,13 @@ This tab can therefore not be used.
</dtml-let>
</dtml-if>
</dtml-let>
</table>
<tr>
<td align="left" valign="top">
<div class="form-element">
<input class="form-element" type="submit" name="submit"
value="Save Changes" />
</div>
</td>
</tr>
</table>
</form>
<script type="text/javascript">
function isClass(object, className) {
......
<style>form td:not(:last-child) { padding-right: 1em; }</style>
<dtml-var manage_page_header>
<dtml-let help_product="'Formulator'" help_topic=meta_type>
<dtml-var manage_tabs>
......@@ -50,16 +51,13 @@ Edit <dtml-var meta_type> properties here.
</dtml-if>
</dtml-let>
</dtml-in>
</table>
<tr>
<td align="left" valign="top">
<div class="form-element">
<input class="form-element" type="submit" name="submit"
value="Save Changes" />
</div>
</td>
</tr>
</table>
</form>
<dtml-var manage_page_footer>
......
......@@ -14,7 +14,7 @@
Field
</div>
</td>
<dtml-if "_['URL'].find('manage_main')>-1">
<dtml-if "_['URL'].endswith(('/manage_main', '/manage_edit'))">
<td align="left" valign="top">
<div class="form-label">
Description
......
<style>form td:not(:last-child) { padding-right: 1em; }</style>
<dtml-var manage_page_header>
<dtml-var manage_tabs>
......@@ -49,16 +50,13 @@ This tab can therefore not be used.
</dtml-if>
</dtml-let>
</dtml-in>
</table>
<tr>
<td align="left" valign="top">
<div class="form-element">
<input class="form-element" type="submit" name="submit"
value="Save Changes" />
</div>
</td>
</tr>
</table>
</form>
<dtml-var manage_page_footer>
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