misc: apply djhtml (#69709)

This commit is contained in:
Valentin Deniaud 2022-09-29 11:51:33 +02:00
parent 964461e27e
commit 4784a3990e
131 changed files with 3215 additions and 3215 deletions

View File

@ -2,16 +2,16 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans 'Delete Asset' %}</h2>
<h2>{% trans 'Delete Asset' %}</h2>
{% endblock %}
{% block content %}
<form method="post">
<form method="post">
{% csrf_token %}
{% blocktrans %}Are you sure you want to delete this?{% endblocktrans %}
<div class="buttons">
<button class="delete-button">{% trans 'Delete' %}</button>
<a class="cancel" href="{% url 'combo-manager-assets' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,12 +2,12 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans "Overwrite Asset" %}</h2>
<h2>{% trans "Overwrite Asset" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
<p>
{% trans "This will erase the existing file and replace it with a new one." %}
@ -17,5 +17,5 @@
<button class="submit-button">{% trans "Upload" %}</button>
<a class="cancel" href="{% url 'combo-manager-assets' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,17 +2,17 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans "Asset Upload" %}</h2>
<h2>{% trans "Asset Upload" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Upload" %}</button>
<a class="cancel" href="{% url 'combo-manager-assets' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,49 +2,49 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans 'Assets' %}</h2>
<span class="actions">
<a class="extra-actions-menu-opener"></a>
<a href="{% url 'combo-manager-asset-upload' %}" rel="popup">{% trans 'Upload' %}</a>
<ul class="extra-actions-menu">
<h2>{% trans 'Assets' %}</h2>
<span class="actions">
<a class="extra-actions-menu-opener"></a>
<a href="{% url 'combo-manager-asset-upload' %}" rel="popup">{% trans 'Upload' %}</a>
<ul class="extra-actions-menu">
<li><a href="{% url 'combo-manager-assets-export' %}">{% trans 'Export Assets' %}</a></li>
<li><a rel="popup" href="{% url 'combo-manager-assets-import' %}">{% trans 'Import Assets' %}</a></li>
</ul>
</span>
</ul>
</span>
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'combo-manager-assets' %}">{% trans 'Assets' %}</a>
{{ block.super }}
<a href="{% url 'combo-manager-assets' %}">{% trans 'Assets' %}</a>
{% endblock %}
{% block content %}
{% if not object_list and not query %}
<div class="big-msg-info">
{% if not object_list and not query %}
<div class="big-msg-info">
{% blocktrans %}
This site doesn't have any asset yet. You can add some directly when editing
pages, in the "Upload Image" dialog.
{% endblocktrans %}
</div>
</div>
{% else %}
{% else %}
<form>
<form>
<p><input name="q" type="search" value="{{query}}"> <button>{% trans 'Search' %}</button>
<span class="help_text">{% trans "(case insensitive search over filenames)" %}</span>
</p>
</form>
</form>
<div id="assets-browser">
<div id="assets-browser">
<div id="assets-listing">
{% include "combo/manager_assets_fragment.html" %}
</div>
<div id="asset-preview"></div>
</div>
</div>
{% include "gadjo/pagination.html" %}
{% include "gadjo/pagination.html" %}
{% endif %}
{% endif %}
{% endblock %}

View File

@ -2,11 +2,11 @@
{% load static i18n %}
{% block css %}
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/combo.manager.css" %}"/>
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/combo.manager.css" %}"/>
{% endblock %}
{% block extrascripts %}
<script src="{% static "js/combo.manager.js" %}"></script>
<script src="{% static "js/combo.manager.js" %}"></script>
{% endblock %}
{% block user-links %}{% endblock %}
@ -16,44 +16,44 @@
{% block footer %}{% endblock %}
{% block appbar %}
<h2>{% trans "Browse for the file you want, then click 'Embed File' to continue..." %}</h2>
<h2>{% trans "Browse for the file you want, then click 'Embed File' to continue..." %}</h2>
{% endblock %}
{% block content %}
{% if not object_list and not query %}
<div class="big-msg-info">
{% if not object_list and not query %}
<div class="big-msg-info">
{% trans "No files found. Upload files using the 'Image Button' or 'Link Button' dialog's 'Upload' tab." %}
</div>
</div>
{% else %}
{% else %}
<form>
<form>
{% for k, v in request.GET.items %}
{% if k != 'q' %}<input type="hidden" name="{{ k }}" value="{{ v }}" />{% endif %}
{% endfor %}
<p><input name="q" type="search" value="{{query}}"> <button>{% trans 'Search' %}</button>
<span class="help_text">{% trans "(case insensitive search over filenames)" %}</span>
</p>
</form>
</form>
<div id="assets-browser" class="assets-ckeditor">
<div id="assets-browser" class="assets-ckeditor">
<div id="assets-listing">
{% with asset_for_ckeditor=True %}
{% include "combo/manager_assets_fragment.html" %}
{% endwith %}
</div>
<div id="asset-preview"></div>
</div>
</div>
{% include "gadjo/pagination.html" %}
{% include "gadjo/pagination.html" %}
<div class="buttons">
<div class="buttons">
<input href="" id="asset-ckeditor-embed" type="submit" name="_embed" value="{% trans "Embed File" %}" disabled />
</div>
</div>
{% endif %}
<script type="text/javascript">
{% endif %}
<script type="text/javascript">
// helper functions
function getUrlParam(paramName) {
var reParam = new RegExp('(?:[\?&]|&amp;)' + paramName + '=([^&]+)', 'i') ;
@ -72,5 +72,5 @@
window.close();
});
console.log(window.opener.CKEDITOR)
</script>
</script>
{% endblock %}

View File

@ -2,12 +2,12 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans "Assets Import" %}</h2>
<h2>{% trans "Assets Import" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
<p>
{% trans "Assets import allows you to integrate assets exported from another site." %}
@ -17,5 +17,5 @@
<button class="submit-button">{% trans "Import" %}</button>
<a class="cancel" href="{% url 'combo-manager-assets' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,18 +2,18 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans 'Assets' %}</h2>
<h2>{% trans 'Assets' %}</h2>
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'combo-manager-assets' %}">{% trans 'Assets' %}</a>
{{ block.super }}
<a href="{% url 'combo-manager-assets' %}">{% trans 'Assets' %}</a>
{% endblock %}
{% block content %}
<div id="assets-listing">
{% include "combo/manager_assets_fragment.html" %}
</div>
<div id="assets-listing">
{% include "combo/manager_assets_fragment.html" %}
</div>
{% endblock %}

View File

@ -1,8 +1,8 @@
{% load i18n calendar %}
{% block cell-content %}
{% if cell.title %}
<h2>
{% if cell.title %}
<h2>
<span>{{cell.title}}</span>
{% if calendar %}
<span class="calinfo">
@ -11,17 +11,17 @@
{% endwith %}
</span>
{% endif %}
</h2>
{% endif %}
</h2>
{% endif %}
{% if error %}
{% if error %}
<div><p>{{ error }}</p></div>
{% else %}
{% else %}
<div class="calcontent">
{% include 'calendar/booking_calendar_content.html' %}
</div>
{% endif %}
{% endif %}
<style>.calinfo { font-style: italic; font-size: 80%; }</style>
<style>.calinfo { font-style: italic; font-size: 80%; }</style>
{% endblock %}

View File

@ -1,26 +1,26 @@
{% load i18n calendar %}
{% if calendar_days.has_other_pages %}
<p class="paginator">
<p class="paginator">
{% if calendar_days.has_previous %}
<a class="previous calchunk" href="?chunk_{{ cell.pk }}={{ calendar_days.previous_page_number }}" data-content-url="{% url 'ajax-calendar-content' pk=cell.pk %}?chunk_{{cell.pk}}={{ calendar_days.previous_page_number }}">{% trans "previous" %}</a>
{% else %}
<span class="previous">{% trans "previous" %}</span>
{% endif %}
<span class="current">
{% if calendar_days.has_previous %}
<a class="previous calchunk" href="?chunk_{{ cell.pk }}={{ calendar_days.previous_page_number }}" data-content-url="{% url 'ajax-calendar-content' pk=cell.pk %}?chunk_{{cell.pk}}={{ calendar_days.previous_page_number }}">{% trans "previous" %}</a>
{% else %}
<span class="previous">{% trans "previous" %}</span>
{% endif %}
<span class="current">
{{ calendar_days.number }} / {{ calendar_days.paginator.num_pages }}
</span>
{% if calendar_days.has_next %}
<a class="next calchunk" href="?chunk_{{ cell.pk }}={{ calendar_days.next_page_number }}" data-content-url="{% url 'ajax-calendar-content' pk=cell.pk %}?chunk_{{cell.pk}}={{ calendar_days.next_page_number }}">{% trans "next" %}</a>
{% else %}
<span class="next">{% trans "next" %}</span>
{% endif %}
</p>
</span>
{% if calendar_days.has_next %}
<a class="next calchunk" href="?chunk_{{ cell.pk }}={{ calendar_days.next_page_number }}" data-content-url="{% url 'ajax-calendar-content' pk=cell.pk %}?chunk_{{cell.pk}}={{ calendar_days.next_page_number }}">{% trans "next" %}</a>
{% else %}
<span class="next">{% trans "next" %}</span>
{% endif %}
</p>
{% endif %}
{% if calendar_days %}
<form method="POST" action="{% url 'calendar-booking' pk=cell.pk %}?chunk_{{cell.pk}}={{calendar_days.number}}">
<form method="POST" action="{% url 'calendar-booking' pk=cell.pk %}?chunk_{{cell.pk}}={{calendar_days.number}}">
{% csrf_token %}
<table id="cal-table-{{cell.pk}}">
<thead>
@ -53,5 +53,5 @@
</tbody>
</table>
<button class="submit-button">{% trans "Book" context "booking" %}</button>
</form>
</form>
{% endif %}

View File

@ -1,8 +1,8 @@
{% load i18n dashboard %}
{% block content %}
{% if user.is_authenticated %}
<span class="dashboard-cell-icons">
{% if not in_dashboard %}
{% if user.is_authenticated %}
<span class="dashboard-cell-icons">
{% if not in_dashboard %}
{% with tile=cell|as_dashboard_cell:request.user %}
{% if tile %}
<a class="remove-from-dashboard" href="{% url 'combo-dashboard-remove-tile' cell_reference=tile.cell.get_reference %}"></a>
@ -10,9 +10,9 @@
<a class="add-to-dashboard" href="{% url 'combo-dashboard-add-tile' cell_reference=cell.get_reference %}"></a>
{% endif %}
{% endwith %}
{% else %}
{% else %}
<a class="remove-from-dashboard" href="{% url 'combo-dashboard-remove-tile' cell_reference=cell.get_reference %}"></a>
{% endif %}
</span>
{% endif %}
{% endif %}
</span>
{% endif %}
{% endblock %}

View File

@ -1,14 +1,14 @@
{% load i18n %}
{% block cell-content %}
{% for tile in tiles %}
{% with cell=tile.cell %}
<div class="cell {{ cell.css_class_names }} {% if cell.slug %}{{cell.slug}}{% endif %}"
{% for tile in tiles %}
{% with cell=tile.cell %}
<div class="cell {{ cell.css_class_names }} {% if cell.slug %}{{cell.slug}}{% endif %}"
data-ajax-cell-url="{{ site_base }}{{ cell.get_ajax_url }}"
data-ajax-cell-loading-message="{{ cell.loading_message }}"
data-ajax-cell-error-message="{% trans "Loading error" %}"
{% if cell.ajax_refresh %}
data-ajax-cell-refresh="{{ cell.ajax_refresh }}"
{% endif %}><div>{% render_cell cell %}</div></div>
{% endwith %}
{% endfor %}
{% endwith %}
{% endfor %}
{% endblock %}

View File

@ -1,9 +1,9 @@
{% load i18n %}
{% block cell-content %}
<h2>{{ cell.title }}</h2>
<h2>{{ cell.title }}</h2>
<div>
<div>
{% if form.fields %}
<form method='get' enctype='multipart/form-data' id='chart-filters'>
{{ form.as_p }}
@ -18,10 +18,10 @@
{% endblocktrans %}
</p>
{% endif %}
</div>
</div>
<script>
<script>
$(function () {
if (!$('body').data('filters-cell-id')) {
$('body').data('filters-cell-id', Math.random().toString(36).slice(2, 7));
@ -57,5 +57,5 @@
chart_cell.data('ajax-cell-url', new_url);
});
});
</script>
</script>
{% endblock %}

View File

@ -1,9 +1,9 @@
{% load i18n %}
{% if cell.title %}<h2>{{cell.title}}</h2>{% endif %}
{% if cell.chart_type == "table" or cell.chart_type == "table-inverted" %}
<div id="chart-{{cell.id}}"></div>
<script>
$(function() {
<div id="chart-{{cell.id}}"></div>
<script>
$(function() {
var extra_context = $('#chart-{{cell.id}}').parents('.cell').data('extra-context');
$(window).on('combo:refresh-graphs', function() {
$.ajax({
@ -14,14 +14,14 @@ $(function() {
}
});
}).trigger('combo:refresh-graphs');
});
</script>
});
</script>
{% else %}
<div style="min-height: {{cell.height}}px">
<embed id="chart-{{cell.id}}" type="image/svg+xml" style="width: 100%"/>
</div>
<script>
$(function() {
<div style="min-height: {{cell.height}}px">
<embed id="chart-{{cell.id}}" type="image/svg+xml" style="width: 100%"/>
</div>
<script>
$(function() {
var last_width = 1;
var extra_context = $('#chart-{{cell.id}}').parents('.cell').data('extra-context');
$(window).on('load resize gadjo:sidepage-toggled combo:resize-graphs', function() {
@ -36,6 +36,6 @@ $(function() {
$(window).on('combo:refresh-graphs', function() {
$('#chart-{{cell.id}}').attr('src', "{% url 'combo-dataviz-graph' cell=cell.id %}" + get_graph_querystring(extra_context, last_width));
});
});
</script>
});
</script>
{% endif %}

View File

@ -1,10 +1,10 @@
<div style="position: relative">
{{ form.as_p }}
{% if cell.statistic and cell.chart_type != "table" and cell.chart_type != "table-inverted" %}
<div style="position: absolute; right: 0; top: 0; width: 300px; height: 150px">
{{ form.as_p }}
{% if cell.statistic and cell.chart_type != "table" and cell.chart_type != "table-inverted" %}
<div style="position: absolute; right: 0; top: 0; width: 300px; height: 150px">
<embed type="image/svg+xml" src="{% url 'combo-dataviz-graph' cell=cell.id %}?width=300&height=150"/>
</div>
{% endif %}
</div>
{% endif %}
</div>
<script>

View File

@ -1,5 +1,5 @@
{% block cell-content %}
<div
<div
data-combo-gauge="true"
{% if jsonp %}
data-gauge-count-jsonp-url="{{data_source_url}}"
@ -12,5 +12,5 @@
{% if title %}
{% if url %}<a href="{{url}}">{% endif %}{{title}}{% if url %}</a>{% endif %}
{% endif %}
</div>
</div>
{% endblock %}

View File

@ -1,8 +1,8 @@
{% extends "combo/cell_form.html" %}
{% block cell-form %}
{{ block.super }}
<script>
{{ block.super }}
<script>
$('#id_cfamily_weeklyagendacell-{{ cell.pk }}-agenda_type').on('change', function() {
if ($(this).val() == 'manual') {
$('#id_cfamily_weeklyagendacell-{{ cell.pk }}-agenda_references_template').parent().show();
@ -13,5 +13,5 @@
}
});
$('#id_cfamily_weeklyagendacell-{{ cell.pk }}-agenda_type').change();
</script>
</script>
{% endblock %}

View File

@ -1,15 +1,15 @@
{% load i18n %}
{% block cell-content %}
{% if json.data %}
{% if json.data %}
{% if cell.title %}
<h2>
{% if cell.title %}
<h2>
{{ cell.title }}
</h2>
{% endif %}
</h2>
{% endif %}
<div class="weekly-agenda-cell weekly-agenda-cell-{{ cell.pk }}" data-cell-id="{{ cell.pk }}">
{% with first_monday=json.data.0.date|date|adjust_to_week_monday last_item=json.data|last %}
<div class="weekly-agenda-cell weekly-agenda-cell-{{ cell.pk }}" data-cell-id="{{ cell.pk }}">
{% with first_monday=json.data.0.date|date|adjust_to_week_monday last_item=json.data|last %}
{% with last_day=last_item.date|date|adjust_to_week_monday|add_days:6 %}
{% now 'Y-m-W' as current_week %}
{% spaceless %}
@ -52,7 +52,7 @@
{% endif %}
{% endspaceless %}
{% endwith %}
{% endwith %}
</div>
{% endif %}
{% endwith %}
</div>
{% endif %}
{% endblock %}

View File

@ -1,15 +1,15 @@
{% load i18n %}
{% block cell-content %}
<div class="recent-documents links-list">
<h2>{% trans 'Recent Documents' %}</h2>
{% if results %}
<div class="recent-documents links-list">
<h2>{% trans 'Recent Documents' %}</h2>
{% if results %}
<ul>
{% for object in results %}
<li><a href="{{object.url}}">{{object.label}}</a></li>
{% endfor %}
</ul>
{% else %}
<p>{% trans "You don't have any recent document." %}</p>
{% endif %}
</div>
{% else %}
<p>{% trans "You don't have any recent document." %}</p>
{% endif %}
</div>
{% endblock %}

View File

@ -2,16 +2,16 @@
{% load i18n %}
{% block appbar %}
{% if object.id %}
<h2>{% trans "Edit Image" %}</h2>
{% else %}
<h2>{% trans "New Image" %}</h2>
{% endif %}
{% if object.id %}
<h2>{% trans "Edit Image" %}</h2>
{% else %}
<h2>{% trans "New Image" %}</h2>
{% endif %}
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
@ -22,5 +22,5 @@
<a class="cancel" href="{% url 'combo-manager-homepage' %}">{% trans 'Cancel' %}</a>
{% endif %}
</div>
</form>
</form>
{% endblock %}

View File

@ -2,26 +2,26 @@
{% load static thumbnail i18n %}
{% block cell-form %}
<ul class="gallery" id="gallery-{{cell.id}}" data-order-url="{% url 'combo-gallery-image-order' gallery_pk=cell.id %}">
{% for image in cell.image_set.all %}
<li data-object-id="{{image.id}}">
{% thumbnail image.image "120x120" crop="50% 25%" as im %}
<ul class="gallery" id="gallery-{{cell.id}}" data-order-url="{% url 'combo-gallery-image-order' gallery_pk=cell.id %}">
{% for image in cell.image_set.all %}
<li data-object-id="{{image.id}}">
{% thumbnail image.image "120x120" crop="50% 25%" as im %}
<img height="120" src="{{ im.url }}"/>
{% endthumbnail %}
{% endthumbnail %}
<span class="image-actions">
<a rel="popup" class="image-edit icon-edit" href="{% url 'combo-gallery-image-edit' gallery_pk=cell.id pk=image.id %}"></a>
<a class="image-delete icon-remove-sign" href="{% url 'combo-gallery-image-delete' gallery_pk=cell.id pk=image.id %}"></a>
</span>
</li>
{% endfor %}
<li><a class="button" rel="popup" href="{% url 'combo-gallery-image-add' gallery_pk=cell.id %}">{% trans 'Add an Image' %}</a></li>
</ul>
</li>
{% endfor %}
<li><a class="button" rel="popup" href="{% url 'combo-gallery-image-add' gallery_pk=cell.id %}">{% trans 'Add an Image' %}</a></li>
</ul>
<script src="{% static "js/combo.gallery.js" %}"></script>
<script>gallery($('#gallery-{{cell.id}}'));</script>
<script src="{% static "js/combo.gallery.js" %}"></script>
<script>gallery($('#gallery-{{cell.id}}'));</script>
<div class="edit-form">
{{form.as_p}}
</div>
<div class="edit-form">
{{form.as_p}}
</div>
{% endblock %}

View File

@ -1,30 +1,30 @@
{% load thumbnail %}
{% block cell-content %}
{% if cell.title %}
<h2>{{ cell.title }}</h2>
{% endif %}
<div class="gallery" id="gallery-{{cell.id}}">
{% for image in cell.image_set.all %}
{% if forloop.first %}
{% thumbnail image.image "640x480" crop="50% 25%" as im %}
<div class="main-image">
<img src="{{ im.url }}" title="{{ image.title }}"/>
</div>
<div>
{% endthumbnail %}
{% if cell.title %}
<h2>{{ cell.title }}</h2>
{% endif %}
{% thumbnail image.image "60x60" crop="50% 25%" as im %}
{% thumbnail image.image "640x480" crop="50% 25%" as im_large %}
<a data-image-large="{{ im_large.url }}" class="image-switch" href=""><img src="{{ im.url }}"
<div class="gallery" id="gallery-{{cell.id}}">
{% for image in cell.image_set.all %}
{% if forloop.first %}
{% thumbnail image.image "640x480" crop="50% 25%" as im %}
<div class="main-image">
<img src="{{ im.url }}" title="{{ image.title }}"/>
</div>
<div>
{% endthumbnail %}
{% endif %}
{% thumbnail image.image "60x60" crop="50% 25%" as im %}
{% thumbnail image.image "640x480" crop="50% 25%" as im_large %}
<a data-image-large="{{ im_large.url }}" class="image-switch" href=""><img src="{{ im.url }}"
{% if image.title %} title="{{image.title}}" {% endif %}/></a>
{% endthumbnail %}
{% endthumbnail %}
{% endfor %}
</div>
</div>
<script type="text/javascript">
$(function() {
{% endthumbnail %}
{% endthumbnail %}
{% endfor %}
</div>
</div>
<script type="text/javascript">
$(function() {
var $gallery = $('#gallery-{{cell.id}}');
$gallery.find('.image-switch').on('click', function() {
$gallery.find('div.main-image img').attr('src', $(this).data('image-large'));
@ -32,6 +32,6 @@ $(function() {
$gallery.find('div.main-image img').attr('title', $title);
return false;
});
});
</script>
});
</script>
{% endblock %}

View File

@ -1,7 +1,7 @@
{% load i18n %}
{% block cell-content %}
<h2>{% trans "Latest Page Updates" %}</h2>
<div class="links-list">
<h2>{% trans "Latest Page Updates" %}</h2>
<div class="links-list">
<ul class="latest-page-updates-cell--list">
{% for page in pages %}
<li class="latest-page-updates-cell--item">
@ -18,5 +18,5 @@
</li>
{% endfor %}
</ul>
</div>
</div>
{% endblock %}

View File

@ -2,32 +2,32 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans 'Payments in error' %}</h2>
<h2>{% trans 'Payments in error' %}</h2>
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'lingo-manager-payment-error-list' %}">{% trans 'Payments in error' %}</a>
{{ block.super }}
<a href="{% url 'lingo-manager-payment-error-list' %}">{% trans 'Payments in error' %}</a>
{% endblock %}
{% block content %}
<div>
<form>
<div>
<form>
<p><input name="q" type="search" value="{{ query }}"> <button>{% trans 'Search' %}</button></p>
</form>
</form>
{% if object_list %}
<table class="main">
<thead>
{% if object_list %}
<table class="main">
<thead>
<tr>
<th>{% trans 'Item' %}</th>
<th>{% trans 'Amount' %}</th>
<th colspan="2">{% trans 'Date' %}</th>
</tr>
</thead>
<tbody>
{% for object in object_list %}
<tr>
</thead>
<tbody>
{% for object in object_list %}
<tr>
<td>{% if object.source_url %}<a href="{{ object.source_url }}">{{ object.subject }}</a>{% else %}{{ object.subject }}{% endif %}</td>
<td class="price">{{ object.amount }} €</td>
<td>{{ object.payment_date }}</td>
@ -40,19 +40,19 @@
{% endif %}
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</tr>
{% endfor %}
</tbody>
</table>
{% include "gadjo/pagination.html" %}
{% include "gadjo/pagination.html" %}
{% else %}
<div class="big-msg-info">
{% else %}
<div class="big-msg-info">
{% blocktrans %}
This site doesn't have any payment in error.
{% endblocktrans %}
</div>
{% endif %}
</div>
</div>
{% endif %}
</div>
{% endblock %}

View File

@ -1,12 +1,12 @@
{% load i18n %}
{% block cell-content %}
{% if regies %}
<h2>{% trans "Basket" %}</h2>
<div class="lingo-basket-cell--content">
{% for regie_info in regies %}
<div class="lingo-basket-cell--regie">
{% if regies|length != 1 %}<h3 class="lingo-basket-cell--regie-name">{{regie_info.regie.label}}</h3>{% endif %}
<ul class="lingo-basket-cell--list">
{% if regies %}
<h2>{% trans "Basket" %}</h2>
<div class="lingo-basket-cell--content">
{% for regie_info in regies %}
<div class="lingo-basket-cell--regie">
{% if regies|length != 1 %}<h3 class="lingo-basket-cell--regie-name">{{regie_info.regie.label}}</h3>{% endif %}
<ul class="lingo-basket-cell--list">
{% for item in regie_info.items %}
<li class="lingo-basket-cell--item">
<a class="lingo-basket-cell--item-label" {% if item.source_url %}href="{{ item.source_url }}{% endif %}">{{ item.subject }}</a>
@ -21,20 +21,20 @@
</span>
</li>
{% endfor %}
</ul>
</div>
</ul>
</div>
{% if not regie_info.regie.can_pay_only_one_basket_item %}
<form action="{% url 'lingo-pay' %}" method="POST">
{% csrf_token %}
<p class="lingo-basket-cell--total"><strong>{% trans "Total:" %}</strong> {{ regie_info.total }} €</p>
<input type="hidden" name="next_url" value="{{ cell.page.get_online_url }}" />
<input type="hidden" name="regie" value="{{regie_info.regie.id}}" />
<button class="lingo-basket-cell--pay">{% trans "Pay" %}</button>
</form>
{% endif %}
{% if not regie_info.regie.can_pay_only_one_basket_item %}
<form action="{% url 'lingo-pay' %}" method="POST">
{% csrf_token %}
<p class="lingo-basket-cell--total"><strong>{% trans "Total:" %}</strong> {{ regie_info.total }} €</p>
<input type="hidden" name="next_url" value="{{ cell.page.get_online_url }}" />
<input type="hidden" name="regie" value="{{regie_info.regie.id}}" />
<button class="lingo-basket-cell--pay">{% trans "Pay" %}</button>
</form>
{% endif %}
{% endfor %}
{% endif %}
</div>
{% endfor %}
{% endif %}
</div>
{% endblock %}

View File

@ -1,13 +1,13 @@
{% load i18n %}
{% block cell-content %}
{% if total %}
<p><a href="{{site_base}}{{basket_url}}">{% trans 'Basket:' %}
{% if total %}
<p><a href="{{site_base}}{{basket_url}}">{% trans 'Basket:' %}
{% blocktrans count counter=items|length %}
{{counter}} item
{% plural %}
{{counter}} items
{% endblocktrans %}
({{ total }} €)</a></p>
</form>
{% endif %}
</form>
{% endif %}
{% endblock %}

View File

@ -3,18 +3,18 @@
<head>
<meta charset="utf-8"/>
</head>
<body>
<body>
<div>
<form method="POST" action="{% url 'lingo-cancel-item' pk=object.id %}">
{% csrf_token %}
{% blocktrans with subject=object.subject %}
Are you really sure you want to remove "{{subject}}"?
{% endblocktrans %}
<div class="buttons">
{% blocktrans with subject=object.subject %}
Are you really sure you want to remove "{{subject}}"?
{% endblocktrans %}
<div class="buttons">
<button>{% trans 'Remove' %}</button>
<a class="cancel" href="{{ basket_url }}">{% trans 'Cancel' %}</a>
</div>
</div>
</form>
</div>
</body>
</body>
</html>

View File

@ -1,21 +1,21 @@
{% load i18n %}<!DOCTYPE html>
<html>
<head>
<head>
<meta charset="UTF-8">
<title>{% blocktrans %}Invoice number {{ number }}{% endblocktrans %}</title>
</head>
<body class="invoice_fullpage">
</head>
<body class="invoice_fullpage">
{% if messages %}
<ul class="messages">
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
</ul>
{% endif %}
<div class="invoice">
{% include 'lingo/combo/item.html' %}
</div>
</body>
</body>
</html>

View File

@ -1,19 +1,19 @@
{% load i18n %}
{% block cell-content %}
{% if errors or items or not cell.hide_if_empty %}
{% if title %}<h2>{{ title|safe }}</h2>{% endif %}
<div>
{% if text %}{{ text|safe }}{% endif %}
{% if errors %}
{% if errors or items or not cell.hide_if_empty %}
{% if title %}<h2>{{ title|safe }}</h2>{% endif %}
<div>
{% if text %}{{ text|safe }}{% endif %}
{% if errors %}
<ul class="errorlist">
{% for error in errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
{% if items %}
<div class="pk-table-wrapper">
<table class="invoices">
{% endif %}
{% if items %}
<div class="pk-table-wrapper">
<table class="invoices">
<thead>
<tr>
<th class="invoice-id">{% trans "Number" %}</th>
@ -62,12 +62,12 @@
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% else %}
{% trans "No items yet" %}
{% endif %}
</div>
{% endif %}
</tbody>
</table>
</div>
{% else %}
{% trans "No items yet" %}
{% endif %}
</div>
{% endif %}
{% endblock %}

View File

@ -2,15 +2,15 @@
{% load static i18n %}
{% block combo-content %}
{% block wait-js %}
<script>
function display_error(message) {
{% block wait-js %}
<script>
function display_error(message) {
$('#transaction-error').text(message);
$('#transaction-error').show();
$("#wait-msg").hide();
}
}
$(function() {
$(function() {
var next_url = '{{next_url}}';
var transaction_id = '{{transaction_id}}';
if (transaction_id === "") {
@ -36,18 +36,18 @@ $(function() {
}
});
}
});
</script>
{% endblock %}
});
</script>
{% endblock %}
{% block wait-content%}
<div>
{% block wait-content%}
<div>
{% block wait-message %}
<h2 id="wait-msg" data-continue="{% trans "Wait a moment or click on 'Continue'." %}">{% trans "Please wait while your request is being processed..." %}</h2>
{% endblock %}
<div id="transaction-error" class="errornotice" data-error="{% trans 'An error occured' %}" style="display: none;"></div>
<p><a id="next-url" href="{{next_url}}">{% trans "Continue" %}</a></p>
</p>
</div>
{% endblock %}
</div>
{% endblock %}
{% endblock %}

View File

@ -1,7 +1,7 @@
{% load i18n %}
{% block cell-content %}
<h2>{% trans "Recent Transactions" %}</h2>
<ul>
<h2>{% trans "Recent Transactions" %}</h2>
<ul>
{% for transaction in transactions %}
<li>{{ transaction.start_date|date:"d E o H:i"|lower }}
{% if transaction.is_paid %}
@ -16,5 +16,5 @@
{% endif %}
</li>
{% endfor %}
</ul>
</ul>
{% endblock %}

View File

@ -1,9 +1,9 @@
{% load i18n %}
{% block cell-content %}
{% if title %}<h2>{{ title }}</h2>{% endif %}
<div>
{% if text %}<p>{{ text|safe }}</p>{% endif %}
<form class="quixote" action="{% url 'lingo-self-invoice' cell_id=cell.id %}">
{% if title %}<h2>{{ title }}</h2>{% endif %}
<div>
{% if text %}<p>{{ text|safe }}</p>{% endif %}
<form class="quixote" action="{% url 'lingo-self-invoice' cell_id=cell.id %}">
<div class="widget">
<div class="title">
{% trans 'Invoice Number' %}
@ -26,6 +26,6 @@
<div class="buttons">
<button>{% trans "Pay" %}</button>
</div>
</form>
</div>
</form>
</div>
{% endblock %}

View File

@ -2,10 +2,10 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans 'Online Payment' %}</h2>
<h2>{% trans 'Online Payment' %}</h2>
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'lingo-manager-homepage' %}">{% trans 'Online Payment' %}</a>
{{ block.super }}
<a href="{% url 'lingo-manager-homepage' %}">{% trans 'Online Payment' %}</a>
{% endblock %}

View File

@ -1,16 +1,16 @@
{% load i18n %}
<html>
<head>
</head>
<body onload="document.forms[0].submit()">
<p>
{% trans "Please wait while your browser is being redirected to the payment website..." %}
</p>
<form action="{{ form.url }}" method="{{ form.method }}" style="display: none">
<head>
</head>
<body onload="document.forms[0].submit()">
<p>
{% trans "Please wait while your browser is being redirected to the payment website..." %}
</p>
<form action="{{ form.url }}" method="{{ form.method }}" style="display: none">
{% for field in form.fields %}
<input type="{{ field.type }}" name="{{ field.name }}" value="{{ field.value }}"/>
{% endfor %}
<input type="submit">
</form>
</body>
</form>
</body>
</html>

View File

@ -2,16 +2,16 @@
{% load i18n %}
{% block appbar %}
<h2>{{ view.model.get_verbose_name }}</h2>
<h2>{{ view.model.get_verbose_name }}</h2>
{% endblock %}
{% block content %}
<form method="post">
<form method="post">
{% csrf_token %}
{% blocktrans %}Are you sure you want to delete this?{% endblocktrans %}
<div class="buttons">
<button class="delete-button">{% trans 'Delete' %}</button>
<a class="cancel" href="{% url 'lingo-manager-paymentbackend-list' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,20 +2,20 @@
{% load i18n %}
{% block appbar %}
{% if object.id %}
<h2>{% trans "Edit Payment backend" %}</h2>
{% else %}
<h2>{% trans "New Payment backend" %}</h2>
{% endif %}
{% if object.id %}
<h2>{% trans "Edit Payment backend" %}</h2>
{% else %}
<h2>{% trans "New Payment backend" %}</h2>
{% endif %}
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'lingo-manager-paymentbackend-list' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,21 +2,21 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans 'Payment backends' %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'lingo-manager-paymentbackend-add' %}">{% trans 'New' %}</a>
</span>
<h2>{% trans 'Payment backends' %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'lingo-manager-paymentbackend-add' %}">{% trans 'New' %}</a>
</span>
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'lingo-manager-paymentbackend-list' %}">{% trans 'Payment backends' %}</a>
{{ block.super }}
<a href="{% url 'lingo-manager-paymentbackend-list' %}">{% trans 'Payment backends' %}</a>
{% endblock %}
{% block content %}
{% if object_list %}
<ul class="objects-list single-links">
{% if object_list %}
<ul class="objects-list single-links">
{% for payment_backend in object_list %}
<li>
<a href="{% url 'lingo-manager-paymentbackend-edit' pk=payment_backend.id %}">{{ payment_backend.label }}
@ -25,14 +25,14 @@
<a rel="popup" class="delete" href="{% url 'lingo-manager-paymentbackend-delete' pk=payment_backend.id %}">{% trans "remove" %}</a>
</li>
{% endfor %}
</ul>
{% else %}
<div class="big-msg-info">
</ul>
{% else %}
<div class="big-msg-info">
{% blocktrans %}
This site doesn't have any payment backend yet. Click on the "New" button in the top
right of the page to add a first one.
{% endblocktrans %}
</div>
{% endif %}
</div>
{% endif %}
{% endblock %}

View File

@ -2,16 +2,16 @@
{% load i18n %}
{% block appbar %}
<h2>{{ view.model.get_verbose_name }}</h2>
<h2>{{ view.model.get_verbose_name }}</h2>
{% endblock %}
{% block content %}
<form method="post">
<form method="post">
{% csrf_token %}
{% blocktrans %}Are you sure you want to delete this?{% endblocktrans %}
<div class="buttons">
<button class="delete-button">{% trans 'Delete' %}</button>
<a class="cancel" href="{% url 'lingo-manager-homepage' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,15 +2,15 @@
{% load i18n %}
{% block appbar %}
{% if object.id %}
<h2>{% trans "Edit Regie" %}</h2>
{% else %}
<h2>{% trans "New Regie" %}</h2>
{% endif %}
{% if object.id %}
<h2>{% trans "Edit Regie" %}</h2>
{% else %}
<h2>{% trans "New Regie" %}</h2>
{% endif %}
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% if object.pk %}
{% if callback_url %}<p><label>{% trans "Callback URL:" %}</label> {{ callback_url }}</p>{% endif %}
{% if return_url %}<p><label>{% trans "Return URL:" %}</label> {{ return_url }}</p>{% endif %}
@ -21,5 +21,5 @@
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'lingo-manager-regie-list' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,21 +2,21 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans 'Regies' %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'lingo-manager-regie-add' %}">{% trans 'New' %}</a>
</span>
<h2>{% trans 'Regies' %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'lingo-manager-regie-add' %}">{% trans 'New' %}</a>
</span>
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'lingo-manager-regie-list' %}">{% trans 'Regies' %}</a>
{{ block.super }}
<a href="{% url 'lingo-manager-regie-list' %}">{% trans 'Regies' %}</a>
{% endblock %}
{% block content %}
{% if object_list %}
<ul class="objects-list single-links">
{% if object_list %}
<ul class="objects-list single-links">
{% for regie in object_list %}
<li>
<a href="{% url 'lingo-manager-regie-edit' pk=regie.id %}">{{ regie.label }}
@ -26,14 +26,14 @@
<a rel="popup" class="delete" href="{% url 'lingo-manager-regie-delete' pk=regie.id %}">{% trans "remove" %}</a>
</li>
{% endfor %}
</ul>
{% else %}
<div class="big-msg-info">
</ul>
{% else %}
<div class="big-msg-info">
{% blocktrans %}
This site doesn't have any regie yet. Click on the "New" button in the top
right of the page to add a first one.
{% endblocktrans %}
</div>
{% endif %}
</div>
{% endif %}
{% endblock %}

View File

@ -2,16 +2,16 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans "download CSV" %}</h2>
<h2>{% trans "download CSV" %}</h2>
{% endblock %}
{% block content %}
<form method="post">
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans 'Download' %}</button>
<a class="cancel" href="{% url 'lingo-manager-homepage' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,27 +2,27 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans 'Transactions' %}</h2>
<span class="actions">
<a href="{% url 'lingo-manager-payment-error-list' %}">{% trans 'Payments in error' %}</a>
<a href="{% url 'lingo-manager-paymentbackend-list' %}">{% trans 'Payment backends' %}</a>
<a href="{% url 'lingo-manager-regie-list' %}">{% trans 'Regies' %}</a>
<a rel="popup" href="{% url 'lingo-manager-transactions-download' %}" data-autoclose-dialog="true">{% trans 'download CSV' %}</a>
</span>
<h2>{% trans 'Transactions' %}</h2>
<span class="actions">
<a href="{% url 'lingo-manager-payment-error-list' %}">{% trans 'Payments in error' %}</a>
<a href="{% url 'lingo-manager-paymentbackend-list' %}">{% trans 'Payment backends' %}</a>
<a href="{% url 'lingo-manager-regie-list' %}">{% trans 'Regies' %}</a>
<a rel="popup" href="{% url 'lingo-manager-transactions-download' %}" data-autoclose-dialog="true">{% trans 'download CSV' %}</a>
</span>
{% endblock %}
{% block content %}
<div>
<form>
<div>
<form>
<p>
{{ form.regie }} <input name="q" type="search" value="{{ form.cleaned_data.q }}"> <button>{% trans 'Search' %}</button>
<span class="help_text">{% trans "(supports order identifiers, transaction identifiers, and dates)" %}</span>
</p>
</form>
</form>
{% if object_list %}
<table class="main">
<thead>
{% if object_list %}
<table class="main">
<thead>
<tr>
<th>{% trans 'Order Identifier' %}</th>
<th>{% trans 'Transaction Identifier' %}</th>
@ -31,11 +31,11 @@
<th>{% trans 'Amount' %}</th>
<th colspan="2">{% trans 'Items' %}</th>
</tr>
</thead>
<tbody>
{% for object in object_list %}
{% with object.prefetched_items|length|default:1 as nb_items %}
<tr>
</thead>
<tbody>
{% for object in object_list %}
{% with object.prefetched_items|length|default:1 as nb_items %}
<tr>
<td rowspan="{{ nb_items }}">{{object.order_id}}</td>
<td rowspan="{{ nb_items }}">{{object.bank_transaction_id}}</td>
<td rowspan="{{ nb_items }}">{{object.start_date}}</td>
@ -45,23 +45,23 @@
{% if not forloop.first %}<tr>{% endif %}
<td style="font-size: smaller">{{item.subject}}</td> <td style="font-size: smaller" class="price">{{item.amount}} €</td></tr>
{% empty %}
</tr>
</tr>
{% endfor %}
{% endwith %}
{% endfor %}
</tbody>
</table>
{% endwith %}
{% endfor %}
</tbody>
</table>
{% include "gadjo/pagination.html" %}
{% include "gadjo/pagination.html" %}
{% else %}
<div class="big-msg-info">
{% else %}
<div class="big-msg-info">
{% if form.cleaned_data.q or form.cleaned_data.regie %}
{% trans "No transactions found matching the current search." %}
{% else %}
{% trans "This site doesn't have any transaction yet." %}
{% endif %}
</div>
{% endif %}
</div>
</div>
{% endif %}
</div>
{% endblock %}

View File

@ -1,15 +1,15 @@
{% load i18n %}
{% with widget_value=widget.value|stringformat:'s' %}
{% spaceless %}
<span id="{{ widget.name }}-joined-buttons" class="gadjo-joined-buttons">
<button data-mode="color" aria-pressed="{% if widget.value is None or widget_value|slice:":1" == '#' %}true{% else %}false{% endif %}" role="button">{% trans "Fixed" %}</button>
<button data-mode="text" aria-pressed="{% if widget.value != None and widget_value|slice:":1" != '#' %}true{% else %}false{% endif %}" role="button">{% trans "Variable" %}</button>
</span>
{% endspaceless %}
<input id="{{ widget.name }}-input" {% if widget.value is None or widget_value|slice:":1" == '#' %}type="color"{% else %}type="text"{% endif %} name="{{ widget.name }}"{% if widget.value != None %} value="{{ widget_value }}"{% endif %}{% include "django/forms/widgets/attrs.html" %}>
{% spaceless %}
<span id="{{ widget.name }}-joined-buttons" class="gadjo-joined-buttons">
<button data-mode="color" aria-pressed="{% if widget.value is None or widget_value|slice:":1" == '#' %}true{% else %}false{% endif %}" role="button">{% trans "Fixed" %}</button>
<button data-mode="text" aria-pressed="{% if widget.value != None and widget_value|slice:":1" != '#' %}true{% else %}false{% endif %}" role="button">{% trans "Variable" %}</button>
</span>
{% endspaceless %}
<input id="{{ widget.name }}-input" {% if widget.value is None or widget_value|slice:":1" == '#' %}type="color"{% else %}type="text"{% endif %} name="{{ widget.name }}"{% if widget.value != None %} value="{{ widget_value }}"{% endif %}{% include "django/forms/widgets/attrs.html" %}>
{% endwith %}
<script>
$(function() {
$(function() {
$('#{{ widget.name }}-joined-buttons button').on('click', function() {
var $current_mode = $('#{{ widget.name }}-joined-buttons button[aria-pressed=true]');
$current_mode.data('previous-value', $('#{{ widget.name }}-input').val());
@ -25,5 +25,5 @@ $(function() {
$('#{{ widget.name }}-input').prop('type', mode).val($new_mode.data('previous-value'));
return false;
});
});
});
</script>

View File

@ -2,21 +2,21 @@
{% load i18n %}
{% block appbar %}
{% if form.instance.pk %}
<h2>{% if form.kind == 'geojson' %}{% trans "Edit GeoJSON layer" %}{% else %}{% trans "Edit tiles layer" %}{% endif %}</h2>
{% else %}
<h2>{% if form.kind == 'geojson' %}{% trans "New GeoJSON layer" %}{% else %}{% trans "New tiles layer" %}{% endif %}</h2>
{% endif %}
{% if form.instance.pk %}
<h2>{% if form.kind == 'geojson' %}{% trans "Edit GeoJSON layer" %}{% else %}{% trans "Edit tiles layer" %}{% endif %}</h2>
{% else %}
<h2>{% if form.kind == 'geojson' %}{% trans "New GeoJSON layer" %}{% else %}{% trans "New tiles layer" %}{% endif %}</h2>
{% endif %}
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'combo-manager-page-view' pk=form.instance.map_cell.page_id %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,10 +2,10 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans 'Maps' %}</h2>
<h2>{% trans 'Maps' %}</h2>
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'maps-manager-homepage' %}">{% trans 'Maps' %}</a>
{{ block.super }}
<a href="{% url 'maps-manager-homepage' %}">{% trans 'Maps' %}</a>
{% endblock %}

View File

@ -2,36 +2,36 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans 'Maps' %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'maps-manager-layer-add' kind='geojson' %}">{% trans 'New GeoJSON layer' %}</a>
<a rel="popup" href="{% url 'maps-manager-layer-add' kind='tiles' %}">{% trans 'New tiles layer' %}</a>
</span>
<h2>{% trans 'Maps' %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'maps-manager-layer-add' kind='geojson' %}">{% trans 'New GeoJSON layer' %}</a>
<a rel="popup" href="{% url 'maps-manager-layer-add' kind='tiles' %}">{% trans 'New tiles layer' %}</a>
</span>
{% endblock %}
{% block content %}
{% if object_list %}
<ul class="objects-list single-links layers">
{% if object_list %}
<ul class="objects-list single-links layers">
{% for layer in object_list %}
<li>
<a class="layer-icon-{{ layer.icon }}" href="{% url 'maps-manager-layer-edit' slug=layer.slug %}">{{ layer.label }} {% if layer.kind == 'tiles' %}({{ layer.get_kind_display }}{% if layer.tiles_default %}, {% trans "default layer" %}{% endif %}){% endif %}</a>
<a rel="popup" class="delete" href="{% url 'maps-manager-layer-delete' slug=layer.slug %}">{% trans "remove" %}</a>
</li>
{% endfor %}
</ul>
{% else %}
<div class="big-msg-info">
</ul>
{% else %}
<div class="big-msg-info">
{% blocktrans %}
This site doesn't have any layer yet. Click on the "New" button in the top
right of the page to add a first one.
{% endblocktrans %}
</div>
{% endif %}
</div>
{% endif %}
<h2>{% trans 'Maps on site' %}</h2>
<h2>{% trans 'Maps on site' %}</h2>
{% if map_list %}
<ul class="objects-list single-links maps">
{% if map_list %}
<ul class="objects-list single-links maps">
{% for map in map_list %}
<li>
<a href="{% url 'combo-manager-page-view' pk=map.page_id %}#cell-{{ map.get_reference }}">
@ -43,12 +43,12 @@
</a>
</li>
{% endfor %}
</ul>
{% else %}
<div class="big-msg-info">
</ul>
{% else %}
<div class="big-msg-info">
{% blocktrans %}
This site doesn't have any map yet.
{% endblocktrans %}
</div>
{% endif %}
</div>
{% endif %}
{% endblock %}

View File

@ -1,8 +1,8 @@
{% load l10n %}
{% block cell-content %}
{% if title %}<h2>{{ title }}</h2>{% endif %}
{% localize off %}
<div class="combo-cell-map"
{% if title %}<h2>{{ title }}</h2>{% endif %}
{% localize off %}
<div class="combo-cell-map"
{% block map-attributes %}
data-init-state="{{ initial_state }}"
data-init-zoom="{{ initial_zoom }}" data-min-zoom="{{ min_zoom }}"
@ -22,8 +22,8 @@
{% endblock %}
data-cell-id="{{ cell.pk }}"
>
{% endlocalize %}
<script>
{% endlocalize %}
<script>
var tiles_{{ cell.pk }} = [];
{% for layer in tiles_layers %}
tiles_{{ cell.pk }}.push({
@ -36,6 +36,6 @@
{% for layer in geojson_layers %}
geojson_{{ cell.pk }}[{{ layer.slug|as_json|safe }}] = {{layer|as_json|safe}};
{% endfor %}
</script>
</div>
</script>
</div>
{% endblock %}

View File

@ -2,11 +2,11 @@
{% load i18n %}
{% block cell-form %}
{{ form.as_p }}
{% with cell.get_maplayer_options as options %}
{% if options %}
<p><label>{% trans "Layers:" %}</label></p>
<div>
{{ form.as_p }}
{% with cell.get_maplayer_options as options %}
{% if options %}
<p><label>{% trans "Layers:" %}</label></p>
<div>
<ul class="objects-list list-of-layers">
{% for option in options %}
<li>
@ -16,19 +16,19 @@
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endwith %}
{% with cell.get_free_geojson_layers.exists as free_geojson and cell.get_free_tiles_layers.exists as free_tiles %}
{% if free_geojson or free_tiles %}
<div class="buttons">
</div>
{% endif %}
{% endwith %}
{% with cell.get_free_geojson_layers.exists as free_geojson and cell.get_free_tiles_layers.exists as free_tiles %}
{% if free_geojson or free_tiles %}
<div class="buttons">
{% if free_geojson %}
<a rel="popup" href="{% url 'maps-manager-cell-add-layer' page_pk=page.pk cell_reference=cell.get_reference kind='geojson' %}">{% trans "Add a GeoJSON layer" %}</a>
{% endif %}
{% if free_tiles %}
{% if free_geojson %}|{% endif%} <a rel="popup" href="{% url 'maps-manager-cell-add-layer' page_pk=page.pk cell_reference=cell.get_reference kind='tiles' %}">{% trans "Add a tiles layer" %}</a>
{% endif %}
</div>
{% endif %}
{% endwith %}
</div>
{% endif %}
{% endwith %}
{% endblock %}

View File

@ -2,16 +2,16 @@
{% load i18n %}
{% block appbar %}
<h2>{{ view.model.get_verbose_name }}</h2>
<h2>{{ view.model.get_verbose_name }}</h2>
{% endblock %}
{% block content %}
<form method="post">
<form method="post">
{% csrf_token %}
{% blocktrans %}Are you sure you want to delete this?{% endblocktrans %}
<div class="buttons">
<button class="delete-button">{% trans 'Delete' %}</button>
<a class="cancel" href="{% url 'maps-manager-homepage' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,35 +2,35 @@
{% load i18n %}
{% block appbar %}
{% if object.id %}
<h2>{% trans "Edit Map Layer" %}</h2>
{% if object.kind == 'geojson' %}
<span class="actions">
<a rel="popup" href="{% url 'maps-manager-layer-edit-request-parameters' slug=object.slug %}">{% trans 'Request parameters' %}</a>
</span>
{% endif %}
{% else %}
<h2>{% trans "New Map Layer" %}</h2>
{% endif %}
{% if object.id %}
<h2>{% trans "Edit Map Layer" %}</h2>
{% if object.kind == 'geojson' %}
<span class="actions">
<a rel="popup" href="{% url 'maps-manager-layer-edit-request-parameters' slug=object.slug %}">{% trans 'Request parameters' %}</a>
</span>
{% endif %}
{% else %}
<h2>{% trans "New Map Layer" %}</h2>
{% endif %}
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
{% if object.id %}
<a href="{% url 'maps-manager-layer-edit' slug=object.slug %}">{% trans 'Edit Map Layer' %}</a>
{% else %}
<a href="#">{% trans "New Map Layer" %}</a>
{% endif %}
{{ block.super }}
{% if object.id %}
<a href="{% url 'maps-manager-layer-edit' slug=object.slug %}">{% trans 'Edit Map Layer' %}</a>
{% else %}
<a href="#">{% trans "New Map Layer" %}</a>
{% endif %}
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'maps-manager-homepage' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,10 +2,10 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans "Edit request parameters" %}</h2>
<h2>{% trans "Edit request parameters" %}</h2>
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a rel="popup" href="{% url 'maps-manager-layer-edit-request-parameters' slug=object.slug %}">{% trans "Edit request parameters" %}</a>
{{ block.super }}
<a rel="popup" href="{% url 'maps-manager-layer-edit-request-parameters' slug=object.slug %}">{% trans "Edit request parameters" %}</a>
{% endblock %}

View File

@ -1,9 +1,9 @@
{% load i18n %}
{% block cell-content %}
<h2>{% trans "Notifications" %}</h2>
{% if notifications %}
<div class="links-list">
<ul>
<h2>{% trans "Notifications" %}</h2>
{% if notifications %}
<div class="links-list">
<ul>
{% for notification in notifications %}
<li class="combo-notification {% if notification.acked %}combo-notification-acked{% endif %}"
data-combo-notification-id="{{ notification.public_id }}">
@ -15,22 +15,22 @@
{% endif %}
</li>
{% endfor %}
</ul>
</div>
{% else %}
<div class="cell--body">
<p>{% trans 'No notifications.' %}</p>
</div>
{% endif %}
</ul>
</div>
{% else %}
<div class="cell--body">
<p>{% trans 'No notifications.' %}</p>
</div>
{% endif %}
{% if push_notifications_enabled %}
<div class="cell--body notification-buttons">
<div class="notification-push-on" style="display: none"><a href="#" class="pk-button">Activer les notifications</a></div>
<div class="notification-push-off" style="display: none"><a href="#" class="pk-button">Désactiver les notifications</a></div>
</div>
{% if push_notifications_enabled %}
<div class="cell--body notification-buttons">
<div class="notification-push-on" style="display: none"><a href="#" class="pk-button">Activer les notifications</a></div>
<div class="notification-push-off" style="display: none"><a href="#" class="pk-button">Désactiver les notifications</a></div>
</div>
<script>
$(function() {
<script>
$(function() {
$('.notification-push-on a').on('click', function() {
$('.notification-push-on').hide();
$('.notification-push-off').hide();
@ -50,9 +50,9 @@ $(function() {
$('.notification-push-on').show();
}
});
}
);
</script>
{% endif %}
}
);
</script>
{% endif %}
{% endblock %}

View File

@ -2,15 +2,15 @@
{% load static i18n %}
{% block css %}
{{ block.super }}
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/combo.manager.pwa.css" %}"/>
{{ block.super }}
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/combo.manager.pwa.css" %}"/>
{% endblock %}
{% block appbar %}
<h2>{% trans 'Mobile Application' %}</h2>
<h2>{% trans 'Mobile Application' %}</h2>
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'pwa-manager-homepage' %}">{% trans 'Mobile Application' %}</a>
{{ block.super }}
<a href="{% url 'pwa-manager-homepage' %}">{% trans 'Mobile Application' %}</a>
{% endblock %}

View File

@ -2,16 +2,16 @@
{% load i18n %}
{% block appbar %}
<h2></h2>
<h2></h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'pwa-manager-homepage' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,8 +2,8 @@
{% load i18n thumbnail %}
{% block content %}
<div class="manager-mobile-home-layout">
<div id="mobile-case">
<div class="manager-mobile-home-layout">
<div id="mobile-case">
<div class="screen" style="background: {{ theme_color }};">
<div class="mobile-top-bar"><span class="clock">--:--</span></div>
<div class="mobile-app-content">
@ -20,43 +20,43 @@
<iframe scrolling="no"></iframe>
</div>
</div>
</div>
</div>
<div class="sections">
<div class="sections">
<div class="section pwa-navigation">
<h3>{% trans "Navigation" %}</h3>
<div>
<div class="section pwa-navigation">
<h3>{% trans "Navigation" %}</h3>
<div>
{% if navigation_entries|length %}
<p class="hint">
{% blocktrans %}
Use drag and drop with the ⣿ handles to reorder navigation entries.
{% endblocktrans %}
</p>
{% endif %}
{% if navigation_entries|length %}
<p class="hint">
{% blocktrans %}
Use drag and drop with the ⣿ handles to reorder navigation entries.
{% endblocktrans %}
</p>
{% endif %}
<ul class="objects-list single-links navigation-entries"
<ul class="objects-list single-links navigation-entries"
data-order-url="{% url 'pwa-manager-navigation-order' %}">
{% for entry in navigation_entries %}
<li data-pk="{{entry.pk}}"><span class="handle"></span>
{% for entry in navigation_entries %}
<li data-pk="{{entry.pk}}"><span class="handle"></span>
<a rel="popup" href="{% url 'pwa-manager-navigation-edit' pk=entry.pk %}">{{ entry.get_label }}</a>
<a rel="popup" class="delete" href="{% url 'pwa-manager-navigation-delete' pk=entry.pk %}">{% trans "remove" %}</a>
</li>
{% endfor %}
</ul>
{% if navigation_entries|length < 5 %}
<ul class="objects-list single-links">
<li><a class="add" rel="popup" href="{% url 'pwa-manager-navigation-add' %}">{% trans 'Add a navigation entry' %}</a></li>
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% if navigation_entries|length < 5 %}
<ul class="objects-list single-links">
<li><a class="add" rel="popup" href="{% url 'pwa-manager-navigation-add' %}">{% trans 'Add a navigation entry' %}</a></li>
</ul>
{% endif %}
</div>
</div>
</div>
</div>
<div class="section settings">
<h3>{% trans "Settings" %}</h3>
<div>
<div class="section settings">
<h3>{% trans "Settings" %}</h3>
<div>
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
@ -64,20 +64,20 @@ Use drag and drop with the ⣿ handles to reorder navigation entries.
<button class="submit-button">{% trans "Save" %}</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div> {# .sections #}
</div> {# .manager-mobile-home-layout #}
</div> {# .sections #}
</div> {# .manager-mobile-home-layout #}
<script>
setInterval(function() {
<script>
setInterval(function() {
var $clock = $('#mobile-case .clock');
var date = new Date();
$clock.text(('0' + date.getHours()).slice(-2) + ':' + ('0' + date.getMinutes()).slice(-2));
}, 500);
}, 500);
$(function() {
$(function() {
$('.mobile-app-content .splash').on('click', function() {
$('.mobile-app-content iframe').attr('src', '/');
$('.mobile-app-content').addClass('splash-off');
@ -99,7 +99,7 @@ $(function() {
});
}
});
});
</script>
});
</script>
{% endblock %}

View File

@ -1,8 +1,8 @@
{% if entries|length %}
<div class="pwa-navigation" id="pwa-navigation"
{% if include_user_name %}data-pwa-user-name="{% skeleton_extra_placeholder user-name %}{{user.get_full_name}}{% end_skeleton_extra_placeholder %}"{% endif %}>
<div>
<ul>
<div class="pwa-navigation" id="pwa-navigation"
{% if include_user_name %}data-pwa-user-name="{% skeleton_extra_placeholder user-name %}{{user.get_full_name}}{% end_skeleton_extra_placeholder %}"{% endif %}>
<div>
<ul>
{% for entry in entries %}
<li class="{{ entry.css_class_names }}{% if entry.link_page in page.get_parents_and_self %} selected{% endif %}" data-entry-pk="{{ entry.pk }}"
{% if entry.notification_count %}data-notification-count-url="{{site_base}}/api/notification/count/"{% endif %}
@ -11,17 +11,17 @@
{% if entry.icon %}style="background-image: url({{site_base}}{{entry.icon.url}});"{% endif %}
><span>{{ entry.get_label }}</span></a></li>
{% endfor %}
</ul>
</div>
</ul>
</div>
</div>
<script>
$('li[data-include-user-name]').each(function(idx, elem) {
$('li[data-include-user-name]').each(function(idx, elem) {
var user_name = $(this).parents('#pwa-navigation').data('pwa-user-name');
if (user_name) {
$(this).find('span').text(user_name);
}
});
$('body.authenticated-user li[data-notification-count-url]').each(function(idx, elem) {
});
$('body.authenticated-user li[data-notification-count-url]').each(function(idx, elem) {
var $entry = $(this);
$.ajax({
url: $entry.data('notification-count-url'),
@ -34,6 +34,6 @@ $('body.authenticated-user li[data-notification-count-url]').each(function(idx,
$entry.find('span').append(' <span class="badge">' + data.new + '</span>');
}
}});
});
});
</script>
{% endif %}

View File

@ -1,47 +1,47 @@
{% load i18n thumbnail %}<!DOCTYPE html>
<html>
<head>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
html, body {
html, body {
margin: 0; padding: 1rem;
font-family: sans-serif;
background: {{theme_color}};
}
}
div.info-text {
div.info-text {
background: white;
padding: 1rem;
border-radius: 3px;
max-width: 25rem;
text-align: center;
margin: auto;
}
}
img {
img {
max-width: 100%;
margin: 0 auto;
display: block;
}
}
p.retry {
p.retry {
margin-top: 2rem;
}
}
p.retry a {
p.retry a {
border: 1px solid {{theme_color}};
text-decoration: none;
background: white;
padding: 0.5rem 1rem;
border-radius: 3px;
color: inherit;
}
}
</style>
</head>
<body>
<div class="info-text">
</head>
<body>
<div class="info-text">
{% if pwa_settings.application_icon %}
{% thumbnail pwa_settings.application_icon '512x512' crop='center' format='PNG' as im %}
<img src="{{ im.url }}" alt="">
@ -55,6 +55,6 @@ p.retry a {
<a href=".">{% trans "Retry" %}</a>
</p>
{% endif %}
</div>
</body>
</div>
</body>
</html>

View File

@ -2,17 +2,17 @@
{% load i18n %}
{% block appbar %}
<h2>{{ form.get_title }}</h2>
<h2>{{ form.get_title }}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'combo-manager-page-view' pk=cell.page_id %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,21 +2,21 @@
{% load i18n %}
{% block cell-form %}
{% if cell.has_text_search_service and cell.missing_index %}
<div class="infonotice">
{% if cell.has_text_search_service and cell.missing_index %}
<div class="infonotice">
<p>
{% blocktrans %}
Content indexing has been scheduled and should happen within an hour; search
results will then be available.
{% endblocktrans %}
</p>
</div>
{% endif %}
{{ form.as_p }}
{% with cell.get_search_services_for_display as engines %}
{% if engines %}
<p><label>{% trans "Engines:" %}</label></p>
<div>
</div>
{% endif %}
{{ form.as_p }}
{% with cell.get_search_services_for_display as engines %}
{% if engines %}
<p><label>{% trans "Engines:" %}</label></p>
<div>
<ul class="objects-list list-of-links" id="list-of-links-{{ cell.pk }}"
data-link-list-order-url="{% url 'combo-manager-search-engines-order' page_pk=page.pk cell_reference=cell.get_reference %}">
{% for engine in engines %}
@ -29,9 +29,9 @@
</li>
{% endfor %}
</ul>
</div>
<script>
$(function () {
</div>
<script>
$(function () {
$('#list-of-links-{{ cell.pk }}').sortable({
handle: '.handle',
update: function(event, ui) {
@ -46,16 +46,16 @@ $(function () {
});
}
});
});
</script>
{% endif %}
{% endwith %}
{% if cell.available_engines %}
<div class="search-engine-add">
});
</script>
{% endif %}
{% endwith %}
{% if cell.available_engines %}
<div class="search-engine-add">
{% trans "Add an engine:" %}
{% for key, engine in cell.available_engines.items %}
<a {% if key == '_text' or key == 'users' or key|startswith:'cards:' %}rel="popup"{% endif %} href="{% url 'combo-manager-page-search-cell-add-engine' page_pk=page.pk cell_reference=cell.get_reference engine_slug=key %}">{{ engine.label }}</a> {% if not forloop.last %}|{% endif %}
{% endfor %}
</div>
{% endif %}
</div>
{% endif %}
{% endblock %}

View File

@ -1,19 +1,19 @@
{% load i18n %}
{% if query %}
{% if cell.has_multiple_search_services %}<p class="search-service-label">{{ search_service_label }}</p>{% endif %}
{% if results.data %}
<div class="links-list">
<ul>
{% if cell.has_multiple_search_services %}<p class="search-service-label">{{ search_service_label }}</p>{% endif %}
{% if results.data %}
<div class="links-list">
<ul>
{% for item in results.data %}
<li><a href="{{ item.url }}">{{ item.text }}</a>
{% if item.description %}<div>{{ item.description|safe }}</div>{% endif %}
</li>
{% endfor %}
</ul>
</div>
{% else %}
<div class="infonotice">
</ul>
</div>
{% else %}
<div class="infonotice">
{% trans "…no result found." %}
</div>
{% endif %}
</div>
{% endif %}
{% endif %}

View File

@ -1,30 +1,30 @@
{% load i18n %}
{% block cell-content %}
{% if cell.title %}
<h2>{{ cell.title }}</h2>
{% endif %}
{% if cell.title %}
<h2>{{ cell.title }}</h2>
{% endif %}
{% block search-form-pre %}
{% endblock %}
{% block search-form-pre %}
{% endblock %}
{% block search-form %}
<form id="combo-search-form-{{ cell.pk }}" class="combo-search-form">
{% block search-form %}
<form id="combo-search-form-{{ cell.pk }}" class="combo-search-form">
<input type="search" name="q" autocomplete="off" id="combo-search-input-{{ cell.pk }}" class="combo-search-input" {% if cell.autofocus %}autofocus {% endif %}{% if cell.input_placeholder %}placeholder="{{ cell.input_placeholder }}" {% endif %}/>
<button class="submit-button combo-search--button" aria-label="{% trans 'Search' %}">
<span class="combo-search--button-label">{% block submit-content %}{% trans 'Search' %}{% endblock %}</span>
</button>
</form>
{% endblock %}
</form>
{% endblock %}
{% block search-results %}
{% for search_service in cell.search_services %}
<div id="combo-search-results-{{ cell.pk }}-{{ forloop.counter }}" class="combo-search-results combo-search-results-{{ search_service.slug }}"></div>
{% endfor %}
{% endblock %}
{% block search-results %}
{% for search_service in cell.search_services %}
<div id="combo-search-results-{{ cell.pk }}-{{ forloop.counter }}" class="combo-search-results combo-search-results-{{ search_service.slug }}"></div>
{% endfor %}
{% endblock %}
{% block search-js %}
<script>
$(function() {
{% block search-js %}
<script>
$(function() {
var timeout;
var last_search = null;
var $form = $('#combo-search-form-{{ cell.pk }}');
@ -76,8 +76,8 @@ $(function() {
$input.val('{{ initial_q }}');
update();
{% endif %}
});
</script>
{% endblock %}
});
</script>
{% endblock %}
{% endblock %}

View File

@ -1,9 +1,9 @@
{% load i18n %}
{% block cell-content %}
{% if all_formdefs %}
<h2>{% trans "New Form" %}</h2>
{% for site_formdefs in all_formdefs.values %}
<div class="links-list">
{% if all_formdefs %}
<h2>{% trans "New Form" %}</h2>
{% for site_formdefs in all_formdefs.values %}
<div class="links-list">
{% if all_formdefs.keys|length > 1 %}<h3>{{ site_formdefs.title }}</h3>{% endif %}
<ul>
{% regroup site_formdefs.data|dictsort:"category" by category as categories_formdefs %}
@ -14,9 +14,9 @@
{% endfor %}
{% endfor %}
</ul>
</div>
{% endfor %}
{% elif not combo_hide_empty_message %}
<div class="cell--body"><p class="empty-message">{% trans "There are no possible backoffice submissions." %}</p></div>
{% endif %}
</div>
{% endfor %}
{% elif not combo_hide_empty_message %}
<div class="cell--body"><p class="empty-message">{% trans "There are no possible backoffice submissions." %}</p></div>
{% endif %}
{% endblock %}

View File

@ -1,29 +1,29 @@
{% load combo %}{% spaceless %}
{% if field.type == "text" and field.display_mode == 'rich' and value %}
{% if field.type == "text" and field.display_mode == 'rich' and value %}
{% if cell.display_mode == 'table' or cell.display_mode == 'card' and item.display_mode == 'text' %}
<div class="value">{{ value|safe }}</div>
{% else %}
{{ value|striptags }}
{% endif %}
{% elif field.type == "text" and mode != 'inline' and value %}
{% elif field.type == "text" and mode != 'inline' and value %}
<div class="value">{{ field|format_text:value }}</div>
{% else %}
{% if not mode == 'inline' %}<div class="value">{% endif %}
{% if field.type == "date" %}
{% else %}
{% if not mode == 'inline' %}<div class="value">{% endif %}
{% if field.type == "date" %}
{{ value|date }}
{% elif field.type == "bool" and value is not None %}
{% elif field.type == "bool" and value is not None %}
{{ value|yesno }}
{% elif field.type == "email" and value is not None %}
{% elif field.type == "email" and value is not None %}
<a class="pk-card-field-email" href="mailto:{{ value }}">{{ value }}</a>
{% elif field.type == 'file' and value %}
{% elif field.type == 'file' and value %}
{% if value.content_type|startswith:"image/" %}
<img alt="" src="{% make_public_url url=value.url %}">
{% else %}
<a class="pk-card-field-filename" href="{% make_public_url url=value.url %}" download="{{ value.filename }}">{{ value.filename }}</a>
{% endif %}
{% else %}
{% else %}
{{ value|default:""|urlize }}
{% endif %}
{% if not mode == 'inline' %}</div>{% endif %}
{% endif %}
{% endif %}
{% if not mode == 'inline' %}</div>{% endif %}
{% endif %}
{% endspaceless %}

View File

@ -1,18 +1,18 @@
{% load i18n %}
{% block cell-content %}
{% if not card_not_found %}
{% if not card_not_found %}
{% block cell-header %}
{% if title %}<h2>{{ title|force_escape }}</h2>{% endif %}
{% include "combo/asset_picture_fragment.html" %}
{% endblock %}
{% block cell-header %}
{% if title %}<h2>{{ title|force_escape }}</h2>{% endif %}
{% include "combo/asset_picture_fragment.html" %}
{% endblock %}
{% if card.id %}
{% spaceless %}
{% if cell.custom_schema %}
{% if cell.custom_schema.cells %}
<div class="cell--body">
{% if card.id %}
{% spaceless %}
{% if cell.custom_schema %}
{% if cell.custom_schema.cells %}
<div class="cell--body">
{% with cell.get_custom_schema as custom_schema %}
<div class="{{ custom_schema.grid_class }}">
{% for item in custom_schema.cells %}
@ -74,12 +74,12 @@
{% endfor%}
</div>
{% endwith %}
</div>
{% endif %}
</div>
{% endif %}
{% else %}
<div class="cell--body">
{% for field in schema.fields %}
{% else %}
<div class="cell--body">
{% for field in schema.fields %}
{% if 'varname' in field and field.varname %}
{% with card.fields|get:field.varname as value %}
<div class="card--auto-field">
@ -88,16 +88,16 @@
</div>
{% endwith %}
{% endif %}
{% endfor %}
</div>
{% endif %}
{% endspaceless %}
{% endfor %}
</div>
{% endif %}
{% endspaceless %}
{% else %}
<div class="cell--body">
{% else %}
<div class="cell--body">
<p>{% trans 'Unknown Card' %}</p>
</div>
{% endif %}
</div>
{% endif %}
{% endif %}
{% endif %}
{% endblock %}

View File

@ -1,11 +1,11 @@
{% spaceless %}
{% if item.varname == "@custom@" %}
{% if item.varname == "@custom@" %}
{% if item.template %}
{% with card.custom_fields|get:item.template|force_escape as value %}
{% if not ul_display %}<td>{% endif %}{{ value }}{% if not ul_display %}</td>{% endif %}
{% endwith %}
{% endif %}
{% elif item.varname == "@link@" %}
{% elif item.varname == "@link@" %}
{% if item.template and item.page|default:item.url_template %}
{% with item.page|default:item.url_template as url_key %}
{% with card.custom_fields|get:item.template|force_escape as link_label and card.urls|get:url_key|force_escape as link_url %}
@ -17,7 +17,7 @@
{% endwith %}
{% endwith %}
{% endif %}
{% else %}
{% else %}
{% if item.varname %}
{% with fields_by_varnames|get:item.varname as field %}
{% if field %}
@ -31,5 +31,5 @@
{% endif %}
{% endwith %}
{% endif %}
{% endif %}
{% endif %}
{% endspaceless %}

View File

@ -2,16 +2,16 @@
{% block cell-content %}
{% block cell-header %}
{% if title %}<h2>{{ title|force_escape }}</h2>{% endif %}
{% include "combo/asset_picture_fragment.html" %}
{% endblock %}
{% block cell-header %}
{% if title %}<h2>{{ title|force_escape }}</h2>{% endif %}
{% include "combo/asset_picture_fragment.html" %}
{% endblock %}
{% if card_objects %}
{% with cell.get_custom_schema as custom_schema %}
{% if cell.custom_schema and cell.custom_schema.cells|length > 1 %}
<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers">
{% if card_objects %}
{% with cell.get_custom_schema as custom_schema %}
{% if cell.custom_schema and cell.custom_schema.cells|length > 1 %}
<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers">
{% if custom_schema.grid_headers %}
<thead>
{% for item in custom_schema.cells %}
@ -44,10 +44,10 @@
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% else %}
<div class="links-list cards-{{ cell.card_slug }} list-of-cards">
</table>
</div>
{% else %}
<div class="links-list cards-{{ cell.card_slug }} list-of-cards">
<ul>
{% for card in card_objects %}
<li>
@ -61,12 +61,12 @@
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% include "combo/pagination.html" %}
{% endwith %}
{% else %}
<div class="cell--body"><p class="empty-message">{% trans "There are no cards." %}</p></div>
{% endif %}
</div>
{% endif %}
{% include "combo/pagination.html" %}
{% endwith %}
{% else %}
<div class="cell--body"><p class="empty-message">{% trans "There are no cards." %}</p></div>
{% endif %}
{% endblock %}

View File

@ -1,6 +1,6 @@
{% load i18n combo %}
{% block cell-content %}
{% for slug, forms in care_forms.items %}
{% for slug, forms in care_forms.items %}
<h2>{% if cell.custom_title %}{{ cell.custom_title }}{% else %}{% trans "Forms to process" %} - {{ forms.title }}{% endif %}</h2>
{% if forms.data %}
<table id="listing" class="main clickable-rows">
@ -33,5 +33,5 @@
{% if is_portal_agent %}
<p><a class="pk-button" href="{{ forms.url }}backoffice/management/listing{% if forms.categories %}?category_slugs={{ forms.categories|join:"," }}{% endif %}">{% trans "See all forms" %}</a></p>
{% endif %}
{% endfor %}
{% endfor %}
{% endblock %}

View File

@ -1,6 +1,6 @@
{% block cell-content %}
<div class="wcs-category-{{slug}}">
<h2><a href="{{ url }}">{{ title }}</a></h2>
{{ description|safe }}
</div>
<div class="wcs-category-{{slug}}">
<h2><a href="{{ url }}">{{ title }}</a></h2>
{{ description|safe }}
</div>
{% endblock %}

View File

@ -1,9 +1,9 @@
{% load i18n %}
{% block cell-content %}
<h2>{% trans 'Current Drafts' %}</h2>
{% if drafts %}
{% for slug, forms in current_drafts.items %}
<div class="links-list current-drafts-{{ slug }} current-drafts list-of-forms">
<h2>{% trans 'Current Drafts' %}</h2>
{% if drafts %}
{% for slug, forms in current_drafts.items %}
<div class="links-list current-drafts-{{ slug }} current-drafts list-of-forms">
{% if forms.data %}
<ul>
{% for data in forms.data %}
@ -16,9 +16,9 @@
{% endfor %}
</ul>
{% endif %}
</div>
{% endfor %}
{% include "combo/pagination.html" %}
{% else %}
</div>
{% endfor %}
{% include "combo/pagination.html" %}
{% else %}
<div class="cell--body"><p class="empty-message">{% trans "There are no current drafts." %}</p></div>{% endif %}
{% endblock %}

View File

@ -1,14 +1,14 @@
{% load i18n %}
{% block cell-content %}
<h2>{{ cell.custom_title|default:_('Current Forms') }}</h2>
{% if forms %}
{% for slug, forms in current_forms.items %}
<h2>{{ cell.custom_title|default:_('Current Forms') }}</h2>
{% if forms %}
{% for slug, forms in current_forms.items %}
<div class="links-list current-forms-{{ slug }} current-forms list-of-forms">
{% include "combo/wcs/list_of_forms.html" %}
</div>
{% endfor %}
{% include "combo/pagination.html" %}
{% else %}
{% endfor %}
{% include "combo/pagination.html" %}
{% else %}
<div class="cell--body"><p class="empty-message">{% trans "There are no current forms." %}</p></div>
{% endif %}
{% endif %}
{% endblock %}

View File

@ -1,5 +1,5 @@
{% block cell-content %}
<div class="wcs-form-{{slug}}">
{% include "combo/wcs/form_link_fragment.html" %}
</div>
<div class="wcs-form-{{slug}}">
{% include "combo/wcs/form_link_fragment.html" %}
</div>
{% endblock %}

View File

@ -1,14 +1,14 @@
{% load i18n %}
{% block cell-content %}
<h2>{% trans 'Form Categories' %}</h2>
{% for slug, categories in form_categories.items %}
<div class="categories-{{ slug }}">
<h2>{% trans 'Form Categories' %}</h2>
{% for slug, categories in form_categories.items %}
<div class="categories-{{ slug }}">
<h3>{{ categories.title }}</h3>
<ul>
{% for data in categories.data %}
<li><a href="{{ data.url }}">{{ data.title }}</a></li>
{% endfor %}
</ul>
</div>
{% endfor %}
</div>
{% endfor %}
{% endblock %}

View File

@ -1,14 +1,14 @@
{% firstof form.url url as form_url %}
{% firstof form.title title as form_title %}
{% autoescape off %}
{% firstof form.description description as form_description %}
{% firstof form.description description as form_description %}
{% endautoescape %}
{% block form-link-pre %}{% endblock %}
<a href="{{ form_url }}{% if not request_is_a_bot %}tryauth?cancelurl={{ absolute_uri|urlencode|iriencode }}{% endif %}">{% block form-link-title %}{{ form_title }}{% endblock %}</a>
{% if form_description %}
<div class="description">{% block form-link-description %}{{ form_description|safe }}{% endblock %}</div>
<div class="description">{% block form-link-description %}{{ form_description|safe }}{% endblock %}</div>
{% endif %}
{% block form-link-post %}{% endblock %}

View File

@ -1,38 +1,38 @@
{% load assets i18n %}
{% block cell-content %}
{% if forms or combo_display_even_empty_categories %}
{% block cell-header %}
<h2>{{ title }}</h2>
{% include "combo/asset_picture_fragment.html" %}
{% if description %}
<div class="intro">
{{ description|safe }}
</div>
{% endif %}
{% endblock %}
{% if forms or combo_display_even_empty_categories %}
{% block cell-header %}
<h2>{{ title }}</h2>
{% include "combo/asset_picture_fragment.html" %}
{% if description %}
<div class="intro">
{{ description|safe }}
</div>
{% endif %}
{% endblock %}
<div class="wcs-forms-of-category-{{slug}} links-list">
{% block cell-top-content %}{% endblock cell-top-content %}
<ul>
{% for form in forms %}
<li class="{{ form.css_classes|join:" " }}">{% include "combo/wcs/form_link_fragment.html" %}</li>
{% endfor %}
{% if more_forms %}
<div class="wcs-forms-of-category-{{slug}} links-list">
{% block cell-top-content %}{% endblock cell-top-content %}
<ul>
{% for form in forms %}
<li class="{{ form.css_classes|join:" " }}">{% include "combo/wcs/form_link_fragment.html" %}</li>
{% endfor %}
{% if more_forms %}
<li class="add-more-items">
<a role="button" tabindex="0" aria-expanded="false" aria-controls="more-items-{{ cell.get_reference }}" aria-label="{% trans 'More items' %}" id="btn-more-items-{{ cell.get_reference }}" class="add-more-items--button">{% block cell-more-items-btn-label %}+{% endblock %}</a>
</li>
{% endif %}
</ul>
{% endif %}
</ul>
{% if more_forms %}
<ul style="display: none" class="more-items" id="more-items-{{ cell.get_reference }}" aria-labelledby="btn-wcs-more-items-{{ cell.get_reference }}">
{% for form in more_forms %}
<li class="more-items--item {{ form.css_classes|join:" " }}">
{% if more_forms %}
<ul style="display: none" class="more-items" id="more-items-{{ cell.get_reference }}" aria-labelledby="btn-wcs-more-items-{{ cell.get_reference }}">
{% for form in more_forms %}
<li class="more-items--item {{ form.css_classes|join:" " }}">
{% include "combo/wcs/form_link_fragment.html" %}
</li>
{% endfor %}
{% endif %}
</ul>
</div>
{% endif %}
</li>
{% endfor %}
{% endif %}
</ul>
</div>
{% endif %}
{% endblock %}

View File

@ -1,7 +1,7 @@
{% load combo %}
{% block cell-content %}
{% if forms %}
<ul>
{% if forms %}
<ul>
{% for data in forms.data|dictsortreversed:"form_receipt_datetime" %}
{% if data.url and data.title %}
<li class="{{data.status_css_class}} {% if data.form_status_is_endpoint %}done{% endif %}"><a
@ -16,6 +16,6 @@
<span class="form-status">{{data.status}}</span></a></li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</ul>
{% endif %}
{% endblock %}

View File

@ -3,12 +3,12 @@
{{ display_form.as_p }}
{% if card_schema %}
{{ card_schema|json_script:card_schema_id }}
{{ card_schema|json_script:card_schema_id }}
{# display mode as card #}
{# display mode as card #}
{# UI to customize content layout #}
<div class="as-card wcs-cards-cell--grid">
{# UI to customize content layout #}
<div class="as-card wcs-cards-cell--grid">
<div class="as-card wcs-cards-cell--grid-options">
<span class="as-card wcs-cards-cell--grid-layout-label">{% trans "Grid Layout:" %}</span>
<span class="as-card wcs-cards-cell--grid-layout-mode"></span>
@ -21,10 +21,10 @@
<div class="as-card wcs-cards-cell--grid-buttons">
<button type="button" class="as-card wcs-cards-cell--add-grid-cell-btn">{% trans "Add" %}</button>
</div>
</div>
</div>
{# templates for JS #}
<script type="text/template" class="as-card wcs-cards-cell--grid-form-tpl">
{# templates for JS #}
<script type="text/template" class="as-card wcs-cards-cell--grid-form-tpl">
<form>
<p>
{% trans "Layout" %}
@ -36,8 +36,8 @@
</select>
</p>
</form>
</script>
<script type="text/template" class="as-card wcs-cards-cell--grid-cell-form-tpl">
</script>
<script type="text/template" class="as-card wcs-cards-cell--grid-cell-form-tpl">
<form>
<p>
<label>
@ -165,8 +165,8 @@
</label>
</p>
</form>
</script>
<script type="text/template" class="as-card wcs-cards-cell--grid-cell-tpl">
</script>
<script type="text/template" class="as-card wcs-cards-cell--grid-cell-tpl">
<div class="as-card wcs-cards-cell--grid-cell">
<div class="as-card wcs-cards-cell--grid-cell-content"></div>
<div class="as-card wcs-cards-cell--grid-cell-buttons">
@ -174,12 +174,12 @@
<a role="button" class="as-card wcs-cards-cell--grid-cell-delete">{% trans "Delete" %}</a>
</div>
</div>
</script>
</script>
{# display mode as table #}
{# display mode as table #}
{# UI to customize content layout #}
<div class="as-table wcs-cards-cell--grid">
{# UI to customize content layout #}
<div class="as-table wcs-cards-cell--grid">
<div class="as-table wcs-cards-cell--grid-options">
<span class="as-table wcs-cards-cell--grid-headers-label">{% trans "Display headers:" %}</span>
<span class="as-table wcs-cards-cell--grid-headers-mode"></span>
@ -192,18 +192,18 @@
<div class="as-table wcs-cards-cell--grid-buttons">
<button type="button" class="as-table wcs-cards-cell--add-grid-cell-btn">{% trans "Add" %}</button>
</div>
</div>
</div>
{# templates for JS #}
<script type="text/template" class="as-table wcs-cards-cell--grid-form-tpl">
{# templates for JS #}
<script type="text/template" class="as-table wcs-cards-cell--grid-form-tpl">
<form>
<p>
{% trans "Display headers" %}
<input name="grid-headers" type="checkbox" />
</p>
</form>
</script>
<script type="text/template" class="as-table wcs-cards-cell--grid-cell-form-tpl">
</script>
<script type="text/template" class="as-table wcs-cards-cell--grid-cell-form-tpl">
<form>
<p>
<label>
@ -289,8 +289,8 @@
</p>
</div>
</form>
</script>
<script type="text/template" class="as-table wcs-cards-cell--grid-cell-tpl">
</script>
<script type="text/template" class="as-table wcs-cards-cell--grid-cell-tpl">
<div class="as-table wcs-cards-cell--grid-cell">
<div class="as-table wcs-cards-cell--grid-cell-content"></div>
<div class="as-table wcs-cards-cell--grid-cell-buttons">
@ -298,5 +298,5 @@
<a role="button" class="as-table wcs-cards-cell--grid-cell-delete">{% trans "Delete" %}</a>
</div>
</div>
</script>
</script>
{% endif %}

View File

@ -1,6 +1,6 @@
{% load i18n %}
{% block cell-content %}
<div class="wcs-tracking-code-input">
<div class="wcs-tracking-code-input">
{% block title %}
<h2>{% trans 'Tracking Code' %}</h2>
{% endblock %}
@ -42,5 +42,5 @@
</form>
{% block form-post %}{% endblock %}
</div>
</div>
</div>
{% endblock %}

View File

@ -1,14 +1,14 @@
{% load i18n %}
{% block cell-content %}
<h2>{{ cell.custom_title|default:_('All Forms') }}</h2>
{% if forms %}
{% for slug, forms in user_forms.items %}
<h2>{{ cell.custom_title|default:_('All Forms') }}</h2>
{% if forms %}
{% for slug, forms in user_forms.items %}
<div class="links-list user-forms-{{ slug }} user-all-forms list-of-forms">
{% include "combo/wcs/list_of_forms.html" %}
</div>
{% endfor %}
{% include "combo/pagination.html" %}
{% else %}
{% endfor %}
{% include "combo/pagination.html" %}
{% else %}
<div class="cell--body"><p class="empty-message">{% trans "There are no forms." %}</p></div>
{% endif %}
{% endif %}
{% endblock %}

View File

@ -1,14 +1,14 @@
{% load i18n %}
{% block cell-content %}
<h2>{{ cell.custom_title|default:_('Done Forms') }}</h2>
{% if forms %}
{% for slug, forms in user_forms.items %}
<h2>{{ cell.custom_title|default:_('Done Forms') }}</h2>
{% if forms %}
{% for slug, forms in user_forms.items %}
<div class="links-list user-forms-{{ slug }} list-of-forms">
{% include "combo/wcs/list_of_forms.html" %}
</div>
{% endfor %}
{% include "combo/pagination.html" %}
{% else %}
{% endfor %}
{% include "combo/pagination.html" %}
{% else %}
<div class="cell--body"><p class="empty-message">{% trans "There are no done forms or they have been removed." %}</p></div>
{% endif %}
{% endif %}
{% endblock %}

View File

@ -2,11 +2,11 @@
{% load i18n %}
{% block cell-form %}
{{ form.as_p }}
{% with cell.get_items_with_prefetch as links %}
{% if links %}
<p><label>{% trans "Links:" %}</label></p>
<div>
{{ form.as_p }}
{% with cell.get_items_with_prefetch as links %}
{% if links %}
<p><label>{% trans "Links:" %}</label></p>
<div>
<ul class="objects-list list-of-links" id="list-of-links-{{ cell.pk }}"
data-link-list-order-url="{% url 'combo-manager-link-list-order' page_pk=page.pk cell_reference=cell.get_reference %}">
{% for link in links %}
@ -33,9 +33,9 @@
</li>
{% endfor %}
</ul>
</div>
<script>
$(function () {
</div>
<script>
$(function () {
$('#list-of-links-{{ cell.pk }}').sortable({
handle: '.handle',
update: function(event, ui) {
@ -50,13 +50,13 @@ $(function () {
});
}
});
});
</script>
{% endif %}
{% endwith %}
<div class="buttons">
});
</script>
{% endif %}
{% endwith %}
<div class="buttons">
{% for klass in cell.get_link_cell_classes %}
<a rel="popup" href="{% url 'combo-manager-page-list-cell-add-link' page_pk=page.id cell_reference=cell.get_reference link_code=klass.add_as_link_code %}">{{ klass.add_as_link_label }}</a> {% if not forloop.last %}|{% endif %}
{% endfor %}
</div>
</div>
{% endblock %}

View File

@ -4,5 +4,5 @@
<optgroup label="{{ group_name }}">{% endif %}{% for option in group_choices %}
{% include option.template_name with widget=option %}{% endfor %}{% if group_name %}
</optgroup>{% endif %}{% endfor %}
<!-- "other" option: --> <option value="" data-other="true">{% trans "Other:" %}</option>
<!-- "other" option: --> <option value="" data-other="true">{% trans "Other:" %}</option>
</select>

View File

@ -1,8 +1,8 @@
{% load i18n %}
{% block cell-form-appearance %}
{{ appearance_form.as_p }}
{% if cell.can_have_assets %}
<p><a rel="popup" data-selector="div#assets-listing" href="{% url 'combo-manager-slot-assets' cell_reference=cell.get_reference %}"
{{ appearance_form.as_p }}
{% if cell.can_have_assets %}
<p><a rel="popup" data-selector="div#assets-listing" href="{% url 'combo-manager-slot-assets' cell_reference=cell.get_reference %}"
>{% trans 'Assets' %}</a></p>
{% endif %}
{% endif %}
{% endblock %}

View File

@ -2,17 +2,17 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans "Duplicate Cell" %}</h2>
<h2>{% trans "Duplicate Cell" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'combo-manager-page-view' pk=current_page.pk %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -1,3 +1,3 @@
{% block cell-form %}
{{form.as_p}}
{{form.as_p}}
{% endblock %}

View File

@ -2,12 +2,12 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans 'Cell Options' %}</h2>
<h2>{% trans 'Cell Options' %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
@ -18,5 +18,5 @@
<a class="cancel" href="{% url 'combo-manager-homepage' %}">{% trans 'Cancel' %}</a>
{% endif %}
</div>
</form>
</form>
{% endblock %}

View File

@ -2,11 +2,11 @@
{% load i18n %}
{% block appbar %}
<h2>{{ view.model.get_verbose_name }}</h2>
<h2>{{ view.model.get_verbose_name }}</h2>
{% endblock %}
{% block content %}
<form method="post">
<form method="post">
{% csrf_token %}
<p>
{% if display_choice %}
@ -23,5 +23,5 @@
<button class="delete-button">{% trans 'Delete' %}</button>
<a class="cancel" href="{{ object.get_absolute_url }}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,16 +2,16 @@
{% load i18n %}
{% block appbar %}
<h2>{{ view.model.get_verbose_name }}</h2>
<h2>{{ view.model.get_verbose_name }}</h2>
{% endblock %}
{% block content %}
<form method="post">
<form method="post">
{% csrf_token %}
{% blocktrans %}Are you sure you want to delete this?{% endblocktrans %}
<div class="buttons">
<button class="delete-button">{% trans 'Delete' %}</button>
<a class="cancel" href="{{ object.get_absolute_url }}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,7 +2,7 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans 'Invalid cells' %}</h2>
<h2>{% trans 'Invalid cells' %}</h2>
{% endblock %}
{% block breadcrumb %}
@ -11,18 +11,18 @@
{% endblock %}
{% block content %}
{% if object_list %}
<ul class="objects-list">
{% if object_list %}
<ul class="objects-list">
{% for cell in object_list %}
<li>
{% trans "Page:" %} <a href="{% url 'combo-manager-page-view' pk=cell.page_id %}">{{ cell.page.title }}</a> -
{% trans "Cell:" %} <a href="{% url 'combo-manager-page-view' pk=cell.page_id %}#cell-{{ cell.get_reference }}">{{ cell.get_label }}</a>
</li>
{% endfor %}
</ul>
{% else %}
<div class="big-msg-info">
</ul>
{% else %}
<div class="big-msg-info">
{% trans "No invalid cell found." %}
</div>
{% endif %}
</div>
{% endif %}
{% endblock %}

View File

@ -2,21 +2,21 @@
{% load i18n %}
{% block appbar %}
{% if form.instance.pk %}
<h2>{{ form.instance.edit_link_label }}</h2>
{% else %}
<h2>{{ form.instance.add_link_label }}</h2>
{% endif %}
{% if form.instance.pk %}
<h2>{{ form.instance.edit_link_label }}</h2>
{% else %}
<h2>{{ form.instance.add_link_label }}</h2>
{% endif %}
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'combo-manager-page-view' pk=form.instance.page_id %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,9 +2,9 @@
{% load static i18n %}
{% block css %}
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/combo.manager.css" %}"/>
<link rel="stylesheet" type="text/css" media="all" href="{% static "xstatic/leaflet.css" %}"/>
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/combo.map.css" %}"/>
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/combo.manager.css" %}"/>
<link rel="stylesheet" type="text/css" media="all" href="{% static "xstatic/leaflet.css" %}"/>
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/combo.map.css" %}"/>
{% endblock %}
{% block page-title %}{% firstof site_title "Combo" %}{% endblock %}
{% block site-title %}{% firstof site_title "Combo" %}{% endblock %}
@ -28,11 +28,11 @@
{% block logout-url %}{% url 'auth_logout' %}{% endblock %}
{% block extrascripts %}
{{ block.super }}
<script src="{% static "ckeditor/ckeditor/ckeditor.js" %}"></script>
<script type="text/javascript" src="{% static "ckeditor/ckeditor-init.js" %}"></script>
<script src="{% static "js/combo.manager.js" %}"></script>
<script src="{% static "xstatic/leaflet.js" %}"></script>
<script src="{% static "js/combo.map.js" %}"></script>
<script src="{% url "javascript-catalog" %}"></script>
{{ block.super }}
<script src="{% static "ckeditor/ckeditor/ckeditor.js" %}"></script>
<script type="text/javascript" src="{% static "ckeditor/ckeditor-init.js" %}"></script>
<script src="{% static "js/combo.manager.js" %}"></script>
<script src="{% static "xstatic/leaflet.js" %}"></script>
<script src="{% static "js/combo.map.js" %}"></script>
<script src="{% url "javascript-catalog" %}"></script>
{% endblock %}

View File

@ -1,6 +1,6 @@
{% load i18n %}
{% block cell-form %}
<div class="cell-properties pk-tabs">
<div class="cell-properties pk-tabs">
<div class="pk-tabs--tab-list" role="tablist" aria-label="{% trans "Cell Properties" %}">
{% for tab in manager_tabs %}
<button role="tab"
@ -12,8 +12,8 @@
{% endfor %}
</div>
<form class="pk-tabs--container" action="{{ url }}" method="post">
{% csrf_token %}
<form class="pk-tabs--container" action="{{ url }}" method="post">
{% csrf_token %}
{% for tab in manager_tabs %}
<div id="panel-{{ cell.get_reference }}-{{ tab.slug }}"
role="tabpanel" tabindex="0" {% if not forloop.first %}hidden{% endif %}
@ -22,19 +22,19 @@
{% if tab.template %}{% include tab.template %}{% else %}{{ tab.form_instance.as_p }}{% endif %}
</div>
{% endfor %}
<div class="cell-properties--buttons">
{% block cell-buttons %}
<button class="submit-button save">{% trans 'Save' %}</button>
<span>
<a class="pk-button duplicate-button" rel="popup" title="{% trans 'Duplicate' %}"
<div class="cell-properties--buttons">
{% block cell-buttons %}
<button class="submit-button save">{% trans 'Save' %}</button>
<span>
<a class="pk-button duplicate-button" rel="popup" title="{% trans 'Duplicate' %}"
href="{% url 'combo-manager-page-duplicate-cell' page_pk=page.id cell_reference=cell.get_reference %}"
><span>{% trans 'Duplicate' %}</span></a>
<a class="pk-button delete-button" rel="popup" title="{% trans 'Delete' %}"
<a class="pk-button delete-button" rel="popup" title="{% trans 'Delete' %}"
href="{% url 'combo-manager-page-delete-cell' page_pk=page.id cell_reference=cell.get_reference %}"
><span>{% trans 'Delete' %}</span></a>
</span>
{% endblock %}
</div>
</form>
</div>
</span>
{% endblock %}
</div>
</form>
</div>
{% endblock %}

View File

@ -2,39 +2,39 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans 'Pages' %}</h2>
<span class="actions">
{% if user.is_superuser %}
<a class="extra-actions-menu-opener"></a>
{% endif %}
{% if can_add_page %}
<a rel="popup" href="{% url 'combo-manager-page-add' %}">{% trans 'New' %}</a>
{% endif %}
{% if user.is_superuser %}
<ul class="extra-actions-menu">
<h2>{% trans 'Pages' %}</h2>
<span class="actions">
{% if user.is_superuser %}
<a class="extra-actions-menu-opener"></a>
{% endif %}
{% if can_add_page %}
<a rel="popup" href="{% url 'combo-manager-page-add' %}">{% trans 'New' %}</a>
{% endif %}
{% if user.is_superuser %}
<ul class="extra-actions-menu">
<li><a href="{% url 'combo-manager-site-export' %}" rel="popup" data-autoclose-dialog="true">{% trans 'Export Site' %}</a></li>
<li><a href="{% url 'combo-manager-site-import' %}">{% trans 'Import Site' %}</a></li>
<li><a href="{% url 'combo-manager-invalid-cell-report' %}">{% trans 'Anomaly report' %}</a></li>
<li><a href="{% url 'combo-manager-site-settings' %}" rel="popup" data-autoclose-dialog="true">{% trans 'Site Settings' %}</a></li>
<li><a href="{% url 'combo-manager-site-settings' %}" rel="popup" data-autoclose-dialog="true">{% trans 'Site Settings' %}</a></li>
{% for extra_action in extra_actions %}
<li><a href="{{ extra_action.href }}">{{ extra_action.text }}</a></li>
{% endfor %}
</ul>
{% endif %}
</span>
</ul>
{% endif %}
</span>
{% endblock %}
{% block content %}
{% if object_list %}
{% if object_list %}
<p class="hint">
{% blocktrans %}
Use drag and drop with the ⣿ handles to reorder and change hierarchy of pages.
{% endblocktrans %}
</p>
<p class="hint">
{% blocktrans %}
Use drag and drop with the ⣿ handles to reorder and change hierarchy of pages.
{% endblocktrans %}
</p>
<div class="objects-list" id="pages-list" data-page-order-url="{% url 'combo-manager-page-order' %}">
<div class="objects-list" id="pages-list" data-page-order-url="{% url 'combo-manager-page-order' %}">
{% for page in object_list %}
<div class="page level-{{page.level}}{% if collapse_pages %} untoggled{% endif %}" data-page-id="{{page.id}}" data-level="{{page.level}}">
{% if user.is_superuser %}<span class="handle"></span>{% endif %}
@ -57,14 +57,14 @@ Use drag and drop with the ⣿ handles to reorder and change hierarchy of pages.
{% if collapse_pages %}<span class="togglable"></span>{% endif %}
</div>
{% endfor %}
</div>
{% else %}
<div class="big-msg-info">
</div>
{% else %}
<div class="big-msg-info">
{% blocktrans %}
This site doesn't have any page yet. Click on the "New" button in the top
right of the page to add a first one.
{% endblocktrans %}
</div>
{% endif %}
</div>
{% endif %}
{% endblock %}

View File

@ -2,18 +2,18 @@
{% load i18n %}
{% block appbar %}
{% if view.page_title %}
<h2>{{ view.page_title }}</h2>
{% elif object.id %}
<h2>{% trans "Edit Page" %}</h2>
{% else %}
<h2>{% trans "New Page" %}</h2>
{% endif %}
{% if view.page_title %}
<h2>{{ view.page_title }}</h2>
{% elif object.id %}
<h2>{% trans "Edit Page" %}</h2>
{% else %}
<h2>{% trans "New Page" %}</h2>
{% endif %}
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
@ -24,5 +24,5 @@
<a class="cancel" href="{% url 'combo-manager-homepage' %}">{% trans 'Cancel' %}</a>
{% endif %}
</div>
</form>
</form>
{% endblock %}

View File

@ -2,17 +2,17 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans "Duplicate Page" %}</h2>
<h2>{% trans "Duplicate Page" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'combo-manager-page-view' pk=page.id %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,17 +2,17 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans "Export Page" %}</h2>
<h2>{% trans "Export Page" %}</h2>
{% endblock %}
{% block content %}
<form method="post">
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Export" %}</button>
<a class="cancel" href="{% url 'combo-manager-page-view' pk=page.pk %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,7 +2,7 @@
{% load i18n %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.management_form }}
<table id="page-property-forms">
@ -31,5 +31,5 @@
<button class="submit-button">{% trans "Save" %}</button>
<a class="cancel" href="{% url 'combo-manager-page-view' pk=object.pk %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -4,7 +4,7 @@
{% load thumbnail %}
{% block appbar %}
<h2>{% trans 'Page History' %} - {{ view.page.title }}</h2>
<h2>{% trans 'Page History' %} - {{ view.page.title }}</h2>
{% endblock %}
{% block breadcrumb %}
@ -15,8 +15,8 @@
{% block content %}
<div>
<table class="main">
<div>
<table class="main">
<thead>
<th>{% trans 'Date' %}</th>
<th>{% trans 'Description' %}</th>
@ -45,10 +45,10 @@
</tr>
{% endfor %}
</tbody>
</table>
</table>
{% include "gadjo/pagination.html" %}
{% include "gadjo/pagination.html" %}
</div>
</div>
{% endblock %}

View File

@ -4,23 +4,23 @@
{% load thumbnail %}
{% block appbar %}
<h2>{% trans 'Page' %} - {{ object.title }}</h2>
<span class="actions">
<a class="extra-actions-menu-opener"></a>
<a class="action-see-online" href="{{ object.get_online_url }}">{% trans 'See online' %}</a>
<ul class="extra-actions-menu">
<h2>{% trans 'Page' %} - {{ object.title }}</h2>
<span class="actions">
<a class="extra-actions-menu-opener"></a>
<a class="action-see-online" href="{{ object.get_online_url }}">{% trans 'See online' %}</a>
<ul class="extra-actions-menu">
<li><a class="action-history" href="{% url 'combo-manager-page-history' pk=object.id %}">{% trans 'History' %}</a></li>
<li><a {% if page_has_subpages %}rel="popup" data-autoclose-dialog="true" {% endif %}class="action-export" href="{% url 'combo-manager-page-export' pk=object.id %}">{% trans 'Export' %}</a></li>
<li><a class="action-edit-page-variables" rel="popup" href="{% url 'combo-manager-page-edit-extra-variables' pk=object.id %}">{% trans "Edit extra page variables" %}</a></li>
{% if perms.data.add_page %}
{% if perms.data.add_page %}
<li><a class="action-add-child" rel="popup" href="{% url 'combo-manager-page-add-child' pk=object.id %}">{% trans 'Add a child page' %}</a></li>
<li><a class="action-edit-roles" rel="popup" href="{% url 'combo-manager-page-edit-roles' pk=object.id %}">{% trans 'Manage edit roles' %}</a></li>
<li><a rel="popup" class="action-duplicate" href="{% url 'combo-manager-page-duplicate' pk=object.id %}">{% trans 'Duplicate' %}</a></li>
<li><a rel="popup" class="action-save" href="{% url 'combo-manager-page-save' pk=object.id %}">{% trans 'Save snapshot' %}</a></li>
<li><a class="action-delete" rel="popup" href="{% url 'combo-manager-page-delete' pk=object.id %}">{% trans 'Delete' %}</a></li>
{% endif %}
</ul>
</span>
{% endif %}
</ul>
</span>
{% endblock %}
{% block breadcrumb %}
@ -29,57 +29,57 @@
{% endblock %}
{% block sidebar %}
<aside id="sidebar">
<aside id="sidebar">
<div class="page-options">
<h3>{% trans 'Parameters' %}</h3>
<div class="page-options">
<h3>{% trans 'Parameters' %}</h3>
<p>
<label>{% trans 'Title:' %}</label>
{{object.title}}
(<a rel="popup" href="{% url 'combo-manager-page-edit-title' pk=object.id %}">{% trans 'change' %}</a>)
</p>
<p>
<label>{% trans 'Title:' %}</label>
{{object.title}}
(<a rel="popup" href="{% url 'combo-manager-page-edit-title' pk=object.id %}">{% trans 'change' %}</a>)
</p>
<p>
<label>{% trans 'Slug:' %}</label>
<tt>{{ object.slug }}{% if object.sub_slug %}/<span class="subslug">{{ object.sub_slug }}</span>{% endif %}</tt>
(<a rel="popup" href="{% url 'combo-manager-page-edit-slug' pk=object.id %}">{% trans 'change' %}</a>)
</p>
<p>
<label>{% trans 'Slug:' %}</label>
<tt>{{ object.slug }}{% if object.sub_slug %}/<span class="subslug">{{ object.sub_slug }}</span>{% endif %}</tt>
(<a rel="popup" href="{% url 'combo-manager-page-edit-slug' pk=object.id %}">{% trans 'change' %}</a>)
</p>
<p>
<label>{% trans 'Description:' %}</label>
{% if object.description %}{{ object.description|truncatewords:32 }}{% else %}<i>{% trans 'none' %}</i>{% endif %}
(<a rel="popup" href="{% url 'combo-manager-page-edit-description' pk=object.id %}">{% trans 'change' %}</a>)
</p>
<p>
<label>{% trans 'Description:' %}</label>
{% if object.description %}{{ object.description|truncatewords:32 }}{% else %}<i>{% trans 'none' %}</i>{% endif %}
(<a rel="popup" href="{% url 'combo-manager-page-edit-description' pk=object.id %}">{% trans 'change' %}</a>)
</p>
<p>
<label>{% trans 'Template:' %}</label>
{{ object.get_template_display_name }}
{% if object.missing_template %}<span class="error">({% trans "missing" %})</span>{% endif %}
(<a rel="popup" href="{% url 'combo-manager-page-select-template' pk=object.id %}">{% trans 'change' %}</a>)
</p>
<p>
<label>{% trans 'Template:' %}</label>
{{ object.get_template_display_name }}
{% if object.missing_template %}<span class="error">({% trans "missing" %})</span>{% endif %}
(<a rel="popup" href="{% url 'combo-manager-page-select-template' pk=object.id %}">{% trans 'change' %}</a>)
</p>
<p>
<label>{% trans 'Visibility:' %}</label>
{{ object.visibility }}
(<a rel="popup" href="{% url 'combo-manager-page-visibility' pk=object.id %}">{% trans 'change' %}</a>)
</p>
<p>
<label>{% trans 'Visibility:' %}</label>
{{ object.visibility }}
(<a rel="popup" href="{% url 'combo-manager-page-visibility' pk=object.id %}">{% trans 'change' %}</a>)
</p>
<p>
<label>{% trans 'Include in navigation menus:' %}</label>
{% if object.exclude_from_navigation %}{% trans 'no' %}{% else %}{% trans 'yes' %}{% endif %}
(<a rel="popup" href="{% url 'combo-manager-page-edit-include-in-navigation' pk=object.id %}">{% trans 'change' %}</a>)
</p>
<p>
<label>{% trans 'Include in navigation menus:' %}</label>
{% if object.exclude_from_navigation %}{% trans 'no' %}{% else %}{% trans 'yes' %}{% endif %}
(<a rel="popup" href="{% url 'combo-manager-page-edit-include-in-navigation' pk=object.id %}">{% trans 'change' %}</a>)
</p>
<p>
<label>{% trans 'Redirection:' %}</label>
{% if object.redirect_url %}{{ object.redirect_url }}{% else %}<i>{% trans 'none' %}</i>{% endif %}
(<a rel="popup" href="{% url 'combo-manager-page-edit-redirection' pk=object.id %}">{% trans 'change' %}</a>)
</p>
<p>
<label>{% trans 'Redirection:' %}</label>
{% if object.redirect_url %}{{ object.redirect_url }}{% else %}<i>{% trans 'none' %}</i>{% endif %}
(<a rel="popup" href="{% url 'combo-manager-page-edit-redirection' pk=object.id %}">{% trans 'change' %}</a>)
</p>
<p>
<label>{% trans 'Picture:' %}</label>
{% if object.picture %}
<p>
<label>{% trans 'Picture:' %}</label>
{% if object.picture %}
{% if object.picture_extension != '.svg' %}
{% thumbnail object.picture "320x240" crop="50% 25%" upscale=False as im %}
<img class="page-picture" src="{{im.url}}"/>
@ -87,74 +87,74 @@
{% else %}
<img class="page-picture" src="{{page.picture.url}}"/>
{% endif %}
(<a href="{% url 'combo-manager-page-remove-picture' pk=object.id %}">{% trans 'remove' %}</a>)
{% else %}<i>{% trans 'none' %}</i>{% endif %}
(<a rel="popup" href="{% url 'combo-manager-page-edit-picture' pk=object.id %}">{% trans 'change' %}</a>)
</p>
(<a href="{% url 'combo-manager-page-remove-picture' pk=object.id %}">{% trans 'remove' %}</a>)
{% else %}<i>{% trans 'none' %}</i>{% endif %}
(<a rel="popup" href="{% url 'combo-manager-page-edit-picture' pk=object.id %}">{% trans 'change' %}</a>)
</p>
{% if object.extra_variables %}
<p>
<label>{% trans 'Extra variables:' %}</label>
{% for key in object.get_extra_variables_keys %}<i>{{ key }}</i>{% if not forloop.last %}, {% endif %}{% endfor %}
(<a rel="popup" href="{% url 'combo-manager-page-edit-extra-variables' pk=object.id %}">{% trans 'change' %}</a>)
</p>
{% endif %}
{% if object.extra_variables %}
<p>
<label>{% trans 'Extra variables:' %}</label>
{% for key in object.get_extra_variables_keys %}<i>{{ key }}</i>{% if not forloop.last %}, {% endif %}{% endfor %}
(<a rel="popup" href="{% url 'combo-manager-page-edit-extra-variables' pk=object.id %}">{% trans 'change' %}</a>)
</p>
{% endif %}
</div>
</div>
{% if object.parent_id or previous_page or next_page %}
<div class="page-options navigation">
<h3>{% trans 'Navigation' %}</h3>
<ul>
{% if object.parent_id and request.user.is_superuser %}
<li class="nav-up"><a href="{% url 'combo-manager-page-view' pk=object.parent_id %}">{{ object.parent.title }}</a></li>
{% endif %}
{% if previous_page %}
<li class="nav-left"><a href="{% url 'combo-manager-page-view' pk=previous_page.pk %}">{{ previous_page.title }}</a></li>
{% endif %}
{% if next_page %}
<li class="nav-right"><a href="{% url 'combo-manager-page-view' pk=next_page.pk %}">{{ next_page.title }}</a></li>
{% endif %}
</ul>
</div>
{% endif %}
{% if object.parent_id or previous_page or next_page %}
<div class="page-options navigation">
<h3>{% trans 'Navigation' %}</h3>
<ul>
{% if object.parent_id and request.user.is_superuser %}
<li class="nav-up"><a href="{% url 'combo-manager-page-view' pk=object.parent_id %}">{{ object.parent.title }}</a></li>
{% endif %}
{% if previous_page %}
<li class="nav-left"><a href="{% url 'combo-manager-page-view' pk=previous_page.pk %}">{{ previous_page.title }}</a></li>
{% endif %}
{% if next_page %}
<li class="nav-right"><a href="{% url 'combo-manager-page-view' pk=next_page.pk %}">{{ next_page.title }}</a></li>
{% endif %}
</ul>
</div>
{% endif %}
{% if optional_placeholders %}
<div class="page-options">
<h3>{% trans 'Optional sections' %}</h3>
<ul>
{% for placeholder in optional_placeholders %}
{% if optional_placeholders %}
<div class="page-options">
<h3>{% trans 'Optional sections' %}</h3>
<ul>
{% for placeholder in optional_placeholders %}
<li>
{{ placeholder.name }} ({% if placeholder.is_empty %}{% trans "empty" %}{% else %}{% trans "like parent" %}{% endif %})
(<a href="{% url 'combo-manager-page-view' pk=object.id %}?include-section={{ placeholder.key }}">{% trans 'change' %}</a>)
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endfor %}
</ul>
</div>
{% endif %}
</aside>
</aside>
{% endblock %} {# sidebar #}
{% block content %}
<div id="page-content">
<div id="page-content">
{% if object.redirect_url %}
<div class="infonotice">
{% if object.redirect_url %}
<div class="infonotice">
<p>
{% blocktrans with redirect_url=object.redirect_url %}This page is configured as a redirection to the URL "{{ redirect_url }}".{% endblocktrans %}
{% if redirect_url_is_absolute %}
{% trans "It will also be used as a template for the pages behind this URL." %}
{% endif %}
</p>
</div>
{% endif %}
</div>
{% endif %}
<div id="placeholders"
<div id="placeholders"
data-cell-order-url="{% url 'combo-manager-cell-order' page_pk=object.id %}"
>
{% for placeholder in placeholders %}
{% for placeholder in placeholders %}
<div class="placeholder" data-placeholder-key="{{ placeholder.key }}">
<h2>{{ placeholder.name }}</h2>
<a class="placeholder-options-link" data-popup href="{% url 'combo-manage-placeholder-options' page_pk=object.id placeholder=placeholder.key %}">{% trans "Options" %}</a>
@ -210,9 +210,9 @@
</div>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
</div>
</div>
{% endblock %}

View File

@ -2,17 +2,17 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans "Options" %}</h2>
<h2>{% trans "Options" %}</h2>
{% endblock %}
{% block content %}
<form method="post">
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Submit" %}</button>
<a class="cancel" href="{% url 'combo-manager-page-view' pk=page.pk %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,11 +2,11 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans "Site Export" %}</h2>
<h2>{% trans "Site Export" %}</h2>
{% endblock %}
{% block content %}
<form method="post">
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
@ -18,5 +18,5 @@
$('<span></span>', {'text': data, 'class': 'asset-export-size'}).appendTo($('label[for=id_asset_files]'));
}, 'text' );
</script>
</form>
</form>
{% endblock %}

View File

@ -2,17 +2,17 @@
{% load i18n %}
{% block appbar %}
<h2>{% trans "Site Import" %}</h2>
<h2>{% trans "Site Import" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button>{% trans "Import" %}</button>
<a class="cancel" href="{% url 'combo-manager-homepage' %}">{% trans 'Cancel' %}</a>
</div>
</form>
</form>
{% endblock %}

Some files were not shown because too many files have changed in this diff Show More