{% extends "base.html" %}
{% load i18n %}
{% load staticfiles %}


{% block title %}{% trans "Weight entry" %}{% endblock %}


{% block header %}
<script src="{% static "js/jquery-ui.js" %}"></script>
<script>
	$(function() {
		$( "#id_creation_date" ).datepicker({ dateFormat: "dd.mm.yy" });
	});
</script>
{% endblock %} 


<!--
        Main Content
-->
{% block content %}

<h2>{% trans "Weight entry" %}</h2>


<form action="/weight/add/{% if weight.id %}{{ weigth.id }}{% endif %}"
      method="post"
      class="ym-form">
{% csrf_token %}
{{ weight_form.non_field_errors }}
<table>
    {% include "form_snippet.html" with field=weight_form.weight %}
    {% include "form_snippet.html" with field=weight_form.creation_date %}
    <tr>
        <td><input type="submit" value="{% trans "Save" %}" /></td>
        <td></td>
    </tr>
</table>
</form>


{% endblock %}


<!--
        Side bar
-->
{% block sidebar %}{% endblock %}
{% extends "base.html" %}
{% load i18n %}
{% load staticfiles %}


{% block title %}{% trans "Weight entry" %}{% endblock %}


{% block header %}
<script src="{% static "js/jquery-ui.js" %}"></script>
<script>
    $(function() {
        $( "#id_creation_date" ).datepicker({ dateFormat: "dd.mm.yy" });
    });
</script>
{% endblock %} 


<!--
        Main Content
-->
{% block content %}

<h2>{% trans "Weight entry" %}</h2>


<form action="/weight/add/{% if weight.id %}{{ weigth.id }}{% endif %}"
      method="post"
      class="ym-form">
{% csrf_token %}
{{ weight_form.non_field_errors }}
<table>
    {% include "form_snippet.html" with field=weight_form.weight %}
    {% include "form_snippet.html" with field=weight_form.creation_date %}
    <tr>
        <td><input type="submit" value="{% trans "Save" %}" /></td>
        <td></td>
    </tr>
</table>
</form>


{% endblock %}


<!--
        Side bar
-->
{% block sidebar %}{% endblock %}
Indent with spaces, not tabs
Indent with spaces, not tabs
