EVENT_GOOGLE_MAPS_DOMAIN = 'maps.google.fr'
EVENT_PER_PAGE = 50
EVENT_USE_FEATURED_IMAGE = True
-# EVENT_SHOP_URL = 'http://eve-dev2.ircam.fr/pub.php/manifestation/'
-EVENT_SHOP_URL = "http://eve-dev2.ircam.fr/pub.php/event/%d/edit"
-
-EVENT_PASS_URL = 'http://eve-dev2.ircam.fr/pub.php/pass/'
+EVENT_DOMAIN = "http://eve-dev2.ircam.fr"
+EVENT_SHOP_URL = EVENT_DOMAIN+"/pub.php/event/%d/edit"
+EVENT_PASS_URL = EVENT_DOMAIN+"/pub.php/pass/"
+EVENT_CONFIRMATION_URL = EVENT_DOMAIN+"/pub.php/cart/done?transaction_id=%s"
EVENT_EXCLUDE_TAG_LIST = ['tournees', ]
if DEBUG:
from mezzanine.conf import settings
from organization.core.views import *
+from organization.agenda.views import *
urlpatterns = [
url("^%s/" % settings.EVENT_SLUG, include("mezzanine_agenda.urls")),
+ url("^%s/confirmation/(?P<transaction_id>[0-9]*)$" % settings.EVENT_SLUG, ConfirmationView.as_view(), name="organization-agenda-confirmation"),
]
+#
+from django.views.generic.base import TemplateView
+from mezzanine.conf import settings
+
+class ConfirmationView(TemplateView):
+
+ template_name = "agenda/confirmation.html"
+
+ def get_context_data(self, **kwargs):
+ context = super(ConfirmationView, self).get_context_data(**kwargs)
+ context['confirmation_url'] = settings.EVENT_CONFIRMATION_URL % kwargs['transaction_id']
+ return context
--- /dev/null
+
+{% extends "pages/page.html" %}
+{% load i18n mezzanine_tags keyword_tags pages_tags organization_tags %}
+
+{% block meta_title %}{% trans "Confirmation" %}{% endblock %}
+
+
+{% block page_class %}
+ Confirmation
+{% endblock %}
+
+{% block page_title %}
+ <h1 class="dotted">{% trans "Confirmation" %}</h1>
+{% endblock %}
+
+{% block page_content %}
+ <iframe width="100%" height="820px" scrolling="auto" src="{{ confirmation_url }}" frameborder="0" allowfullscreen=""></iframe>
+{% endblock %}
{% load mezzanine_tags comment_tags keyword_tags rating_tags i18n future disqus_tags event_tags organization_tags %}
{% block event_detail_content %}
- <iframe width="100%" height="750px" scrolling="auto" src="{{ shop_url }}" frameborder="0" allowfullscreen=""></iframe>
+ <iframe width="100%" height="820px" scrolling="auto" src="{{ shop_url }}" frameborder="0" allowfullscreen=""></iframe>
{% endblock %}