~zyga/+junk/lava-data-store

« back to all changes in this revision

Viewing changes to lava_data_store/templates/lava_data_store/release_form.html

  • Committer: Zygmunt Krynicki
  • Date: 2011-09-09 15:00:47 UTC
  • Revision ID: zygmunt.krynicki@linaro.org-20110909150047-4xtn61hq2lefqrch
Add ability to update releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% extends "layouts/content.html" %}
 
2
 
 
3
 
 
4
{% block content %}
 
5
<form method="post" action="">
 
6
  <table>
 
7
    {% csrf_token %}
 
8
    {% for field in form %}
 
9
    <tr>
 
10
      <td>{{ field.label_tag }}</td><td>{{ field }}</td>
 
11
    </tr>
 
12
    {% if field.errors %}
 
13
    <tr>
 
14
      <td colspan="2">{{ field.errors }}</td>
 
15
    </tr>
 
16
    {% endif %}
 
17
    {% if field.help_text %}
 
18
    <tr>
 
19
      <td colspan="2"><em>{{ field.help_text }}</em></td>
 
20
    </tr>
 
21
    {% endif %}
 
22
    {% endfor %}
 
23
  </table>
 
24
  <input type="submit" value="{{ submit_text }}"/>
 
25
  <script type="text/javascript">
 
26
    $(function() {
 
27
      $("#id_expected_date" ).datepicker({
 
28
        dateFormat: 'yy-mm-dd'
 
29
      });
 
30
    });
 
31
  </script>
 
32
</form>
 
33
{% endblock %}