From 831330b6d037196a3048eb72236442f36060fdf8 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 8 Jan 2016 18:54:25 -0500 Subject: [PATCH] Moved Django templates out of gramps --- data/templates/404.html | 12 - data/templates/500.html | 12 - data/templates/admin/base_site.html | 21 -- data/templates/browse_page.html | 30 -- data/templates/detail_breadcrumb.html | 12 - data/templates/gramps-base.html | 399 --------------------- data/templates/main_page.html | 38 -- data/templates/paginator.html | 36 -- data/templates/pick.html | 51 --- data/templates/reference.html | 34 -- data/templates/registration/login.html | 39 -- data/templates/table_header.html | 5 - data/templates/user_page.html | 47 --- data/templates/view_citation_detail.html | 179 --------- data/templates/view_citations.html | 48 --- data/templates/view_event_detail.html | 137 ------- data/templates/view_events.html | 48 --- data/templates/view_families.html | 71 ---- data/templates/view_family_detail.html | 205 ----------- data/templates/view_media.html | 53 --- data/templates/view_media_detail.html | 110 ------ data/templates/view_name_detail.html | 148 -------- data/templates/view_note_detail.html | 117 ------ data/templates/view_notes.html | 53 --- data/templates/view_page.html | 28 -- data/templates/view_page_detail.html | 6 - data/templates/view_people.html | 68 ---- data/templates/view_person_detail.html | 175 --------- data/templates/view_place_detail.html | 148 -------- data/templates/view_places.html | 38 -- data/templates/view_report.html | 35 -- data/templates/view_report_detail.html | 51 --- data/templates/view_repositories.html | 42 --- data/templates/view_repository.html | 34 -- data/templates/view_repository_detail.html | 101 ------ data/templates/view_source_detail.html | 109 ------ data/templates/view_sources.html | 44 --- data/templates/view_surname_detail.html | 84 ----- data/templates/view_tag.html | 28 -- data/templates/view_tag_detail.html | 81 ----- data/templates/view_tags.html | 42 --- setup.py | 4 - 42 files changed, 3023 deletions(-) delete mode 100644 data/templates/404.html delete mode 100644 data/templates/500.html delete mode 100644 data/templates/admin/base_site.html delete mode 100644 data/templates/browse_page.html delete mode 100644 data/templates/detail_breadcrumb.html delete mode 100644 data/templates/gramps-base.html delete mode 100644 data/templates/main_page.html delete mode 100644 data/templates/paginator.html delete mode 100644 data/templates/pick.html delete mode 100644 data/templates/reference.html delete mode 100644 data/templates/registration/login.html delete mode 100644 data/templates/table_header.html delete mode 100644 data/templates/user_page.html delete mode 100644 data/templates/view_citation_detail.html delete mode 100644 data/templates/view_citations.html delete mode 100644 data/templates/view_event_detail.html delete mode 100644 data/templates/view_events.html delete mode 100644 data/templates/view_families.html delete mode 100644 data/templates/view_family_detail.html delete mode 100644 data/templates/view_media.html delete mode 100644 data/templates/view_media_detail.html delete mode 100644 data/templates/view_name_detail.html delete mode 100644 data/templates/view_note_detail.html delete mode 100644 data/templates/view_notes.html delete mode 100644 data/templates/view_page.html delete mode 100644 data/templates/view_page_detail.html delete mode 100644 data/templates/view_people.html delete mode 100644 data/templates/view_person_detail.html delete mode 100644 data/templates/view_place_detail.html delete mode 100644 data/templates/view_places.html delete mode 100644 data/templates/view_report.html delete mode 100644 data/templates/view_report_detail.html delete mode 100644 data/templates/view_repositories.html delete mode 100644 data/templates/view_repository.html delete mode 100644 data/templates/view_repository_detail.html delete mode 100644 data/templates/view_source_detail.html delete mode 100644 data/templates/view_sources.html delete mode 100644 data/templates/view_surname_detail.html delete mode 100644 data/templates/view_tag.html delete mode 100644 data/templates/view_tag_detail.html delete mode 100644 data/templates/view_tags.html diff --git a/data/templates/404.html b/data/templates/404.html deleted file mode 100644 index 9bf4293e7..000000000 --- a/data/templates/404.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n %} - -{% block title %}{% trans 'Page not found' %}{% endblock %} - -{% block content %} - -

{% trans 'Page not found' %}

- -

{% trans "We're sorry, but the requested page could not be found." %}

- -{% endblock %} diff --git a/data/templates/500.html b/data/templates/500.html deleted file mode 100644 index b30e43170..000000000 --- a/data/templates/500.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n %} - -{% block breadcrumbs %}{% endblock %} - -{% block title %}{% trans 'Server error (500)' %}{% endblock %} - -{% block content %} -

{% trans 'Server Error (500)' %}

-

{% trans "There's been an error. It's been reported to the site administrators via e-mail and should be fixed shortly. Thanks for your patience." %}

- -{% endblock %} diff --git a/data/templates/admin/base_site.html b/data/templates/admin/base_site.html deleted file mode 100644 index aae7ba20c..000000000 --- a/data/templates/admin/base_site.html +++ /dev/null @@ -1,21 +0,0 @@ -{% extends "admin/base.html" %} -{% load i18n %} - -{% block title %}{{ title }} | Adminstration{% endblock %} - -{% block branding %} -

Administration

-{% endblock %} - -{% block nav-global %} - {% if user.is_staff %} - - - Home - Administration home - New Users - All Users - {% endif %} -{% endblock %} diff --git a/data/templates/browse_page.html b/data/templates/browse_page.html deleted file mode 100644 index d48ff0eca..000000000 --- a/data/templates/browse_page.html +++ /dev/null @@ -1,30 +0,0 @@ -{% extends "gramps-base.html" %} -{% load my_tags %} - -{% block title %}{{sitename}}{% endblock %} -{% block heading %}{{sitename}}{% endblock %} - -{% block content %} - -

 

- -

-Database information:

- - - - - - -{% for view in views %} - - {% if view.2 %} - - - {% endif %} - -{% endfor %} -
ItemCount
{{view.0}}{{view.1|table_count}}
- -{% endblock %} - diff --git a/data/templates/detail_breadcrumb.html b/data/templates/detail_breadcrumb.html deleted file mode 100644 index 56132291a..000000000 --- a/data/templates/detail_breadcrumb.html +++ /dev/null @@ -1,12 +0,0 @@ -{% load my_tags %} -{% filter breadcrumb %} - {% format "/browse|Browse" %}|| - {% format "/%s/%s|%s" view args tviews %} - {% if object.gramps_id %} - || {% format "/%s/%s|%s [%s]" view object.handle tview object.gramps_id %} - {% else %} - {% if object.name %} - || {% format "/%s/%s|%s [%s]" view object.handle tview object.name %} - {% endif %} - {% endif %} -{% endfilter %} diff --git a/data/templates/gramps-base.html b/data/templates/gramps-base.html deleted file mode 100644 index e13d685ff..000000000 --- a/data/templates/gramps-base.html +++ /dev/null @@ -1,399 +0,0 @@ -{% load my_tags %} - - - - {% block title %}{{sitename}}{% endblock %} - {% block meta %} - - - - - {% endblock %} - - {% block css %} - - - - - - - - - {% endblock %} - - - - - - - - - - - -
- {% for message in messages %} - {{message}}
- {% endfor %} - {% if message %} -
- {{message}}
-
- {% endif %} - {% block content %} - {% endblock %} -
-
-
- - - - diff --git a/data/templates/main_page.html b/data/templates/main_page.html deleted file mode 100644 index 2e1daf6c9..000000000 --- a/data/templates/main_page.html +++ /dev/null @@ -1,38 +0,0 @@ -{% extends "gramps-base.html" %} -{% load my_tags %} - -{% block title %}{{sitename}}{% endblock %} -{% block heading %}{{sitename}}{% endblock %} - -{% block content %} - -

 

- -

Welcome to {{sitename}}, a new web-based collaboration tool. - -{% if user.is_authenticated %} - You are now logged in - as {{user.username}}. -{% endif %} -

- -

-Database information:

- - - - - - -{% for view in views %} - - {% if view.2 %} - - - {% endif %} - -{% endfor %} -
ItemCount
{{view.0}}{{view.1|table_count}}
- -{% endblock %} - diff --git a/data/templates/paginator.html b/data/templates/paginator.html deleted file mode 100644 index 5219b4822..000000000 --- a/data/templates/paginator.html +++ /dev/null @@ -1,36 +0,0 @@ - - diff --git a/data/templates/pick.html b/data/templates/pick.html deleted file mode 100644 index db3833316..000000000 --- a/data/templates/pick.html +++ /dev/null @@ -1,51 +0,0 @@ -{% extends "view_page_detail.html" %} -{% load my_tags %} - -{% block content %} - - - -
- -{% include "detail_breadcrumb.html" %} - -
- {% comment %} 4 cols {% endcomment %} - - {% if pickform.errors %} -
-

The following fields have errors. Please correct and try again.

-
{{pickform.errors}}
-
- {% endif %} -{% csrf_token %} - - -{% if user.is_authenticated %} - -{% else %} - -{% endif %} - - -
Pick:{{pickform.picklist}}
- -{% if user.is_superuser %} - {% make_button "Cancel" "/%s/%s" object_type object_handle args %} - - - - -{% else %} -{% endif %} - -{% endblock %} - diff --git a/data/templates/reference.html b/data/templates/reference.html deleted file mode 100644 index 182f98e78..000000000 --- a/data/templates/reference.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends "view_page_detail.html" %} -{% load my_tags %} - -{% block content %} - -
- -{% include "detail_breadcrumb.html" %} -

Temporary Reference Detail

-
- - - {% if form.errors %} -
-

The following fields have errors. Please correct and try again.

-
{{form.errors}}
-
- {% endif %} -
{% csrf_token %} - -{% for f in form.forms %} -
-{{f}} - -{% endfor %} - -
-
-
- -{% make_button "Go to reference" url %} -{% make_button "Go back" referenced_by %} -{% endblock %} - diff --git a/data/templates/registration/login.html b/data/templates/registration/login.html deleted file mode 100644 index 2269bd24b..000000000 --- a/data/templates/registration/login.html +++ /dev/null @@ -1,39 +0,0 @@ -{% extends "gramps-base.html" %} - -{% block title %}Gramps Connect - login {% endblock %} -{% block heading %}Gramps - login {% endblock %} - -{% block content %} -

User Login

-{% if form.errors %} -

Your username or password were not valid. Please try again.

-{% else %} -

Enter your login ID and password below.

-{% endif %} -
{% csrf_token %} - - - - - - - - - -
- - - {{form.username}} -
- - - {{form.password}} -
-{% if next %} - -{% else %} - -{% endif %} - -
-{% endblock %} diff --git a/data/templates/table_header.html b/data/templates/table_header.html deleted file mode 100644 index d3894883b..000000000 --- a/data/templates/table_header.html +++ /dev/null @@ -1,5 +0,0 @@ -{% for header in headers %} - {% if header.sortable %}{% endif %} - {{ header.text }} - {% if header.sortable %}{% endif %} -{% endfor %} diff --git a/data/templates/user_page.html b/data/templates/user_page.html deleted file mode 100644 index a5e75d694..000000000 --- a/data/templates/user_page.html +++ /dev/null @@ -1,47 +0,0 @@ -{% extends "gramps-base.html" %} -{% load my_tags %} - -{% block title %}{{sitename}} - user page {% endblock %} -{% block heading %}{{sitename}} - user page {% endblock %} - -{% block content %} - -

Details for {{user.first_name}} {{user.last_name}} ({{user.username}}):

- -

- - - - - - - - - - - - - - -
User name: {{user.username}}
Email: {{user.email}}
Type: - -{% if user.is_superuser %} - Administrator -{% else %} - User -{% endif %} - -
Last login: {{user.last_login}}
- -{% if user.is_superuser %} - {% make_button "Edit Profile" "/admin/grampsdb/profile/%s" user.id %} - {% make_button "Edit User" "/admin/auth/user/%s" user.id %} -{% else %} - User -{% endif %} - - -

- -{% endblock %} - diff --git a/data/templates/view_citation_detail.html b/data/templates/view_citation_detail.html deleted file mode 100644 index b0a571745..000000000 --- a/data/templates/view_citation_detail.html +++ /dev/null @@ -1,179 +0,0 @@ -{% extends "view_page_detail.html" %} -{% load my_tags %} - -{% block content %} - - - -
- -{% include "detail_breadcrumb.html" %} - - {% if citationform.errors or sourceform.errors %} -
-

The following fields have errors. Please correct and try again.

-
{{citationform.errors}}
-
{{sourceform.errors}}
-
- {% endif %} -
{% csrf_token %} - - -

Citation information

- -
- -
- - - - - - - - - - - - - - - - - - - - -
{{citationform.text.label}}: {% render citationform.text user action %}
{{citationform.gramps_id.label}}: {% render citationform.gramps_id user action %}{{citationform.private.label}}: {% render citationform.private user action %}
{{citationform.page.label}}: {% render citationform.page user action %}
{{citationform.confidence.label}}: {% render citationform.confidence user action %}
- -
-
- {% note_table citation user action "/note/$act/citation/%s" citation.handle %} -
-
- {% media_table citation user action "/media/$act/citation/%s" citation.handle %} -
-
- {% data_table citation user action "/data/$act/citation/%s" citation.handle %} -
-
- {% citation_reference_table citation user action %} -
-
- {% history_table citation user action %} -
-
- -

Note: Any changes in the shared citation information will be reflected - in the citation itself, for all items that reference the citation. -

- -
- -

Source information (shared)

-
- -
- - - - - - - - - - - - - - - - - - - - - - - - -
{{sourceform.title.label}}: {% render sourceform.title user action %}
{{sourceform.author.label}}: {% render sourceform.author user action %}
{{sourceform.gramps_id.label}}: {% render sourceform.gramps_id user action %}{{sourceform.private.label}}: {% render sourceform.private user action %}
{{sourceform.abbrev.label}}: {% render sourceform.abbrev user action %}
{{sourceform.pubinfo.label}}: {% render sourceform.pubinfo user action %}
- -
-
- {% note_table source user action "/note/$act/source/%s" source.handle %} -
-
- {% media_table source user action "/media/$act/source/%s" source.handle %} -
-
- {% repository_table source user action "/repository/$act/source/%s" source.handle %} -
-
- {% citation_reference_table source user action %} -
-
- {% history_table source user action %} -
-
- -

Note: Any changes in the shared source information will be reflected - in the source itself, for all items that reference the source. -

- -
- -{% if user.is_superuser %} - {% if action == "edit" %} - {% make_button "Cancel" "/citation/%s" citation.handle args %} - - - - - {% else %} - {% ifequal action "add" %} - {% make_button "Cancel" "/citation/" args %} - - - - - {% else %} -
- {% make_button "+Add Citation" "/citation/add" args %} - {% make_button "?Edit Citation" "/citation/%s/edit" citation.handle args %} - {% make_button "-Delete Citation" "/citation/%s/delete" citation.handle args %} -
- {% endifequal %} - {% endif %} -{% else %} -{% endif %} -
-{% endblock %} diff --git a/data/templates/view_citations.html b/data/templates/view_citations.html deleted file mode 100644 index 5457b10c6..000000000 --- a/data/templates/view_citations.html +++ /dev/null @@ -1,48 +0,0 @@ -{% extends "view_page.html" %} -{% load my_tags %} - -{% block table_data %} - - - - - - - - - - - - - {% for source in page.object_list %} - - - - - - {% endif %} - - {% endfor %} - -
#IDTitlePub InfoAuthor
{{ forloop.counter|row_count:page }} - [{{source.gramps_id}}] - {% if user.is_authenticated or source.public %} - {{source.title|escape|nbsp}} - {{source.pubinfo|nbsp}} - {{source.author|nbsp}} - {% else %} -
- -{% endblock %} - -{% block admin_functions %} -{% if user.is_superuser %} -
- {% make_button "+Add Citation" "/citation/add" args %} -
-{% endif %} -{% endblock %} diff --git a/data/templates/view_event_detail.html b/data/templates/view_event_detail.html deleted file mode 100644 index 737094869..000000000 --- a/data/templates/view_event_detail.html +++ /dev/null @@ -1,137 +0,0 @@ -{% extends "view_page_detail.html" %} -{% load my_tags %} - -{% block content %} - - - -
- -{% include "detail_breadcrumb.html" %} - -
- - - {% if eventform.errors %} -
-

The following fields have errors. Please correct and try again.

-
{{eventform.errors}}
-
- {% endif %} -
{% csrf_token %} -
- - - - - - - - - - - - - - - - - - - - - -
{{eventform.event_type.label}}: {% render eventform.event_type user action %}{{eventform.text.label}}:{% render eventform.text user action %}
Description:{% render eventform.description user action %}
ID:{% render eventform.gramps_id user action %}
Place: -{% if action != "view" %} - -
-{% else %} - {{event.place}} -{% endif %} -
-{% render eventform.private user action %} -
-
-
- -{% if user.is_superuser %} - {% if action == "edit" %} - {% make_button "Cancel" "/event/%s" event.handle args %} - - - - - - {% else %} - {% ifequal action "add" %} - {% make_button "Cancel" "/event/" args %} - - - - - - {% else %} -
- {% make_button "+Add Event" "/event/add" args %} - {% make_button "?Edit Event" "/event/%s/edit" event.handle args %} - {% make_button "-Delete Event" "/event/%s/delete" event.handle args %} -
- {% endifequal %} - {% endif %} -{% else %} -{% endif %} - - - -
- -
- {% citation_table event user action "/citation/$act/event/%s" event.handle %} -
-
- {% note_table event user action "/note/$act/event/%s" event.handle %} -
-
- {% media_table event user action "/media/$act/event/%s" event.handle %} -
-
- {% attribute_table event user action "/attribute/$act/event/%s" event.handle %} -
-
- {% event_reference_table event user action %} -
-
- {% history_table event user action %} -
-
- - -{% endblock %} - diff --git a/data/templates/view_events.html b/data/templates/view_events.html deleted file mode 100644 index cff0bf777..000000000 --- a/data/templates/view_events.html +++ /dev/null @@ -1,48 +0,0 @@ -{% extends "view_page.html" %} -{% load my_tags %} - -{% block table_data %} - - - - - - - - - - - - - - {% for event in page.object_list %} - - - - {% endfor %} - -
#IDEvent TypeDescriptionDatePlace
{{ forloop.counter|row_count:page }} - [{{event.gramps_id}}] - - {% if user.is_authenticated or event.public %} - {{event.event_type|nbsp}} - {{event.description|nbsp}} - {{event|date_as_text:user}} - {{event.place.title|nbsp}} - {% else %} - [Private] - [Private] - [Private] - [Private] - {% endif %} -
- -{% endblock %} - -{% block admin_functions %} -{% if user.is_superuser %} -
- {% make_button "+Add Event" "/event/add" args %} -
-{% endif %} -{% endblock %} diff --git a/data/templates/view_families.html b/data/templates/view_families.html deleted file mode 100644 index 1c9c4ab47..000000000 --- a/data/templates/view_families.html +++ /dev/null @@ -1,71 +0,0 @@ -{% extends "view_page.html" %} -{% load my_tags %} - -{% block table_data %} - - - - - - - - - - - - - {% for family in page.object_list %} - - - - {% endfor %} - -
#IDFatherMotherRelationship
{{ forloop.counter|row_count:page }}[{{family.gramps_id}}] - {{family.father|make_name:user|nbsp}} - {{family.mother|make_name:user|nbsp}} - {% if user.is_authenticated or family.public %} - {{family.family_rel_type|escape|nbsp}} - {% else %} - - {% if not family.public %} - [Private] - {% else %} - {{family.family_rel_type}} - {% endif %} - - {% endif %} -
- -{% endblock %} - -{% block admin_functions %} -{% if user.is_superuser %} -
- {% make_button "+Add Family" "/family/add" args %} -
-{% endif %} -{% endblock %} diff --git a/data/templates/view_family_detail.html b/data/templates/view_family_detail.html deleted file mode 100644 index 0fbf502cc..000000000 --- a/data/templates/view_family_detail.html +++ /dev/null @@ -1,205 +0,0 @@ -{% extends "view_page_detail.html" %} -{% load my_tags %} - -{% block content %} - - - -
- -{% include "detail_breadcrumb.html" %} - -

{{family.father|render_name:user}} and {{family.mother|render_name:user}}

- -
- {% comment %} 4 cols {% endcomment %} - - {% if familyform.errors %} -
-

The following fields have errors. Please correct and try again.

-
{{familyform.errors}}
-
- {% endif %} -{% csrf_token %} - - - - - - -{% if user.is_authenticated or father.probably_alive %} - -{% else %} - {{family.father|render_name:user}} -{% endif %} - - -{% if user.is_authenticated or family.mother.probably_alive %} - - -{% if user.is_authenticated or not familyform.father.probably_alive %} - - - - - - -{% else %} - - - - - - -{% endif %} - - - - - - - -
FatherMother
Name: -{% if action != "view" %} - -
-{% else %} - {{family.father|render_name:user}} -{% endif %} -
Name: -{% if action != "view" %} - -
-{% else %} - {{family.mother|render_name:user}} -{% endif %} -{% else %} - {{family.mother|render_name:user}} -{% endif %} -
Birth:{{familyform.father.birth|date_as_text:user}}Birth:{{familyform.mother.birth|date_as_text:user}}
Death:{{familyform.father.death|date_as_text:user}}Death:{{familyform.mother.death|date_as_text:user}}
Death:{{familyform.father.death|date_as_text:user}}Death:{{familyform.mother.death|date_as_text:user}}
- - - - - - - - - - - - - - - - - - -
Relationship information
{{familyform.gramps_id.label}}:{% render familyform.gramps_id user action %}{{familyform.family_rel_type.label}}:{% render familyform.family_rel_type user action %}
{{familyform.tags.label}}:{% render familyform.tags user action %}{{familyform.private.label}}:{% render familyform.private user action %}
-
-
- -{% if user.is_superuser %} - {% if action == "edit" %} - {% make_button "Cancel" "/family/%s" family.handle args %} - - - - - - - {% else %} - {% ifequal action "add" %} - {% make_button "Cancel" "/family/" args %} - - - - - - - {% else %} -
- {% make_button "+Add Family" "/family/add" args %} - {% make_button "?Edit Family" "/family/%s/edit" family.handle args %} - {% make_button "-Delete Family" "/family/%s/delete" family.handle args %} -
- {% endifequal %} - {% endif %} -{% else %} -{% endif %} - - - -
- -
- - {% children_table family user action "/person/$act/family/%s" family.handle %} -
-
- {% event_table family user action "/event/$act/family/%s" family.handle %} -
-
- {% citation_table family user action "/citation/$act/family/%s" family.handle %} -
-
- {% attribute_table family user action "/attribute/add/family/%s" family.handle %} -
-
- {% note_table family user action "/note/$act/family/%s" family.handle %} -
-
- {% media_table family user action "/media/$act/family/%s" family.handle %} -
-
- {% lds_table family user action "/lds/add/family/%s" family.handle %} -
-
- {% history_table family user action %} -
-
- - -{% endblock %} - diff --git a/data/templates/view_media.html b/data/templates/view_media.html deleted file mode 100644 index f46ee4077..000000000 --- a/data/templates/view_media.html +++ /dev/null @@ -1,53 +0,0 @@ -{% extends "view_page.html" %} -{% load my_tags %} - -{% block table_data %} - - - - - - - - - - - {% for media in page.object_list %} - - - - - - {% endif %} - - {% endfor %} - -
#IDDescriptionFile
{{ forloop.counter|row_count:page }} - [{{media.gramps_id}}] - {% if user.is_authenticated or media.public %} - {{media.desc|escape}} - {{media.path|escape}} - {% else %} -
- -{% endblock %} - -{% block admin_functions %} -{% if user.is_superuser %} -
- {% make_button "+Add Media" "/media/add" args %} -
-{% endif %} -{% endblock %} diff --git a/data/templates/view_media_detail.html b/data/templates/view_media_detail.html deleted file mode 100644 index b83e53bd8..000000000 --- a/data/templates/view_media_detail.html +++ /dev/null @@ -1,110 +0,0 @@ -{% extends "view_page_detail.html" %} -{% load my_tags %} - -{% block content %} - - - -
- -{% include "detail_breadcrumb.html" %} - - -
- - - {% if mediaform.errors %} -
-

The following fields have errors. Please correct and try again.

-
{{mediaform.errors}}
-
- {% endif %} -{% csrf_token %} - - - - - - - - - - - - - - - - - - - - - - - -
{{mediaform.desc.label}}:{% render mediaform.desc user action %}{% media_link media.handle user action %}
{{mediaform.gramps_id.label}}:{% render mediaform.gramps_id user action %}{{mediaform.private.label}}:{% render mediaform.private user action %}
{{mediaform.text.label}}:{% render mediaform.text user action %}
{{mediaform.path.label}}:{% render mediaform.path user action %}
{{mediaform.tags.label}}:{% render mediaform.tags user action %}
- -{% if user.is_superuser %} - {% if action == "edit" %} - {% make_button "Cancel" "/media/%s" media.handle args %} - - - - - {% else %} - {% ifequal action "add" %} - {% make_button "Cancel" "/media/" args %} - - - - - {% else %} -
- {% make_button "+Add Media" "/media/add" args %} - {% make_button "?Edit Media" "/media/%s/edit" media.handle args %} - {% make_button "-Delete Media" "/media/%s/delete" media.handle args %} -
- {% endifequal %} - {% endif %} -{% else %} -{% endif %} - - - -
- -
- {% citation_table media user action "/citation/$act/media/%s" media.handle %} -
-
- {% note_table media user action "/note/$act/media/%s" media.handle %} -
-
- {% attribute_table media user action "/attribute/add/media/%s" media.handle %} -
-
- {% media_reference_table media user action %} -
-
- {% history_table media user action %} -
-
- - -{% endblock %} - diff --git a/data/templates/view_name_detail.html b/data/templates/view_name_detail.html deleted file mode 100644 index e995a4f0c..000000000 --- a/data/templates/view_name_detail.html +++ /dev/null @@ -1,148 +0,0 @@ -{% extends "view_page_detail.html" %} -{% load my_tags %} - -{% block content %} - - - -
- - {% filter breadcrumb %} - {% format "/browse|Browse" %} || - {% format "/person|People" %} || - {% format "/person/%s|Person [%s]" object.handle object.gramps_id %} || - {% format "/person/%s/name/%s|Name #%s" object.handle order order %} - {% endfilter %} - -

{{nameform.model|make_name:user}} [{{person.gramps_id}}]

-
- {% comment %} 4 cols {% endcomment %} - - -{% for error in nameform.errors %} -

{{error}}
-{% endfor %} - -
{% csrf_token %} -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{surnameform.name_origin_type.label}}:{% render surnameform.name_origin_type user action %}{{nameform.name_type.label}}:{% render nameform.name_type user action %}
{{surnameform.surname.label}}:{% render surnameform.surname user action "get_focus" %}{{surnameform.prefix.label}}:{% render surnameform.prefix user action %}
{{nameform.first_name.label}}:{% render nameform.first_name user action %}{{nameform.nick.label}}:{% render nameform.nick user action %}
{{nameform.title.label}}:{% render nameform.title user action %}{{nameform.suffix.label}}:{% render nameform.suffix user action %}
{{nameform.call.label}}:{% render nameform.call user action %}
{{nameform.preferred.label}}:{% render nameform.preferred user action %}{{nameform.private.label}}:{% render nameform.private user action %}
-
-
- - - -
- - -
-
- - - - - - - - - - - - - -
{{nameform.group_as.label}}: {% render nameform.group_as user action %}
{{nameform.sort_as.label}}: {% render nameform.sort_as user action %}
{{nameform.display_as.label}}: {% render nameform.display_as user action %}
{{nameform.text.label}}: {% render nameform.text user action %}
-
-   -
-
- {% surname_table person user action "/person/%s/name/%s/surname/add" person.handle nameform.model.order %} -
-
- {% name_table person user action "/person/%s/name" person.handle %} -
-
- {% citation_table nameform.model user action "/citation/add/person/%s/name/%s" person.handle nameform.model.order %} -
-
- {% note_table nameform.model user action "/note/$act/person/%s/name/%s" person.handle nameform.model.order %} -
-
- -{% if user.is_superuser %} - {% ifequal action "add" %} - {% make_button "Cancel" "/person/%s" person.handle args "#tab-names" %} - - - - - {% else %} - {% ifequal action "edit" %} - {% make_button "Cancel" "/person/" args "#tab-names" %} - - - - - {% else %} -
- {% make_button "+Add Name" "/person/%s/name/add" person.handle args %} - {% make_button "?Edit Name" "/person/%s/name/%s/edit" person.handle order args %} - {% make_button "-Delete Name" "/person/%s/name/%s/delete" person.handle order args %} -
- {% endifequal %} - {% endifequal %} -{% else %} -{% endif %} - -{% endblock %} - diff --git a/data/templates/view_note_detail.html b/data/templates/view_note_detail.html deleted file mode 100644 index a9aeac8f7..000000000 --- a/data/templates/view_note_detail.html +++ /dev/null @@ -1,117 +0,0 @@ -{% extends "view_page_detail.html" %} -{% load my_tags %} - -{% block content %} - - -
- -{% include "detail_breadcrumb.html" %} - -
- - - {% if noteform.errors %} -
-

The following fields have errors. Please correct and try again.

-
{{noteform.errors}}
-
- {% endif %} -{% csrf_token %} - - - - - - - - - - - - - - - - - - - - - -
{{noteform.notetext.label}}: -{% if action == "edit" or action == "add" %} - - {% render noteform.notetext user action %} -{% else %} -
{{notetext|safe}}
-{% endif %} -
{{noteform.preformatted.label}}:{% render noteform.preformatted user action %}
{{noteform.gramps_id.label}}: {% render noteform.gramps_id user action %}{{noteform.note_type.label}}:{% render noteform.note_type user action %}
{{noteform.tags.label}}:{% render noteform.tags user action %}
- -{% if user.is_superuser %} - {% if action == "edit" %} - {% make_button "Cancel" "/note/%s" note.handle args %} - - - - - {% else %} - {% ifequal action "add" %} - {% make_button "Cancel" "/note/" args %} - - - - - {% else %} -
- {% make_button "+Add Note" "/note/add" args %} - {% make_button "?Edit Note" "/note/%s/edit" note.handle args %} - {% make_button "-Delete Note" "/note/%s/delete" note.handle args %} -
- {% endifequal %} - {% endif %} -{% else %} -{% endif %} - - - -
- -
- {% note_reference_table note user action %} -
-
- {% history_table note user action %} -
-
-
-
- - -{% endblock %} - diff --git a/data/templates/view_notes.html b/data/templates/view_notes.html deleted file mode 100644 index af5414811..000000000 --- a/data/templates/view_notes.html +++ /dev/null @@ -1,53 +0,0 @@ -{% extends "view_page.html" %} -{% load my_tags %} - -{% block table_data %} - - - - - - - - - - - - {% for note in page.object_list %} - - - - - {% endif %} - - {% endfor %} - -
#IDNote TypeText
{{ forloop.counter|row_count:page }} - [{{note.gramps_id}}] - {% if user.is_authenticated or note.public %} - {{note.note_type|escape|nbsp}} - {{note.text|preview:70|nbsp}} - {% else %} - [Private][Private]
- -{% endblock %} - -{% block admin_functions %} -{% if user.is_superuser %} -
- {% make_button "+Add Note" "/note/add" args %} -
-{% endif %} -{% endblock %} diff --git a/data/templates/view_page.html b/data/templates/view_page.html deleted file mode 100644 index d5568f209..000000000 --- a/data/templates/view_page.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends "gramps-base.html" %} -{% load my_tags %} - -{% block title %}{{sitename}}: {{tview}} view {% endblock %} -{% block heading %}{{sitename}}: {{tview}} view {% endblock %} - -{% block content %} - -
-
-{% if tview != "Report" %} - {% filter breadcrumb %} - {% format "/browse|Browse" %} || - {% format "/%s|%s" view tviews %} - {% endfilter %} -{% endif %} - - -
Available search terms: {{search_terms}} -
-
-{% paginator %} -
-{% block table_data %}
{% endblock %} -
-{% include "paginator.html" %} -{% block admin_functions %}{% endblock %} -{% endblock %} diff --git a/data/templates/view_page_detail.html b/data/templates/view_page_detail.html deleted file mode 100644 index 226fdc643..000000000 --- a/data/templates/view_page_detail.html +++ /dev/null @@ -1,6 +0,0 @@ -{% extends "gramps-base.html" %} -{% load my_tags %} -{% block title %}{{sitename}}: {{tview}} detail {% endblock %} -{% block heading %}{{sitename}}: {{tview}} detail {% endblock %} -{% block content %} -{% endblock %} diff --git a/data/templates/view_people.html b/data/templates/view_people.html deleted file mode 100644 index 7fe99424c..000000000 --- a/data/templates/view_people.html +++ /dev/null @@ -1,68 +0,0 @@ -{% extends "view_page.html" %} -{% load my_tags %} - -{% block table_data %} - - - - - - - - - - - - - - {% for name in page.object_list %} - - {% if name.person %} - - - - - - - {% endif %} - - {% endfor %} - -
#NameIDGenderBirth DateDeath Date
{{ forloop.counter|row_count:page }} - {{name|make_name:user}}   - [{{name.person.gramps_id}}]{{name.person.gender_type}}  {{name.person.birth|date_as_text:user}}  {{name.person.death|date_as_text:user}}  
- -{% endblock %} - -{% block admin_functions %} -{% if user.is_superuser %} -
- {% make_button "+Add Person" "/person/add" args %} -
-{% endif %} -{% endblock %} - diff --git a/data/templates/view_person_detail.html b/data/templates/view_person_detail.html deleted file mode 100644 index 48ccb7df5..000000000 --- a/data/templates/view_person_detail.html +++ /dev/null @@ -1,175 +0,0 @@ -{% extends "view_page_detail.html" %} -{% load my_tags %} - -{% block content %} - - - -
- -{% include "detail_breadcrumb.html" %} - -
- {% comment %} 5 cols {% endcomment %} - - {% if personform.errors or nameform.errors or surnameform.errors or logform.errors %} -
-

The following fields have errors. Please correct and try again.

-
- {{personform.errors}} - {{nameform.errors}} - {{surnameform.errors}} - {{logform.errors}} -
-
- {% endif %} -{% csrf_token %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{nameform|render_name:user}}{{nameform.name_type.label}}:{% render nameform.name_type user action %}
{{nameform.title.label}}:{% render nameform.title user action "get_focus" %}{{nameform.nick.label}}:{% render nameform.nick user action %}{{nameform.call.label}}:{% render nameform.call user action %}
{{nameform.first_name.label}}:{% render nameform.first_name user action None "/person/?search=given%%3D%s" nameform.model.first_name %}{% render nameform.suffix user action %}
{{surnameform.surname.label}}:{% render surnameform.prefix user action %} - {% render surnameform.surname user action None "/person/?search=surname%%3D%s" surnameform.model.surname %}{{surnameform.name_origin_type.label}}:{% render surnameform.name_origin_type user action %}
{{personform.gender_type.label}}:{% render personform.gender_type user action None "/person/?search=gender%%3D%s" personform.model.gender_type_id %}{{personform.gramps_id.label}}:{% render personform.gramps_id user action %}{{personform.tags.label}}:{% render personform.tags user action %}
{{personform.private.label}}:{% render personform.private user action %}{{personform.probably_alive.label}}:{% if person.probably_alive %}Yes{% else %}No{% endif %}
- -
-
- -{% if logform %} - - {{logform.as_table}} -
-{% endif %} - -{% if user.is_superuser %} - {% if action == "edit" %} - {% make_button "Cancel" "/person/%s" person.handle args %} - - - - - {% else %} - {% ifequal action "add" %} - {% make_button "Cancel" "/person/" args %} - - - - - {% else %} -
- {% make_button "+Add Person" "/person/add" args %} - {% make_button "?Edit Person" "/person/%s/edit" person.handle args %} - {% make_button "-Delete Person" "/person/%s/delete" person.handle args %} -
- {% endifequal %} - {% endif %} -{% else %} -{% endif %} - - - -
- -
- - {% event_table person user action "/event/$act/person/%s" person.handle %} -
-
- {% name_table person user action "/person/%s/name" person.handle %} -
-
- {% citation_table person user action "/citation/$act/person/%s" person.handle %} -
-
- {% attribute_table person user action "/attribute/$act/person/%s" person.handle %} -
-
- {% address_table person user action "/place/$act/person/%s" person.handle %} -
-
- {% note_table person user action "/note/$act/person/%s" person.handle %} -
-
- {% media_table person user action "/media/$act/person/%s" person.handle %} -
-
- {% internet_table person user action "/person/%s/$act/internet" person.handle %} -
-
- {% association_table person user action "/person/%s/$act/association" person.handle %} -
-
- {% lds_table person user action "/person/%s/$act/lds" person.handle %} -
-
- {% person_reference_table person user action %} -
-
- {% history_table person user action %} -
-
- - -{% endblock %} - diff --git a/data/templates/view_place_detail.html b/data/templates/view_place_detail.html deleted file mode 100644 index aee53aa6f..000000000 --- a/data/templates/view_place_detail.html +++ /dev/null @@ -1,148 +0,0 @@ -{% extends "view_page_detail.html" %} -{% load my_tags %} - -{% block content %} - - - -
- -{% include "detail_breadcrumb.html" %} - -
- - - - {% if placeform.errors %} -
-

The following fields have errors. Please correct and try again.

-
{{placeform.errors}}
-
- {% endif %} -
{% csrf_token %} -
- - - - - - - - - - - - - - - -
{{placeform.title.label}}: {% render placeform.title user action %}
{{placeform.lat.label}}:{% render placeform.lat user action %}{{placeform.long.label}}:{% render placeform.long user action %}
{{placeform.gramps_id.label}}:{% render placeform.gramps_id user action %}{{placeform.private.label}}:{% render placeform.private user action %}
- - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Street: FIXME
Locality: FIXME Church parish: FIXME
City: FIXME State: FIXME
County: FIXME ZIP/Postal code: FIXME
Country: FIXME Phone: FIXME
- - -
-
- {% location_table place user action "/location/$act/place/%s" place.handle %} -
-
- {% citation_table place user action "/citation/$act/place/%s" place.handle %} -
-
- {% note_table place user action "/note/$act/place/%s" place.handle %} -
-
- {% media_table place user action "/media/$act/place/%s" place.handle %} -
-
- {% internet_table place user action "/internet/$act/place/%s" place.handle %} -
-
- {% place_reference_table place user action %} -
-
- {% history_table place user action %} -
-
-
-
- -{% if user.is_superuser %} - {% if action == "edit" %} - {% make_button "Cancel" "/place/%s" place.handle args %} - - - - - {% else %} - {% ifequal action "add" %} - {% make_button "Cancel" "/place/" args %} - - - - - {% else %} -
- {% make_button "+Add Place" "/place/add" args %} - {% make_button "?Edit Place" "/place/%s/edit" place.handle args %} - {% make_button "-Delete Place" "/place/%s/delete" place.handle args %} -
- {% endifequal %} - {% endif %} -{% else %} -{% endif %} - -{% endblock %} - diff --git a/data/templates/view_places.html b/data/templates/view_places.html deleted file mode 100644 index 68bea4754..000000000 --- a/data/templates/view_places.html +++ /dev/null @@ -1,38 +0,0 @@ -{% extends "view_page.html" %} -{% load my_tags %} - -{% block table_data %} - - - - - - - - - - - {% for place in page.object_list %} - - - - {% endif %} - - {% endfor %} - -
#IDTitle
{{ forloop.counter|row_count:page }} - [{{place.gramps_id}}] - {% if user.is_authenticated or place.public %} - {{place.title|escape|nbsp}} - {% else %} -
- -{% endblock %} - -{% block admin_functions %} -{% if user.is_superuser %} -
- {% make_button "+Add Places" "/place/add" args %} -
-{% endif %} -{% endblock %} diff --git a/data/templates/view_report.html b/data/templates/view_report.html deleted file mode 100644 index 76389c236..000000000 --- a/data/templates/view_report.html +++ /dev/null @@ -1,35 +0,0 @@ -{% extends "view_page.html" %} -{% load my_tags %} - -{% block table_data %} - - - - - - - - - - - - - {% for report in page.object_list %} - - - - - {% else %} - - - {% endif %} - - {% endfor %} - -
#Report Name
{{ forloop.counter|row_count:page }} - {{report.name}} - {% if user.is_authenticated %} -
- -{% endblock %} - diff --git a/data/templates/view_report_detail.html b/data/templates/view_report_detail.html deleted file mode 100644 index 1dfdbda09..000000000 --- a/data/templates/view_report_detail.html +++ /dev/null @@ -1,51 +0,0 @@ -{% extends "view_page_detail.html" %} -{% load my_tags %} - -{% block content %} - -
- -{% include "detail_breadcrumb.html" %} - -
- -
- - - - - - - - - - - - - - - - - - - - - -
Name:{{report.name}}
Type:{{report.report_type}}
Options: - -
-Hint: use Gramps CLI options such as output file format off=pdf, off=ged, or off=gramps -
- - -
Help: -{{help|safe}} -
- -
-
- -{% endblock %} - diff --git a/data/templates/view_repositories.html b/data/templates/view_repositories.html deleted file mode 100644 index ea9628449..000000000 --- a/data/templates/view_repositories.html +++ /dev/null @@ -1,42 +0,0 @@ -{% extends "view_page.html" %} -{% load my_tags %} - -{% block table_data %} - - - - - - - - - - - - - {% for repository in page.object_list %} - - - - - {% endif %} - - {% endfor %} - -
#IDTypeName
{{ forloop.counter|row_count:page }} - [{{repository.gramps_id}}] - {% if user.is_authenticated or repository.public %} - {{repository.repository_type|escape|nbsp}} - {{repository.name|escape|nbsp}} - {% else %} -
- -{% endblock %} - -{% block admin_functions %} -{% if user.is_superuser %} -
- {% make_button "+Add Repository" "/repository/add" args %} -
-{% endif %} -{% endblock %} diff --git a/data/templates/view_repository.html b/data/templates/view_repository.html deleted file mode 100644 index e10f81e07..000000000 --- a/data/templates/view_repository.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends "view_page.html" %} -{% load my_tags %} - -{% block table_data %} - - - - - - - - - - - - - {% for family in page.object_list %} - - - - {% endfor %} - -
Item #IDFatherMotherRelationship
{{ forloop.counter|row_count:page }}[{{family.gramps_id}}] - {{family.father.name_set|make_name:user}} - {{family.mother.name_set|make_name:user}} - {% if user.is_authenticated %} - {{family.family_rel_type|escape}} - {% else %} - [Private] - {% endif %} -
- -{% endblock %} - diff --git a/data/templates/view_repository_detail.html b/data/templates/view_repository_detail.html deleted file mode 100644 index 5ed6de844..000000000 --- a/data/templates/view_repository_detail.html +++ /dev/null @@ -1,101 +0,0 @@ -{% extends "view_page_detail.html" %} -{% load my_tags %} - -{% block content %} - - - -
- -{% include "detail_breadcrumb.html" %} - -
- - - - {% if repositoryform.errors %} -
-

The following fields have errors. Please correct and try again.

-
{{repositoryform.errors}}
-
- {% endif %} -
{% csrf_token %} -
- - - - - - - - - - - - - -
{{repositoryform.name.label}}:{% render repositoryform.name user action %}
{{repositoryform.repository_type.label}}:{% render repositoryform.repository_type user action %}{{repositoryform.gramps_id.label}}:{% render repositoryform.gramps_id user action %}{{repositoryform.private.label}}:{% render repositoryform.private user action %}
- -{% if user.is_superuser %} - {% if action == "edit" %} - {% make_button "Cancel" "/repository/%s" repository.handle args %} - - - - - {% else %} - {% ifequal action "add" %} - {% make_button "Cancel" "/repository/" args %} - - - - - {% else %} -
- {% make_button "+Add Repository" "/repository/add" args %} - {% make_button "?Edit Repository" "/repository/%s/edit" repository.handle args %} - {% make_button "-Delete Repository" "/repository/%s/delete" repository.handle args %} -
- {% endifequal %} - {% endif %} -{% else %} -{% endif %} - - - -
- -
- {% address_table repository user action "/address/add/repository/%s" repository.handle %} -
-
- {% internet_table repository user action "/internet/add/repository/%s" repository.handle %} -
-
- {% note_table repository user action "/note/$act/repository/%s" repository.handle %} -
-
- {% repository_reference_table repository user action %} -
-
- {% history_table repository user action %} -
-
- - -{% endblock %} - diff --git a/data/templates/view_source_detail.html b/data/templates/view_source_detail.html deleted file mode 100644 index bf7519ef4..000000000 --- a/data/templates/view_source_detail.html +++ /dev/null @@ -1,109 +0,0 @@ -{% extends "view_page_detail.html" %} -{% load my_tags %} - -{% block content %} - - - -
- -{% include "detail_breadcrumb.html" %} - -

{{source.title|escape}}

-
- {% comment %} 2 cols {% endcomment %} - - {% if sourceform.errors %} -
-

The following fields have errors. Please correct and try again.

-
{{sourceform.errors}}
-
- {% endif %} -{% csrf_token %} - - - - - - - - - - - - - - - - - -
{{sourceform.title.label}}:{% render sourceform.title user action %}
{{sourceform.gramps_id.label}}:{% render sourceform.gramps_id user action %}
{{sourceform.abbrev.label}}:{% render sourceform.abbrev user action %}
{{sourceform.pubinfo.label}}:{% render sourceform.pubinfo user action %}
-
-
- -{% if user.is_superuser %} - {% if action == "edit" %} - {% make_button "Cancel" "/source/%s" source.handle args %} - - - - - {% else %} - {% ifequal action "add" %} - {% make_button "Cancel" "/source/" args %} - - - - - {% else %} -
- {% make_button "+Add Source" "/source/add" args %} - {% make_button "?Edit Source" "/source/%s/edit" source.handle args %} - {% make_button "-Delete Source" "/source/%s/delete" source.handle args %} -
- {% endifequal %} - {% endif %} -{% else %} -{% endif %} - - - -
- -
- {% note_table source user action "/note/$act/source/%s" source.handle %} -
-
- {% media_table source user action "/media/$act/source/%s" source.handle %} -
-
- {% data_table source user action "/data/add/source/%s" source.handle %} -
-
- {% repository_table source user action "/repository/$act/source/%s" source.handle %} -
-
- {% source_reference_table source user action %} -
-
- {% history_table source user action %} -
-
- - -{% endblock %} diff --git a/data/templates/view_sources.html b/data/templates/view_sources.html deleted file mode 100644 index 969e9333f..000000000 --- a/data/templates/view_sources.html +++ /dev/null @@ -1,44 +0,0 @@ -{% extends "view_page.html" %} -{% load my_tags %} - -{% block table_data %} - - - - - - - - - - - - - {% for source in page.object_list %} - - - - - - {% endif %} - - {% endfor %} - -
#IDTitlePub InfoAuthor
{{ forloop.counter|row_count:page }} - [{{source.gramps_id}}] - {% if user.is_authenticated or source.public %} - {{source.title|escape|nbsp}} - {{source.pubinfo|nbsp}} - {{source.author|nbsp}} - {% else %} -
- -{% endblock %} - -{% block admin_functions %} -{% if user.is_superuser %} -
- {% make_button "+Add Source" "/source/add" args %} -
-{% endif %} -{% endblock %} diff --git a/data/templates/view_surname_detail.html b/data/templates/view_surname_detail.html deleted file mode 100644 index 069c1f7a4..000000000 --- a/data/templates/view_surname_detail.html +++ /dev/null @@ -1,84 +0,0 @@ -{% extends "view_page_detail.html" %} -{% load my_tags %} - -{% block content %} - - - -
- - {% filter breadcrumb %} - {% format "/browse|Browse" %} || - {% format "/person|People" %} || - {% format "/person/%s|Person [%s]" object.handle object.gramps_id %} || - {% format "/person/%s/name/%s|Name #%s" object.handle order order %} || - {% format "/person/%s/name/%s/surname/%s|Surname #%s" object.handle order sorder sorder %} - {% endfilter %} - -

{{person|make_name:user}} [{{person.gramps_id}}]

-
- {% comment %} 4 cols {% endcomment %} - -{% for error in form.errors %} -

{{error}}

-{% endfor %} -{% csrf_token %} - - - - - - - - - - - - - - - - - - - - - -
{{surnameform.name_origin_type.label}}:{% render surnameform.name_origin_type user action %}
{{surnameform.primary.label}}:{% render surnameform.primary user action %}
{{surnameform.prefix.label}}:{% render surnameform.prefix user action %}
{{surnameform.surname.label}}:{% render surnameform.surname user action %}
{{surnameform.connector.label}}:{% render surnameform.connector user action %}
-
-
- -{% if user.is_superuser %} - {% if action == "edit" %} - {% make_button "Cancel" "/person/%s/name/%s/surname/%s" person.handle order sorder args %} - - - - - {% else %} - {% if action == "add" %} - {% make_button "Cancel" "/person/%s/name/%s" person.handle order args %} - - - - - {% else %} -
- {% make_button "+Add Surname" "/person/%s/name/%s/surname/add" person.handle order args %} - {% make_button "?Edit Surname" "/person/%s/name/%s/surname/%s/edit" person.handle order sorder args %} - {% make_button "-Delete Surname" "/person/%s/name/%s/surname/%s/delete" person.handle order sorder args %} -
- {% endif %} - {% endif %} -{% endif %} - -{% endblock %} - diff --git a/data/templates/view_tag.html b/data/templates/view_tag.html deleted file mode 100644 index 962cfb3c7..000000000 --- a/data/templates/view_tag.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends "view_page.html" %} -{% load my_tags %} - -{% block table_data %} - - - - - - - - - - {% for tag in page.object_list %} - - - {% if user.is_authenticated %} - - {% endfor %} - -
Item #Text
{{ forloop.counter|row_count:page }}{{tag.name|escape}} - {% else %} - [Private] - {% endif %} -
- -{% endblock %} - diff --git a/data/templates/view_tag_detail.html b/data/templates/view_tag_detail.html deleted file mode 100644 index eae9c667c..000000000 --- a/data/templates/view_tag_detail.html +++ /dev/null @@ -1,81 +0,0 @@ -{% extends "view_page_detail.html" %} -{% load my_tags %} - -{% block content %} - - - -
- -{% include "detail_breadcrumb.html" %} - -
- - - - {% if tagform.errors %} -
-

The following fields have errors. Please correct and try again.

-
{{tagform.errors}}
-
- {% endif %} -
{% csrf_token %} -
- - - - - - - - - - - -
{{tagform.name.label}}:{% render tagform.name user action %}
{{tagform.color.label}}:{% render tagform.color user action %}
{{tagform.priority.label}}:{% render tagform.priority user action %}
- -{% if user.is_superuser %} - {% if action == "edit" %} - {% make_button "Cancel" "/tag/%s" tag.handle args %} - - - - - {% else %} - {% ifequal action "add" %} - {% make_button "Cancel" "/tag/" args %} - - - - - {% else %} -
- {% make_button "+Add Tag" "/tag/add" args %} - {% make_button "?Edit Tag" "/tag/%s/edit" tag.handle args %} - {% make_button "-Delete Tag" "/tag/%s/delete" tag.handle args %} -
- {% endifequal %} - {% endif %} -{% else %} -{% endif %} - -
- -
- {% tag_reference_table tag user action %} -
-
- - -{% endblock %} - diff --git a/data/templates/view_tags.html b/data/templates/view_tags.html deleted file mode 100644 index c51f9e843..000000000 --- a/data/templates/view_tags.html +++ /dev/null @@ -1,42 +0,0 @@ -{% extends "view_page.html" %} -{% load my_tags %} - -{% block table_data %} - - - - - - - - - - - - - {% for tag in page.object_list %} - - - - - {% else %} - - - {% endif %} - - {% endfor %} - -
#TextColorPriority
{{ forloop.counter|row_count:page }} - [{{tag.name}}] - {% if user.is_authenticated %} - {{tag.color|nbsp}}{{tag.priority|nbsp}}
- -{% endblock %} - -{% block admin_functions %} -{% if user.is_superuser %} -
- {% make_button "+Add Tag" "/tag/add" args %} -
-{% endif %} -{% endblock %} diff --git a/setup.py b/setup.py index 124f5eb0c..d96959734 100755 --- a/setup.py +++ b/setup.py @@ -444,10 +444,6 @@ data_files_gui.append(('share/gramps/images/hicolor/22x22/actions', ICON_22)) data_files_gui.append(('share/gramps/images/hicolor/48x48/actions', ICON_48)) data_files_gui.append(('share/gramps/images/hicolor/scalable/actions', ICON_SC)) -TEMPLATE_FILES = glob.glob(os.path.join('data/templates', '*.html')) -ADMIN_FILES = glob.glob(os.path.join('data/templates/admin', '*.html')) -REG_FILES = glob.glob(os.path.join('data/templates/registration', '*.html')) - data_files = data_files_core + data_files_gui #-------------------------------------------------------------------------