diff --git a/pfwb_thesaurus/templates/thesaurus/plone_popup.html b/pfwb_thesaurus/templates/thesaurus/plone_popup.html
new file mode 100644
index 0000000..84b4a5b
--- /dev/null
+++ b/pfwb_thesaurus/templates/thesaurus/plone_popup.html
@@ -0,0 +1,36 @@
+{% extends "thesaurus/term_list.html" %}
+
+{% block aftercontent %}
+
+
+
+{% endblock %}
diff --git a/pfwb_thesaurus/templates/thesaurus/term_detail.html b/pfwb_thesaurus/templates/thesaurus/term_detail.html
index 66b3fb9..9a14401 100644
--- a/pfwb_thesaurus/templates/thesaurus/term_detail.html
+++ b/pfwb_thesaurus/templates/thesaurus/term_detail.html
@@ -1,4 +1,5 @@
{% extends "base.html" %}
+{% load i18n %}
{% block content %}
@@ -21,6 +22,7 @@
{{object.term}}
+
{% if object.alternativeterm_set.count %}
Employé pour (équivalences)
@@ -36,7 +38,7 @@
{{ object.historical_note }}
{% endif %}
-
+
|
diff --git a/pfwb_thesaurus/templates/thesaurus/term_list.html b/pfwb_thesaurus/templates/thesaurus/term_list.html
index 86025d4..b9077db 100644
--- a/pfwb_thesaurus/templates/thesaurus/term_list.html
+++ b/pfwb_thesaurus/templates/thesaurus/term_list.html
@@ -1,12 +1,17 @@
{% extends "base.html" %}
{% block content %}
+
+
+
+
{% endblock %}
diff --git a/pfwb_thesaurus/urls.py b/pfwb_thesaurus/urls.py
index fd8bcbc..530e5b3 100644
--- a/pfwb_thesaurus/urls.py
+++ b/pfwb_thesaurus/urls.py
@@ -3,6 +3,8 @@ from django.contrib import admin
urlpatterns = patterns('',
url(r'^$', 'pfwb_thesaurus.views.home', name='home'),
- url(r'^term/(?P \w+)$', 'pfwb_thesaurus.views.term', name='term'),
+ url(r'^thesaurus/plone-popup/$', 'pfwb_thesaurus.views.plone_popup'),
+ url(r'^thesaurus/term/(?P\w+)$', 'pfwb_thesaurus.views.term', name='term'),
+
url(r'^admin/', include(admin.site.urls)),
)
diff --git a/pfwb_thesaurus/views.py b/pfwb_thesaurus/views.py
index 1a9f66e..c3eae05 100644
--- a/pfwb_thesaurus/views.py
+++ b/pfwb_thesaurus/views.py
@@ -29,6 +29,12 @@ class HomeView(ListView):
home = HomeView.as_view()
+class PlonePopupView(HomeView):
+ template_name = 'thesaurus/plone_popup.html'
+
+plone_popup = PlonePopupView.as_view()
+
+
class TermView(DetailView):
model = Term
|