Délégation effective de la recherche à Solr.
[Plinn.git] / skins / generic / viewColorProperties.pt
1 <html metal:use-macro="here/main_template/macros/master">
2
3 <head>
4 <meta http-equiv="content-type" content="text/html;charset=UTF-8">
5 <title>color table</title>
6 </head>
7
8 <body metal:fill-slot="main"
9 tal:define="propsheet here/base_properties ;
10 propMap propsheet/propertyMap ;
11 strProps python:[ p for p in propMap if p['type'] == 'string' ] ;
12 colorProps python:[ p for p in strProps if p['id'].lower().find('color') >=0 or (p['default_value'].startswith('#') and p['default_value'][1:].isalnum() ) ]"
13 tal:omit-tag="">
14 <h1>Color table</h1>
15 <table border="1" cellspacing="2" cellpadding="0">
16 <tr tal:repeat="prop colorProps">
17 <th tal:content="prop/id">color name</th>
18 <td tal:content="prop/default_value">#fde</td>
19 <td bgcolor="#ddd" tal:attributes="style string:background : ${prop/default_value};;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
20 </tr>
21 </table>
22 </body>
23
24 </html>