changeset 80:06cf88d1e445

Cleanup HTML and make it W3C valid.
author Daniele Nicolodi <daniele@grinta.net>
date Sun, 21 Aug 2011 16:01:01 +0200
parents 18820d874f33
children 4bc420e70b51
files src/ltpdarepo/templates/database.html src/ltpdarepo/templates/databases/drop.html src/ltpdarepo/templates/databases/permissions.html src/ltpdarepo/templates/layout.html src/ltpdarepo/templates/login.html src/ltpdarepo/templates/query.html src/ltpdarepo/templates/timerange.html src/ltpdarepo/templates/users/drop.html
diffstat 8 files changed, 25 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
--- a/src/ltpdarepo/templates/database.html	Sun Aug 21 15:46:46 2011 +0200
+++ b/src/ltpdarepo/templates/database.html	Sun Aug 21 16:01:01 2011 +0200
@@ -12,8 +12,8 @@
 <h2>Quick search</h2>
 <p class="discrete">Search objects by name:</p>
 <form method="GET" action="{{ url_for('browse.search', database=database.id) }}" class="search">
-  <input type="text" name="q"></input>
-  <input type="submit" value="search"></input>
+  <input type="text" name="q" />
+  <input type="submit" value="search" />
 </form>
 {% if queries %}
 <h2>Named queries</h2>
--- a/src/ltpdarepo/templates/databases/drop.html	Sun Aug 21 15:46:46 2011 +0200
+++ b/src/ltpdarepo/templates/databases/drop.html	Sun Aug 21 16:01:01 2011 +0200
@@ -10,8 +10,8 @@
 <form action="" method="post" enctype="multipart/form-data" >
   <fieldset>
     {% for field in form %}{{ forms.render_form_field(field) }}{% endfor %}
-    <input id="ok" name="ok" type="submit" value="ok"></input>
-    <input id="cancel" name="cancel" type="submit" value="cancel"></input>
+    <input id="ok" name="ok" type="submit" value="ok" />
+    <input id="cancel" name="cancel" type="submit" value="cancel" />
   </fieldset>
 </form>
 {% endblock %}
--- a/src/ltpdarepo/templates/databases/permissions.html	Sun Aug 21 15:46:46 2011 +0200
+++ b/src/ltpdarepo/templates/databases/permissions.html	Sun Aug 21 16:01:01 2011 +0200
@@ -14,15 +14,15 @@
     <tr>
       <td>
         <a href="{{ url_for('manage.users.view', username=user) }}">{{ user }}</a>
-        <input type="hidden" name="{{ user }}" value=""></input>
+        <input type="hidden" name="{{ user }}" value="" />
       </td>
-      <td><input type="checkbox" name="{{user}}:select" value="Y" {% if priv['select'] %} checked="checked" {% endif %}></td>
-      <td><input type="checkbox" name="{{user}}:insert" value="Y" {% if priv['insert'] %} checked="checked" {% endif %}></td>
-      <td><input type="checkbox" name="{{user}}:update" value="Y" {% if priv['update'] %} checked="checked" {% endif %}></td>
-      <td><input type="checkbox" name="{{user}}:delete" value="Y" {% if priv['delete'] %} checked="checked" {% endif %}></td>
+      <td><input type="checkbox" name="{{user}}:select" value="Y" {%- if priv['select'] %} checked="checked" {% endif -%} /></td>
+      <td><input type="checkbox" name="{{user}}:insert" value="Y" {%- if priv['insert'] %} checked="checked" {% endif -%} /></td>
+      <td><input type="checkbox" name="{{user}}:update" value="Y" {%- if priv['update'] %} checked="checked" {% endif -%} /></td>
+      <td><input type="checkbox" name="{{user}}:delete" value="Y" {%- if priv['delete'] %} checked="checked" {% endif -%} /></td>
     </tr>
     {% endfor %}
   </table>
-  <input id="submit" type="submit" value="save"></intput>
+  <input id="submit" type="submit" value="save" />
 </form>
 {% endblock %}
--- a/src/ltpdarepo/templates/layout.html	Sun Aug 21 15:46:46 2011 +0200
+++ b/src/ltpdarepo/templates/layout.html	Sun Aug 21 16:01:01 2011 +0200
@@ -4,8 +4,8 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
     <title>{% block title %} {% endblock %} &mdash; LTPDA Repository</title>
-    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}"></link>
-    {%- block head %}{% endblock %}
+    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}" />
+    {%- block head %}{% endblock -%}
   </head>
   <body>
 
@@ -29,7 +29,7 @@
       <div class="clear">&nbsp;</div>
       
       {% for category, message in get_flashed_messages(True) %}
-      <div class="flash {{ category }}">{{ message }}</div>
+      <div class="flash {{ category }}">{{ message|safe }}</div>
       {% endfor %}
       
       {% block body %}{% endblock %}
@@ -38,7 +38,7 @@
     </div>
     
     <div class="footer">
-      <hr></hr>
+      <hr/>
       <p>Version: {{ g.version }}</p>
       <p>Database schema: {{ g.schema }}</p>
     </div>
--- a/src/ltpdarepo/templates/login.html	Sun Aug 21 15:46:46 2011 +0200
+++ b/src/ltpdarepo/templates/login.html	Sun Aug 21 16:01:01 2011 +0200
@@ -13,7 +13,7 @@
       <div class="widget"><input id="password" name="password" type="password" value="" /></div>
     </div>
     <div class="field">
-      <div class="widget"><input id="login" name="login" type="submit" value="Login"></input></div>
+      <div class="widget"><input id="login" name="login" type="submit" value="Login" /></div>
     </div>  
   </fieldset>
 </form>
--- a/src/ltpdarepo/templates/query.html	Sun Aug 21 15:46:46 2011 +0200
+++ b/src/ltpdarepo/templates/query.html	Sun Aug 21 16:01:01 2011 +0200
@@ -1,7 +1,7 @@
 {% extends "objs.html" %}
 
 {% block head %}
-    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='dropdown.css') }}"></link>
+    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='dropdown.css') }}" />
     <script type="text/javascript" src="{{ url_for('static', filename='jquery.js') }}"></script>
     <script type="text/javascript" src="{{ url_for('static', filename='dropdown.js') }}"></script>
     <script type="text/javascript" src="{{ url_for('static', filename='querywidget.js') }}"></script>
@@ -39,7 +39,7 @@
       {% for field, op, value in query %}
       <div class="criteria wrapper">
         <span class="querywidget field">{{ criteria[field]['name'] }}</span>
-        <input type="hidden" name="field" value="{{ field }}"></input>
+        <input type="hidden" name="field" value="{{ field }}" />
         <select class="querywidget operator" name="operator">
           {% for name in criteria[field]['operators'] %}
           {% if op == name %}
@@ -60,9 +60,9 @@
           {% endfor %}
         </select>
         {% else %}
-        <input class="querywidget value" autocomplete="off" type="text" name="value" value="{{ value }}"></input>
+        <input class="querywidget value" autocomplete="off" type="text" name="value" value="{{ value }}" />
         {% endif %}
-        <input class="querywidget remove" type="button" name="remove" value="&times;"></input>
+        <input class="querywidget remove" type="button" name="remove" value="&times;" />
       </div>
       {% endfor %}
     </div>
@@ -74,10 +74,10 @@
       {% endfor %}
     </select>
 
-    <input type="submit" value="search"></input>
+    <input type="submit" value="search" />
 
     {% if 'admin' in g.identity.roles %}
-    <input id="save" type="submit" name="save" value="save query"></input>
+    <input id="save" type="submit" name="save" value="save query" />
     {% endif %}
 
   </form>
--- a/src/ltpdarepo/templates/timerange.html	Sun Aug 21 15:46:46 2011 +0200
+++ b/src/ltpdarepo/templates/timerange.html	Sun Aug 21 16:01:01 2011 +0200
@@ -2,9 +2,9 @@
 {% block extra %}
     <div id="criteria" class="wrapper">
       <div class="criteria wrapper">
-        <input class="timespan-lo" type="text" name="from" value="{{ lo|default('', True) }}" autocomplete="off" placeholder="FROM"></input>
+        <input class="timespan-lo" type="text" name="from" value="{{ lo|default('', True) }}" autocomplete="off" placeholder="FROM" />
         <span class="timespan-label">&#x2264; TIME &#x2264;</span>
-        <input class="timespan-hi" type="text" name="to" value="{{ hi|default('', True) }}" autocomplete="off" placeholder="TO"></input>
+        <input class="timespan-hi" type="text" name="to" value="{{ hi|default('', True) }}" autocomplete="off" placeholder="TO" />
       </div>
     </div>
 {% endblock %}
--- a/src/ltpdarepo/templates/users/drop.html	Sun Aug 21 15:46:46 2011 +0200
+++ b/src/ltpdarepo/templates/users/drop.html	Sun Aug 21 16:01:01 2011 +0200
@@ -10,8 +10,8 @@
     {% for field in form %}
     {{ forms.render_form_field(field) }}
     {% endfor %}
-    <input id="ok" name="ok" type="submit" value="ok"></input>
-    <input id="cancel" name="cancel" type="submit" value="cancel"></input>
+    <input id="ok" name="ok" type="submit" value="ok" />
+    <input id="cancel" name="cancel" type="submit" value="cancel" />
   </fieldset>
 </form>
 {% endblock %}