[silva.infrae.contact][Emiliano D'Alterio] Changed wrapper name ...
[email protected] Wed, 16 Oct 2013 16:29:57 +0200
| Newsgroups | gmane.comp.web.zope.silva.cvs |
|---|---|
| Message-ID | <[email protected]> |
author: Emiliano D'Alterio
date: Wed Oct 16 16:29:48 2013 +0200
revision: 8:1fa61bea7977 in silva.infrae.contact
branch:
details: https://hg.infrae.com/silva.infrae.contact?cmd=changeset;node=1fa61bea7977
modified: src/silva/infrae/contact/contactform_templates/contactformtemplate.cpt src/silva/infrae/contact/static/contactform.css src/silva/infrae/contact/static/contactform.js
added:
removed:
log: Changed wrapper name in template, js and css.
diffstat:
src/silva/infrae/contact/contactform_templates/contactformtemplate.cpt | 6 ++--
src/silva/infrae/contact/static/contactform.css | 14 +++++-----
src/silva/infrae/contact/static/contactform.js | 2 +-
3 files changed, 11 insertions(+), 11 deletions(-)
diffs (81 lines):
diff -r 73ab58f76634 -r 1fa61bea7977 src/silva/infrae/contact/contactform_templates/contactformtemplate.cpt
--- a/src/silva/infrae/contact/contactform_templates/contactformtemplate.cpt Tue Oct 15 18:51:57 2013 +0200
+++ b/src/silva/infrae/contact/contactform_templates/contactformtemplate.cpt Wed Oct 16 16:29:48 2013 +0200
@@ -1,5 +1,5 @@
-<div id="contactus-wrapper">
-<form action="#" tal:attributes="action python:'%s#contactus-wrapper' % (request.URL);
+<div id="contactusform">
+<form action="#" tal:attributes="action python:'%s#contactusform' % (request.URL);
name form.prefix or None;
id form.prefix or None"
method="post"
@@ -18,7 +18,7 @@
<p class="form-status">
<a tal:condition="form.expired"
- tal:attributes="href python:'%s#contactus-wrapper' % (form.refresh_url)">Refresh page.
+ tal:attributes="href python:'%s#contactusform' % (form.refresh_url)">Refresh page.
</a>
</p>
diff -r 73ab58f76634 -r 1fa61bea7977 src/silva/infrae/contact/static/contactform.css
--- a/src/silva/infrae/contact/static/contactform.css Tue Oct 15 18:51:57 2013 +0200
+++ b/src/silva/infrae/contact/static/contactform.css Wed Oct 16 16:29:48 2013 +0200
@@ -1,4 +1,4 @@
-#contactus-wrapper {
+#contactusform {
width: 280px;
color: #fff;
background: #222;
@@ -15,24 +15,24 @@
border-radius: 3px;
}
-#contactus-wrapper .field {
+#contactusform .field {
width: 95%;
margin: 5px;
}
-#contactus-wrapper textarea {
+#contactusform textarea {
border: 1px solid #888;
resize: vertical;
}
-#contactus-wrapper h3 {
+#contactusform h3 {
margin: 0.4em 0 0 0.5em;
color: #fff;
font-size: 1.2em;
line-height: inherit;
}
-#contactus-wrapper .actions {
+#contactusform .actions {
margin: 1em 0.65em;
}
@@ -40,8 +40,8 @@
width: 40%;
}
-#contactus-wrapper .form-status,
-#contactus-wrapper .form-error {
+#contactusform .form-status,
+#contactusform .form-error {
margin: 0 0.65em;
}
diff -r 73ab58f76634 -r 1fa61bea7977 src/silva/infrae/contact/static/contactform.js
--- a/src/silva/infrae/contact/static/contactform.js Tue Oct 15 18:51:57 2013 +0200
+++ b/src/silva/infrae/contact/static/contactform.js Wed Oct 16 16:29:48 2013 +0200
@@ -11,7 +11,7 @@
if(placeholder_support === false){
var placeholder = '';
var value = '';
- $('#contactus-wrapper input, #contactus-wrapper textarea').each(function(){
+ $('#contactusform input, #contactusform textarea').each(function(){
placeholder = $(this).attr('placeholder');
$(this).css('color', '#888');
$(this).attr('value', placeholder);