diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 282: Use form layout in projects app

Message ID 20111109192616.3833.74468.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Zygmunt Krynicki Nov. 9, 2011, 7:26 p.m. UTC
------------------------------------------------------------
revno: 282
committer: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
branch nick: lava-server
timestamp: Wed 2011-11-09 00:54:43 +0100
message:
  Use form layout in projects app
modified:
  lava_projects/templates/lava_projects/_project_form.html


--
lp:lava-server
https://code.launchpad.net/~linaro-validation/lava-server/trunk

You are subscribed to branch lp:lava-server.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-server/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_projects/templates/lava_projects/_project_form.html'
--- lava_projects/templates/lava_projects/_project_form.html	2011-09-24 19:18:28 +0000
+++ lava_projects/templates/lava_projects/_project_form.html	2011-11-08 23:54:43 +0000
@@ -1,4 +1,4 @@ 
-{% extends "layouts/content.html" %}
+{% extends "layouts/form.html" %}
 
 
 {% block extrahead %}
@@ -15,33 +15,5 @@ 
 <style type="text/css">
   iframe { border: 1px dotted #333; }
 </style>
-<form method="post" action="">
-  {% block form_header %}
-  {% endblock %}
-  {% csrf_token %}
-  <table class="form_helper">
-    {% for field in form %}
-    {% block form_field %}
-    <tr>
-      <th><label for="{{ field.id_for_label }}">{{ field.label }}</label></th>
-      <td>
-        {% if field.errors %}
-        <div class="ui-state-error">
-          {{ field.errors }}
-          {{ field }}
-        </div>
-        {% else %}
-        {{ field }}
-        {% endif %}
-        <p class='help_text'>{{ field.help_text }}</p>
-      </td>
-    </tr>
-    {% endblock %}
-    {% endfor %}
-  </table>
-  {% block form_footer %}
-  <h2>Continue</h2>
-  <input type="submit" value="Save"/>
-  {% endblock %}
-</form>
+{{ block.super }}
 {% endblock %}