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