diff --git a/compte_agglo_montpellier/migrations/0003_remove_text_plugin_wrapper.py b/compte_agglo_montpellier/migrations/0003_remove_text_plugin_wrapper.py new file mode 100644 index 0000000..dbdedb1 --- /dev/null +++ b/compte_agglo_montpellier/migrations/0003_remove_text_plugin_wrapper.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +from south.utils import datetime_utils as datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + + +class Migration(SchemaMigration): + + def forwards(self, orm): + db.delete_column('djangocms_text_ckeditor_text', 'wrapper') + + def backwards(self, orm): + pass + + models = { + + } + + complete_apps = ['compte_agglo_montpellier'] diff --git a/compte_agglo_montpellier/settings.py b/compte_agglo_montpellier/settings.py index 872aa87..192cbd9 100644 --- a/compte_agglo_montpellier/settings.py +++ b/compte_agglo_montpellier/settings.py @@ -188,7 +188,6 @@ INSTALLED_APPS = ( 'portail_citoyen.apps.auquotidien_plugin', 'portail_citoyen.apps.passerelle_register_plugin', 'compte_agglo_montpellier', - 'tipi_payment_plugin', ) MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage' @@ -562,3 +561,22 @@ if USE_DEBUG_TOOLBAR: INSTALLED_APPS += ('debug_toolbar',) except ImportError: print "Debug toolbar missing, not loaded" + +try: + import cmsplugin_blurp + INSTALLED_APPS += ( + 'cmsplugin_blurp', + ) +except ImportError: + pass + +CMS_PLUGIN_BLURP_RENDERERS = { + 'tipi': { + 'name': 'Formulaire de paiement TIPI', + 'class': 'cmsplugin_blurp.renderers.template.TemplateRenderer', + 'refresh': 3600, + 'template': 'tipi', + 'template_name': 'blurps/tipi.html', + 'ajax': False, + }, +} diff --git a/compte_agglo_montpellier/templates/blurps/tipi.html b/compte_agglo_montpellier/templates/blurps/tipi.html new file mode 100644 index 0000000..5cb8c7e --- /dev/null +++ b/compte_agglo_montpellier/templates/blurps/tipi.html @@ -0,0 +1,225 @@ +{% load sekizai_tags %} +{% load i18n %} + +{% addtoblock "js" %} + +{% endaddtoblock %} +{% addtoblock "css" %} + +{% endaddtoblock %} + + +
Vous pouvez payer ici les factures émises par Montpellier Agglomération (service Téléalarme, déchets verts,...)
+ +Après avoir rempli les champs du formulaire ci-dessous et cliqué sur le bouton "Payer", vous serez redirigé vers le serveur de paiement sécurisé de la direction générale des finances publiques sur lequel vous pourrez finaliser votre paiement grâce à votre carte bancaire. Vous recevrez ensuite un courriel de confirmation de la transaction.
+