Commit e87a38fe authored by Jérome Perrin's avatar Jérome Perrin

configurator: make ConfiguratorTool_view valid HTML

- use html5 doctype
- don't use i18n: tags where they are not processed
- use class instead of id for elements that are repeated
- remove Content-*-Type meta that are reported as invalid by nvu
parent 924823ec
...@@ -17,22 +17,20 @@ ...@@ -17,22 +17,20 @@
bc_default_image python: bc.getResourceValue().getDefaultImageValue(); bc_default_image python: bc.getResourceValue().getDefaultImageValue();
bc_default_image_absolute_url python: bc.getResourceValue().getDefaultImageAbsoluteUrl();"> bc_default_image_absolute_url python: bc.getResourceValue().getDefaultImageAbsoluteUrl();">
<td> <td>
<div tal:attributes="id python: 'business_configuration_%s' % bc_id; <div class="box" tal:attributes="id python: 'business_configuration_%s' % bc_id;">
class string:box;">
<span tal:attributes="id string:business-configuration-title" tal:content="bc_title" /> <span class="business-configuration-title" tal:content="bc_title" />
<img tal:condition="bc_default_image" <img tal:condition="bc_default_image"
tal:attributes="src python: '%s?format=png' % bc_default_image_absolute_url" /> tal:attributes="alt bc_title;
src python: '%s?format=png' % bc_default_image_absolute_url" />
<span tal:condition="bc_description" <span class="span-business-configuration-description"
tal:attributes="id string:span-business-configuration-description; tal:condition="bc_description"
title bc_description;" tal:attributes="title bc_description"
tal:content="bc_description" /> tal:content="bc_description" />
<button id="dialog-submit-button" <button tal:attributes="value python: bc.getRelativeUrl()"
accesskey="V"
tal:attributes="value python: bc.getRelativeUrl()"
type="submit" type="submit"
name="field_your_business_configuration">Configure</button> name="field_your_business_configuration">Configure</button>
</div> </div>
......
...@@ -93,11 +93,9 @@ ...@@ -93,11 +93,9 @@
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
<h2 i18n:translate=""\n <h2> Welcome to Configurator</h2>\n
i18n:domain="ui"> Welcome to Configurator</h2>\n
\n \n
<p i18n:translate=""\n <p> This tool will help you configure your fresh ERP5</p>
i18n:domain="ui"> This tool will help you configure your fresh ERP5</p>
]]></string> </value> ]]></string> </value>
</item> </item>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
overflow: hidden; /* Clear floats */ overflow: hidden; /* Clear floats */
} }
.box span#business-configuration-title, span#business-configuration-title:hover { .box span.business-configuration-title, span.business-configuration-title:hover {
display: block; display: block;
background-color: transparent; background-color: transparent;
width: 100%; width: 100%;
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
border: 2px solid #d4e8ec; border: 2px solid #d4e8ec;
} }
.box span#span-business-configuration-description { .box span.span-business-configuration-description {
background-color: transparent; background-color: transparent;
font-size: 10px; font-size: 10px;
float: left; float: left;
......
...@@ -10,7 +10,7 @@ IDEAS: ...@@ -10,7 +10,7 @@ IDEAS:
<tal:block metal:define-macro="master"> <tal:block metal:define-macro="master">
<tal:block> <tal:block>
<tal:block metal:use-macro="here/global_definitions/macros/header_definitions" /> <tal:block metal:use-macro="here/global_definitions/macros/header_definitions" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head> <head>
<base tal:attributes="href python: '%s/' % (url, )" /> <base tal:attributes="href python: '%s/' % (url, )" />
...@@ -21,8 +21,6 @@ IDEAS: ...@@ -21,8 +21,6 @@ IDEAS:
tal:attributes="content python:', '.join(here.getProperty('subject_list', []) or [])" /> tal:attributes="content python:', '.join(here.getProperty('subject_list', []) or [])" />
<meta name="robots" content="index, follow" /> <meta name="robots" content="index, follow" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title tal:define="title title | string:ERP5" <title tal:define="title title | string:ERP5"
tal:content="python: '%s | %s' % (title, here.getPortalObject().title_or_id())"></title> tal:content="python: '%s | %s' % (title, here.getPortalObject().title_or_id())"></title>
<tal:block tal:replace="nothing"> <tal:block tal:replace="nothing">
......
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