Delete obsolete variants
gitea/imio-publik-themes/pipeline/head This commit looks good Details

This commit is contained in:
Daniel Muyshond 2023-06-05 15:13:04 +02:00
parent 6b5bfb4776
commit ce78ad73e1
8 changed files with 0 additions and 1209 deletions

View File

@ -1,26 +0,0 @@
{% load i18n %}
{% if regies %}
<h2>{% trans "Basket" %}</h2>
{% for regie_info in regies %}
{% if regies|length != 1 %}<h3 class="regie-name">{{regie_info.regie.label}}</h3>{% endif %}
<form action="{% url 'lingo-pay' %}" method="POST">
{% csrf_token %}
<input type="hidden" name="next_url" value="{{ cell.page.get_online_url }}" />
{% if regies|length != 1 %}<input type="hidden" name="regie" value="{{regie_info.regie.id}}" />{% endif %}
<ul>
{% for item in regie_info.items %}
<li><label><input type="checkbox" style="display:none" name="item" value="{{ item.id }}" checked/>
<a href="{{ item.source_url }}">{{ item.subject }}</a> {{ item.amount }} &euro;</label>
{% if item.user_cancellable %}
<a class="remove-item" rel="popup" href="{% url 'lingo-cancel-item' pk=item.id %}">{% trans 'remove' %}</a>
{% endif %}
</li>
{% endfor %}
<li><strong>{% trans "Total:" %}</strong> {{ regie_info.total }} &euro;</li>
</ul>
<input id="pay" type="submit" value="Payer votre commande"/>
<a href="{{portal_url}}demarches" id="new-command">Commander un autre document</a>
<!--input type="submit" value="{% trans "Pay" %}"/-->
</form>
{% endfor %}
{% endif %}

View File

@ -1,88 +0,0 @@
#! /usr/bin/env python
import os
import subprocess
import re
import sys
FILENAME = 'tmp.html'
if os.path.exists(FILENAME):
os.unlink(FILENAME)
URL = 'https://www.liege.be/fr/@@teleservice-template'
subprocess.call(['wget', '--quiet', '-O', FILENAME, '--convert-links', URL])
content = '{% load i18n static combo %}' + open(FILENAME).read().strip()
if len(content) < 500:
sys.exit(0)
# replace action of "subscribe newsletter" form
content = content.replace('action="tmp.html"', 'action="https://liege-preprod.imio.be/fr/"')
# remove tmp.html that have been added to anchor links
content = content.replace('tmp.html#', '#')
content = content.replace('</head>',
'<title>{% firstof global_title "e-Guichet" %} {% block title %}{% endblock %}</title>\n</head>')
content = content.replace('</head>',
'''
{% block extra_top_head %}
{% endblock %}
{{ media }}
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static 'site-liege/style.css' %}?{{statics_hash}}">
{% block extra_css %}
{% endblock %}
{% block extra_scripts %}
{% endblock %}
</head>''')
content = re.sub('<body(.*?)>',
r'<body\1 {% block bodyargs %}{% endblock %}>',
content)
content = content.replace('<div id="teleservice-nav"></div>',
'<div id="teleservice-nav"><div id="nav">{% block nav %}{% block menu %}{% endblock %}{% endblock %}</div></div>')
content = content.replace('<div id="teleservice-content"></div>',
'<div id="teleservice-content"><div id="content">{% block content %}{% endblock %}</div></div>')
# =============================================================================================================
# =============================================================================================================
content = content.replace('<div id="top-slogan-inner">','<div id="top-slogan-inner"><h1>Guichet en ligne</h1>')
content = content.replace('<style media="screen" type="text/css">@import url(https://liege-preprod.imio.be/portal_css/Sunburst%20Theme/++theme++cpskin.theme.base/css/fontello.css);</style>','')
content = content.replace('<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700|Montserrat|Merriweather" media="all" rel="stylesheet" title="Google font Open Sans" type="text/css"/>','')
content = content.replace('<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700" media="all" rel="stylesheet" title="Google font Open Sans" type="text/css"/>','')
content = content.replace('<script src="https://liege-preprod.imio.be/portal_javascripts/Sunburst%20Theme/resourceplonetruegallery-portlet-cachekey-3d4c482deb7057b84aa5ff9c3b380c1d.js" type="text/javascript"></script>','')
content = content.replace('<script src="https://liege-preprod.imio.be/portal_javascripts/Sunburst%20Theme/geoMailDecoder-cachekey-58ed32e59563d02d7f7b98aabeb5189b.js" type="text/javascript"></script>','')
#content = re.sub(r'<div id="teleservice-nav">.*</div>',
# '<div id="nav">{% block nav %}{% block menu %}{% endblock %}{% endblock %}</div>',
# content, flags=re.DOTALL)
#content = re.sub(r'<div id="teleservice-content">.*</div>',
# '<div id="content">{% block content %}{% endblock %}</div>',
# content, flags=re.DOTALL)
#content = re.sub(r'<article id="content">.*</article>',
# '<div id="nav">{% block nav %}{% block menu %}{% endblock %}{% endblock %}</div>'
# '<div id="content">{% block content %}{% endblock %}</div>',
# content, flags=re.DOTALL)
#
#content = re.sub(r'<p class="hiddenStructure">Outils personnels</p>(.*?</ul>)',
# '{% block user-info %} {% endblock %}',
# content, flags=re.DOTALL)
open('theme.html', 'w').write(content)

View File

@ -1,21 +0,0 @@
{% extends "emails/body_base.html" %}
{% block content %}
<p>Bonjour,</p>
<p>
Vous venez de créer un accès à votre compte personnel sur l'E-guichet de la Ville de Namur. <!--{% firstof hobo_city %}-->.
Nous vous en remercions.
</p>
<p>
Pour activer votre compte personnel, veuillez cliquer sur le bouton suivant :
</p>
{% include "emails/button-link.html" with url=registration_url label="Activation de mon compte" %}
<p>
Attention, sans validation de votre part dans les {{expiration_days}} jours,
votre demande de compte sera annulée.
</p>
{% endblock %}

File diff suppressed because one or more lines are too long

View File

@ -1,26 +0,0 @@
{% load i18n %}
{% if regies %}
<h2>{% trans "Basket" %}</h2>
{% for regie_info in regies %}
{% if regies|length != 1 %}<h3 class="regie-name">{{regie_info.regie.label}}</h3>{% endif %}
<form action="{% url 'lingo-pay' %}" method="POST">
{% csrf_token %}
<input type="hidden" name="next_url" value="{{ cell.page.get_online_url }}" />
{% if regies|length != 1 %}<input type="hidden" name="regie" value="{{regie_info.regie.id}}" />{% endif %}
<ul>
{% for item in regie_info.items %}
<li><label><input type="checkbox" style="display:none" name="item" value="{{ item.id }}" checked/>
<a href="{{ item.source_url }}">{{ item.subject }}</a> {{ item.amount }} &euro;</label>
{% if item.user_cancellable %}
<a class="remove-item" rel="popup" href="{% url 'lingo-cancel-item' pk=item.id %}">{% trans 'remove' %}</a>
{% endif %}
</li>
{% endfor %}
<li><strong>{% trans "Total:" %}</strong> {{ regie_info.total }} &euro;</li>
</ul>
<input id="pay" type="submit" value="Payer votre commande"/>
<a href="{{portal_url}}demarches" id="new-command">Commander un autre document</a>
<!--input type="submit" value="{% trans "Pay" %}"/-->
</form>
{% endfor %}
{% endif %}

View File

@ -1,88 +0,0 @@
#! /usr/bin/env python
import os
import subprocess
import re
import sys
FILENAME = 'tmp.html'
if os.path.exists(FILENAME):
os.unlink(FILENAME)
URL = 'https://www.namur.be/fr/@@teleservice-template'
subprocess.call(['wget', '--quiet', '-O', FILENAME, '--convert-links', URL])
content = '{% load i18n static combo %}' + open(FILENAME).read().strip()
if len(content) < 500:
sys.exit(0)
# replace action of "subscribe newsletter" form
content = content.replace('action="tmp.html"', 'action="https://namur-preprod.imio.be/fr/"')
# remove tmp.html that have been added to anchor links
content = content.replace('tmp.html#', '#')
content = content.replace('</head>',
'<title>{% firstof global_title "e-Guichet" %} {% block title %}{% endblock %}</title>\n</head>')
content = content.replace('</head>',
'''
{% block extra_top_head %}
{% endblock %}
{{ media }}
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static 'site-namur/style.css' %}?{{statics_hash}}">
{% block extra_css %}
{% endblock %}
{% block extra_scripts %}
{% endblock %}
</head>''')
content = re.sub('<body(.*?)>',
r'<body\1 {% block bodyargs %}{% endblock %}>',
content)
content = content.replace('<div id="teleservice-nav"></div>',
'<div id="teleservice-nav"><div id="nav">{% block nav %}{% block menu %}{% endblock %}{% endblock %}</div></div>')
content = content.replace('<div id="teleservice-content"></div>',
'<div id="teleservice-content"><div id="content">{% block content %}{% endblock %}</div></div>')
# =============================================================================================================
# =============================================================================================================
content = content.replace('<div id="top-slogan-inner">','<div id="top-slogan-inner"><h1>Guichet en ligne</h1>')
content = content.replace('<style media="screen" type="text/css">@import url(https://namur-preprod.imio.be/portal_css/Sunburst%20Theme/++theme++cpskin.theme.base/css/fontello.css);</style>','')
content = content.replace('<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700|Montserrat|Merriweather" media="all" rel="stylesheet" title="Google font Open Sans" type="text/css"/>','')
content = content.replace('<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700" media="all" rel="stylesheet" title="Google font Open Sans" type="text/css"/>','')
content = content.replace('<script src="https://namur-preprod.imio.be/portal_javascripts/Sunburst%20Theme/resourceplonetruegallery-portlet-cachekey-3d4c482deb7057b84aa5ff9c3b380c1d.js" type="text/javascript"></script>','')
content = content.replace('<script src="https://namur-preprod.imio.be/portal_javascripts/Sunburst%20Theme/geoMailDecoder-cachekey-58ed32e59563d02d7f7b98aabeb5189b.js" type="text/javascript"></script>','')
#content = re.sub(r'<div id="teleservice-nav">.*</div>',
# '<div id="nav">{% block nav %}{% block menu %}{% endblock %}{% endblock %}</div>',
# content, flags=re.DOTALL)
#content = re.sub(r'<div id="teleservice-content">.*</div>',
# '<div id="content">{% block content %}{% endblock %}</div>',
# content, flags=re.DOTALL)
#content = re.sub(r'<article id="content">.*</article>',
# '<div id="nav">{% block nav %}{% block menu %}{% endblock %}{% endblock %}</div>'
# '<div id="content">{% block content %}{% endblock %}</div>',
# content, flags=re.DOTALL)
#
#content = re.sub(r'<p class="hiddenStructure">Outils personnels</p>(.*?</ul>)',
# '{% block user-info %} {% endblock %}',
# content, flags=re.DOTALL)
open('theme.html', 'w').write(content)

View File

@ -1,21 +0,0 @@
{% extends "emails/body_base.html" %}
{% block content %}
<p>Bonjour,</p>
<p>
Vous venez de créer un accès à votre compte personnel sur l'E-guichet de la Ville de Namur. <!--{% firstof hobo_city %}-->.
Nous vous en remercions.
</p>
<p>
Pour activer votre compte personnel, veuillez cliquer sur le bouton suivant :
</p>
{% include "emails/button-link.html" with url=registration_url label="Activation de mon compte" %}
<p>
Attention, sans validation de votre part dans les {{expiration_days}} jours,
votre demande de compte sera annulée.
</p>
{% endblock %}

File diff suppressed because one or more lines are too long