myles/django-contacts

View on GitHub
contacts/templates/contacts/company/update.html

Summary

Maintainability
Test Coverage
{% extends "contacts/company/base.html" %}
{% load i18n %}

{% block title %}{{ block.super }}: Edit {{ object.name }}{% endblock %}

{% block content_title %}
    <h2>{% trans "Edit" %} {{ object.name }}</h2>
{% endblock %}

{% block content %}
    <form action="." method="post" accept-charset="utf-8">
        {% csrf_token %}
        <p>{{ form.name }}</p>

        {% include "contacts/_phone_number_form.html" %}
        {% include "contacts/_email_address_form.html" %}
        {% include "contacts/_instant_messenger_form.html" %}
        {% include "contacts/_web_site_form.html" %}
        {% include "contacts/_street_address_form.html" %}
        {% include "contacts/_special_date_form.html" %}

        <p><input type="submit" value="{% trans "Save" %}"></p>
    </form>
{% endblock %}