{% import '_macros.html' as macros %} {% if newrel_form.rtype.choices %} {# There is at least a relationship type defined #} {% if person %}

{{ _("Relationships for %(name)s", name=person.name) }}

{{ _("With") }}
{{ _("Type") }}
{{ _("Dotted") }}
{% include "edit/add_rel.html" %} {% for rel in relationships %} {% include "edit/edit_rel.html" %} {% endfor %}
{% else %}

{{ _("New relationship") }}

{% include "edit/new_rel.html" %} {% endif %} {% else %} {# There is no relationship type defined #}
{{ _("No relationship type has been configured yet.") }} {% if current_user.has_perm(graph, 'admin') %} {% autoescape false %} {{ _("Start by adding one on the admin page.", href='href="%s"' % url_for('admin', graph_id=graph.id)) }} {% endautoescape %} {% else %} {{ _("Ask the graph admin to add some.") }} {% endif %}
{% endif %}