From 83bc2765173829d42b85d25fc30b59f8b970b99c Mon Sep 17 00:00:00 2001 From: nac26 Date: Wed, 8 Dec 2010 17:23:52 +0000 Subject: [PATCH] Missed identity.ftl for vivo-basic in r1815 and updated css for custom forms to avoid descendent selectors that make assumptions about markup defined in the theme --- productMods/edit/forms/css/customForm.css | 40 +++++++++---------- .../forms/css/customFormWithAutocomplete.css | 4 +- themes/vivo-basic/templates/identity.ftl | 33 +++++++++++++++ 3 files changed, 55 insertions(+), 22 deletions(-) create mode 100644 themes/vivo-basic/templates/identity.ftl diff --git a/productMods/edit/forms/css/customForm.css b/productMods/edit/forms/css/customForm.css index 2ecd9b87..42008779 100644 --- a/productMods/edit/forms/css/customForm.css +++ b/productMods/edit/forms/css/customForm.css @@ -1,14 +1,14 @@ /* $This file is distributed under the terms of the license in /doc/license.txt$ */ -#content form div { +form.customForm div { clear: left; } -#content form h6 { +form.customForm h6 { font-size: 110%; } -#content form div.addNewLink { +form.customForm div.addNewLink { float: left; clear: none; margin-left: 5em; @@ -19,12 +19,12 @@ display: none; /* Hide if Javascript disabled. Javascript will show. */ } -#content form .existing span.requiredHint, -#content form .new span.requiredHint { +form.customForm .existing span.requiredHint, +form.customForm .new span.requiredHint { display: none; /* Hide if Javascript disabled. Javascript will show. */ } -#content form .existing { +form.customForm .existing { float: left; clear: none; } @@ -41,19 +41,19 @@ } -/* #content form p.inline span,*/ -#content form p.inline input, -#content form p.inline label { + +form.customForm p.inline input, +form.customForm p.inline label { float: left; clear: left; } -#content form p.inline.year input { +form.customForm p.inline.year input { margin-top: -1.75em; } /* -#content form p.inline.year span.hint { +#form.customForm p.inline.year span.hint { margin-right: 38.5em; margin-top: -2.4em; } @@ -61,7 +61,7 @@ input, select, -#content form p { +form.customForm p { margin-bottom: 1em; } @@ -69,38 +69,38 @@ option { padding: 0 2px; } -#content form .hint { +form.customForm .hint { color: #9c9c9c; font-weight: normal; } -#content form .requiredHint { +form.customForm .requiredHint { color: #f00; font-weight: normal; } -#content form #requiredLegend { +form.customForm #requiredLegend { font-style: italic; } -#content form p.validationError { +form.customForm p.validationError { clear: both; margin-bottom: 1.25em; } -#content form a.close { +form.customForm a.close { float: right; margin-right: 1em; font-size: 90%; } -#content form a.close:link, -#content form a.close:visited { +form.customForm a.close:link, +form.customForm a.close:visited { border-color: #FF7700; color: #FF7700; } -#content form textarea { +form.customForm textarea { width: 30%; } diff --git a/productMods/edit/forms/css/customFormWithAutocomplete.css b/productMods/edit/forms/css/customFormWithAutocomplete.css index 2916ab70..b8c44c9b 100644 --- a/productMods/edit/forms/css/customFormWithAutocomplete.css +++ b/productMods/edit/forms/css/customFormWithAutocomplete.css @@ -11,7 +11,7 @@ display: none; } -#content form p.inline label { +form.customForm p.inline label { display: inline; clear: none; float: none; @@ -22,7 +22,7 @@ margin-left: .5em; } -#content form h4 { +form.customForm h4 { margin-top: 1em; margin-bottom: .75em; } diff --git a/themes/vivo-basic/templates/identity.ftl b/themes/vivo-basic/templates/identity.ftl new file mode 100644 index 00000000..82feddfc --- /dev/null +++ b/themes/vivo-basic/templates/identity.ftl @@ -0,0 +1,33 @@ +<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> + +<#import "lib-list.ftl" as l> + +
+