{% extends "layout.html" %}
{% block content_header %}
    {{ build_breadcrumbs(current_breadcrumbs + [
        { 'name': resource.firstname + ' ' + resource.lastname, 'link': url_for('.ManagePhonebookView:get', id=resource.id, phonebook_uuid=resource.phonebook_uuid) , 'icon': 'users' }
    ]) }}
{% endblock %}
{% block content %}
    {% call build_section_row() %}
        {% call build_form_box(_('Contact'), resource.firstname + ' ' + resource.lastname, 'book') %}
            {% call build_form(action=url_for('.ManagePhonebookView:put', id=resource.id, phonebook_uuid=resource.phonebook_uuid)) %}
                {% call add_default_fields(form=form, submit_value=_('Update')) %}
                    {{ render_field(form.phonebook_uuid) }}
                    {{ render_field(form.firstname) }}
                    {{ render_field(form.lastname) }}
                    {{ render_field(form.email) }}
                    {{ render_field(form.phone) }}
                    {{ render_field(form.mobile_phone) }}
                    {{ render_field(form.fax) }}
                {% endcall %}
            {% endcall %}
        {% endcall %}
    {% endcall %}
{% endblock %}
