grenoble-metropole-2019: initial theme (#29618)

This commit is contained in:
Serghei Mihai 2019-02-01 17:15:07 +01:00
parent 40d75eb31b
commit 5ec02866aa
63 changed files with 2442 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,57 @@
$width: 1100px;
$mobile-limit: 1024px;
$nav-full-width-background: true;
$font-size: 16px;
$font-family: Roboto;
$primary-color: #FFEC44;
$link-color: #4D4D4D;
$border-radius: 0;
$title-border-bottom: none;
$title-color: #000;
$title-font-size: 32px;
$title-font-family: 'Josefin Sans';
$title-weight: bold;
$title-background: transparent;
$title-padding: 1ex 1ex 1ex 0;
$secondary-color: #b1d3ec;
$ternary-color: #9fd1b8;
$notifications-background-color: #cf6b53;
$gam-button-background-color: #b0b0b0;
$gam-user-cell-background-color: #f1f1f1;
$nav-item-hover-background: transparent;
$nav-item-hover-color: #000000;
$nav-item-selected-border: 0;
$nav-after-image: false;
$nav-mobile-bottom-bar-background: #1d1d1b;
$nav-mobile-bottom-bar-height: 55px;
$nav-mobile-bottom-bar-badge-background: $notifications-background-color;
$nav-mobile-bottom-bar-badge-color: #000000;
$nav-mobile-bottom-bar-item-hover-color: #ffffff;
$footer-background: #000;
$footer-color: $primary-color;
$cell-entry-border-color: #000;
$cell-background: transparent;
$cell-border: 0px solid transparent;
$cell-entry-hover-background: $primary-color;
$cell-entry-border-color: transparent;
$sidebar-width: auto;
$button-background: $primary-color;
$button-color: #000;
$widget-focus-background: #ffffff;
$widget-custom-radio-checkbox: true;
$widget-border: 1px solid $gam-button-background-color;
$widget-background: $gam-user-cell-background-color;
$widget-custom-radio-checkbox-color: $gam-user-cell-background-color;
$widget-unique-checkbox-position: left;
$form-sidebar-position: right;

View File

@ -0,0 +1,70 @@
{
"label": "Grenoble Métropole 2019",
"variables": {
"global_title": "Grenoble Métropole",
"pwa_display": "standalone",
"include_top_links": false,
"email_header_img": "img/logo-metro.png",
"theme_color": "#FFEC44"
},
"settings": {
"combo": {
"JSON_CELL_TYPES": {
"user": {
"cache_duration": 60,
"name": "Cellule usager",
"url": "{{ idp_url }}api/users/{{ user_nameid}}/",
"varnames": ["user_nameid"]
},
"user-drafts-number": {
"cache_duration": 60,
"name": "Nombre de brouillons de l'usager",
"url": "{{ eservices_url }}api/users/{{ user_nameid}}/drafts",
"varnames": ["user_nameid"]
},
"user-demands-number": {
"cache_duration": 60,
"name": "Nombre de demandes en cours l'usager",
"url": "{{ eservices_url }}api/users/{{ user_nameid}}/forms",
"varnames": ["user_nameid"]
}
},
"COMBO_ASSET_SLOTS.update": {
"notification:administration": { "label": "Notification : Administration" },
"notification:dechets": { "label": "Notification : Déchets" },
"notification:eau-potable": { "label": "Notification : Eau potable" },
"notification:eaux-usees": { "label": "Notification : Eaux usées" },
"notification:economie": { "label": "Notification : Economie" },
"notification:logement": { "label": "Notification : Logement" },
"notification:rh": { "label": "Notification : Ressources Humaines" },
"notification:solidarite": { "label": "Notification : Solidarité" },
"notification:urbanisme": { "label": "Notification : Urbanisme" },
"notification:voirie": { "label": "Notification : Voirie" },
"notification:deplacements": { "label": "Notification : Déplacements" },
"notification:autres-questions": { "label": "Notification : Autres questions" },
"notification:deplacements": { "label": "Notification : Déplacements" },
"notification:environnement": { "label": "Notification : Environnement" },
"notification:participation": { "label": "Notification : Participation" },
"notification:proxi-communes": { "label": "Notification : Proxi-communes" },
"notification:mobilites": { "label": "Notification : Mobilités" },
"category:administration": { "label": "Catégorie : Administration" },
"category:gestion-des-dechets": { "label": "Catégorie : Déchets" },
"category:eau-potable": { "label": "Catégorie : Eau potable" },
"category:eaux-usees": { "label": "Catégorie : Eaux usées" },
"category:economie": { "label": "Catégorie : Economie" },
"category:logement": { "label": "Catégorie : Logement" },
"category:rh": { "label": "Catégorie : Ressources Humaines" },
"category:solidarites": { "label": "Catégorie : Solidarités" },
"category:urbanisme": { "label": "Catégorie : Urbanisme" },
"category:voirie": { "label": "Catégorie : Voirie" },
"category:deplacements": { "label": "Catégorie : Déplacements" },
"category:autre": { "label": "Catégorie : Autres questions" },
"category:deplacements": { "label": "Catégorie : Déplacements" },
"category:environnement": { "label": "Catégorie : Environnement" },
"category:participation": { "label": "Catégorie : Participation" },
"category:proxi-agents": { "label": "Catégorie : Proxi Agents" },
"category:mobilites": { "label": "Catégorie : Mobilités" }
}
}
}
}

View File

@ -0,0 +1,41 @@
$(function() {
// mark "Services" link as selected
$("a[title='Services']").parents().addClass("selected");
if (document.body.attributes['data-picture']) {
var sheet = document.head.appendChild(document.createElement("style")).sheet;
sheet.insertRule('#content .topbanner-wrapper .bandeau {background-image: url("' + document.body.attributes['data-picture'].value + '"); background-repeat: no-repeat; background-size: cover;}', 0);
};
$('div.wcs-tracking-code-input h2').on('click', function (e) {
$(this).parent().toggleClass('toggled');
});
$('div.notification a.ack').on('click', function(event) {
var notification = $(this).parents('.notification');
var forget_url = $(notification).data('combo-notification-forget-url');
$.ajax({
url: forget_url,
success: function(html) {
$(notification).hide({effect: 'fade', complete: function() { $(this).remove() }});
}
});
return false;
});
$('a#publik-mobile-menu').on('click', function(e) {
$('div#nav').toggleClass('open');
});
$(document).on('combo:cell-loaded', function(ctx, elem) {
if ($('.menucell', elem).length > 0) {
var menu_page_ids = $.makeArray($('[data-menu-page-id]', elem).map(function() { return $(this).data('menu-page-id'); }))
$.ajax({url: $('body').data('api-root') + 'menu-badges/',
xhrFields: { withCredentials: true },
async: true,
dataType: 'json',
data: {'page': menu_page_ids},
crossDomain: true,
success: function(data) {
$(document).trigger('combo:menu-badges-loaded', data);
}});
}
});
})

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23.7 22.29"><defs><style>.cls-1{fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7px;}</style></defs><title>Fichier 27</title><g id="Calque_2" data-name="Calque 2"><g id="Bloc_H1" data-name="Bloc H1"><path class="cls-1" d="M.85,10.88l10-9.61a1.52,1.52,0,0,1,2.1,0l3.38,3.27L19.82,8l3,2.92m-3,2.32s0-1.79,0-1.75v8.71c0,.7-.4,1.28-.88,1.28H14.56V13.73H9.15v7.71H4.77c-.49,0-.89-.58-.89-1.28V11.45s0,1.79,0,1.75"/></g></g></svg>

After

Width:  |  Height:  |  Size: 509 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1,93 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="32"
height="32"
viewBox="0 0 8.4666664 8.4666672"
version="1.1"
id="svg7955"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
sodipodi:docname="arrow-right.svg">
<defs
id="defs7949">
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath346">
<path
d="M 0,3159 H 1149 V 0 H 0 Z"
id="path344"
inkscape:connector-curvature="0" />
</clipPath>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="13.812889"
inkscape:cx="4.3740433"
inkscape:cy="16.452889"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
inkscape:window-width="1920"
inkscape:window-height="1030"
inkscape:window-x="0"
inkscape:window-y="26"
inkscape:window-maximized="1" />
<metadata
id="metadata7952">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-288.53332)">
<g
transform="matrix(0.35277777,0,0,-0.35277777,-40.930041,999.74692)"
id="g340">
<g
id="g342"
clip-path="url(#clipPath346)">
<g
id="g348"
transform="translate(116,2004)">
<path
d="M 0,0 C 0,6.627 5.373,12 12,12 18.627,12 24,6.627 24,0 24,-6.627 18.627,-12 12,-12 5.373,-12 0,-6.627 0,0"
style="fill:#98dbbd;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path350"
inkscape:connector-curvature="0" />
</g>
<g
id="g352"
transform="translate(126.9644,1997.4072)">
<path
d="m 0,0 c -0.209,-0.21 -0.544,-0.21 -0.754,0 l -1.391,1.391 c -0.209,0.21 -0.209,0.544 0,0.754 l 4.449,4.448 -4.449,4.448 c -0.209,0.21 -0.209,0.544 0,0.754 l 1.391,1.391 c 0.21,0.21 0.545,0.21 0.754,0 L 6.216,6.97 c 0.209,-0.209 0.209,-0.545 0,-0.754 z"
style="fill:#1c1c1b;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path354"
inkscape:connector-curvature="0" />
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="32"
height="32"
viewBox="0 0 8.4666667 8.466667"
version="1.1"
id="svg7355"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
sodipodi:docname="check.svg">
<defs
id="defs7349" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="13.812889"
inkscape:cx="22.239272"
inkscape:cy="26.349769"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1030"
inkscape:window-x="0"
inkscape:window-y="26"
inkscape:window-maximized="1"
units="px" />
<metadata
id="metadata7352">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-288.53332)">
<g
transform="matrix(0.99942018,0,0,0.99942018,61.90188,151.50574)"
id="g7334">
<g
transform="matrix(0.35277777,0,0,-0.35277777,-61.941949,141.33681)"
id="g906">
<path
inkscape:connector-curvature="0"
id="path908"
style="fill:#cacaca;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 0,0 C 0,6.627 5.373,12 12,12 18.627,12 24,6.627 24,0 24,-6.627 18.627,-12 12,-12 5.373,-12 0,-6.627 0,0" />
</g>
<g
transform="matrix(0.35277777,0,0,-0.35277777,-55.501003,140.46795)"
id="g910">
<path
inkscape:connector-curvature="0"
id="path912"
style="fill:#1c1c1b;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 0,0 -6.065,-6.064 -1.14,-1.14 c -0.15,-0.151 -0.359,-0.235 -0.569,-0.235 -0.209,0 -0.419,0.084 -0.57,0.235 l -1.139,1.14 -3.033,3.031 c -0.151,0.151 -0.234,0.361 -0.234,0.57 0,0.209 0.083,0.419 0.234,0.57 l 1.14,1.139 c 0.15,0.15 0.36,0.234 0.569,0.234 0.21,0 0.419,-0.084 0.57,-0.234 l 2.463,-2.471 5.495,5.503 c 0.151,0.152 0.361,0.236 0.57,0.236 0.209,0 0.419,-0.084 0.569,-0.236 L 0,1.139 C 0.151,0.988 0.234,0.779 0.234,0.57 0.234,0.36 0.151,0.15 0,0" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
viewBox="0 0 85.51 85.51"
version="1.1"
id="svg14"
sodipodi:docname="infobulle.svg"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
<metadata
id="metadata18">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title>Fichier 1</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="774"
inkscape:window-height="480"
id="namedview16"
showgrid="false"
inkscape:zoom="2.7599111"
inkscape:cx="42.755001"
inkscape:cy="42.755001"
inkscape:window-x="0"
inkscape:window-y="26"
inkscape:window-maximized="0"
inkscape:current-layer="svg14" />
<defs
id="defs4">
<style
id="style2">.cls-1{fill:none;stroke:#f9ea48;stroke-width:1.5px;}</style>
</defs>
<title
id="title6">Fichier 1</title>
<g
id="Calque_2"
data-name="Calque 2">
<g
id="Formulaire">
<circle
cx="42.76"
cy="42.76"
r="42.76"
id="circle8" />
<path
class="cls-1"
d="M27.44,22a26.63,26.63,0,0,1,3-2.18A23.7,23.7,0,0,1,34,18.06a22.38,22.38,0,0,1,4-1.2,23.9,23.9,0,0,1,4.69-.43,20.18,20.18,0,0,1,6.38.94,13.66,13.66,0,0,1,4.83,2.69A11.81,11.81,0,0,1,57,24.27a13.65,13.65,0,0,1,1.07,5.47,13.86,13.86,0,0,1-.79,5,13.62,13.62,0,0,1-2,3.61A15.31,15.31,0,0,1,52.59,41c-1,.74-1.88,1.43-2.74,2.08A24.71,24.71,0,0,0,47.59,45a4,4,0,0,0-1.19,2.11l-1,5.27h-8l-.82-6.06a3.47,3.47,0,0,1-.06-.45c0-.15,0-.3,0-.45a5.34,5.34,0,0,1,.79-2.9,10.18,10.18,0,0,1,2-2.28,29.93,29.93,0,0,1,2.59-2,23.15,23.15,0,0,0,2.6-2.07,10.44,10.44,0,0,0,2-2.48,6.4,6.4,0,0,0,.79-3.26,4.59,4.59,0,0,0-1.48-3.59,5.91,5.91,0,0,0-4.09-1.34,11.25,11.25,0,0,0-3.33.42,12.82,12.82,0,0,0-2.29.92c-.64.34-1.2.65-1.68.92a2.76,2.76,0,0,1-1.43.41,2.58,2.58,0,0,1-2.4-1.39Zm6.92,43.91a6.28,6.28,0,0,1,1.91-4.55A6.52,6.52,0,0,1,38.35,60a6.71,6.71,0,0,1,2.64-.5,6.57,6.57,0,0,1,2.59.5,6.77,6.77,0,0,1,2.11,1.38,6.17,6.17,0,0,1,1.41,2,6.24,6.24,0,0,1,.51,2.52,6.37,6.37,0,0,1-.51,2.54,6.25,6.25,0,0,1-1.41,2,6.36,6.36,0,0,1-2.11,1.35,6.75,6.75,0,0,1-2.59.49,6.89,6.89,0,0,1-2.64-.49,6.13,6.13,0,0,1-2.08-1.35,6.37,6.37,0,0,1-1.91-4.59Z"
id="path10" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="100"
height="100"
viewBox="0 0 26.458333 26.458334"
version="1.1"
id="svg6165"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
sodipodi:docname="notification-ack.svg">
<defs
id="defs6159" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="4.8835937"
inkscape:cx="99.873821"
inkscape:cy="64.115457"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
inkscape:window-width="1920"
inkscape:window-height="1030"
inkscape:window-x="0"
inkscape:window-y="26"
inkscape:window-maximized="1" />
<metadata
id="metadata6162">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-270.54165)">
<g
transform="matrix(1.1525054,0,0,-1.1525054,-825.30346,1542.8529)"
id="g6144">
<g
transform="translate(727.585,1103.8984)"
id="g372">
<path
inkscape:connector-curvature="0"
id="path374"
style="fill:#b2b2b2;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 0,0 c -6.313,0 -11.45,-5.136 -11.45,-11.449 0,-6.313 5.137,-11.449 11.45,-11.449 6.312,0 11.449,5.135 11.449,11.449 C 11.449,-5.136 6.312,0 0,0" />
</g>
<g
transform="translate(733.8232,1088.6533)"
id="g376">
<path
inkscape:connector-curvature="0"
id="path378"
style="fill:#f1f1f0;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 0,0 -2.443,-2.442 -3.795,3.795 -3.796,-3.795 -2.443,2.442 3.795,3.796 -3.795,3.796 2.443,2.442 3.796,-3.796 3.795,3.796 L 0,7.592 -3.796,3.796 Z" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="100"
height="100"
viewBox="0 0 26.458333 26.458334"
version="1.1"
id="svg7802"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
sodipodi:docname="total-panier.svg">
<defs
id="defs7796" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="6.9064445"
inkscape:cx="41.294184"
inkscape:cy="46.308724"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
inkscape:window-width="1920"
inkscape:window-height="1030"
inkscape:window-x="0"
inkscape:window-y="26"
inkscape:window-maximized="1" />
<metadata
id="metadata7799">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-270.54165)">
<g
id="g7204"
transform="matrix(3.1221123,0,0,3.1221123,397.83967,-55.095898)">
<g
transform="matrix(0.35277777,0,0,-0.35277777,-127.40933,108.54197)"
id="g1180">
<path
inkscape:connector-curvature="0"
id="path1182"
style="fill:#f4ada2;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 0,0 C 0,6.627 5.373,12 12,12 18.627,12 24,6.627 24,0 24,-6.628 18.627,-12 12,-12 5.373,-12 0,-6.628 0,0" />
</g>
<g
transform="matrix(0.35277777,0,0,-0.35277777,-123.54133,110.86773)"
id="g1184">
<path
inkscape:connector-curvature="0"
id="path1186"
style="fill:#1c1c1b;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 0,0 c -0.209,-0.21 -0.544,-0.21 -0.754,0 l -1.391,1.391 c -0.209,0.209 -0.209,0.544 0,0.754 l 4.449,4.448 -4.449,4.448 c -0.209,0.209 -0.209,0.544 0,0.754 l 1.391,1.391 c 0.21,0.209 0.545,0.209 0.754,0 L 6.216,6.97 c 0.209,-0.21 0.209,-0.545 0,-0.754 z" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
viewBox="0 0 62.29 62.29"
version="1.1"
id="svg20"
sodipodi:docname="user-profile.svg"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
<metadata
id="metadata24">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title>Fichier 33</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="774"
inkscape:window-height="480"
id="namedview22"
showgrid="false"
inkscape:zoom="3.7887301"
inkscape:cx="31.145"
inkscape:cy="31.145"
inkscape:window-x="0"
inkscape:window-y="26"
inkscape:window-maximized="0"
inkscape:current-layer="svg20" />
<defs
id="defs4">
<style
id="style2">.cls-1{fill:#cccccd;}.cls-2{fill:#fff;}</style>
</defs>
<title
id="title6">Fichier 33</title>
<g
id="Calque_2"
data-name="Calque 2">
<g
id="compte1">
<path
class="cls-1"
d="M42.39,19.29c1.26.31,2.17,1.79,2.17,3.61,0,2-1.08,3.54-2.48,3.67a13.52,13.52,0,0,1-4.63,7.27L37.81,37a1.73,1.73,0,0,0,.75,1.22,1.77,1.77,0,0,0,.48.23l7.89,2.29a7.46,7.46,0,0,1,3,1.6,9.1,9.1,0,0,1,3.12,5.22l2.24,11.75a106.41,106.41,0,0,1-24,2.94,106.41,106.41,0,0,1-24-2.94L9.5,47.52a9.05,9.05,0,0,1,3.12-5.22,7.4,7.4,0,0,1,3.08-1.61l7.86-2.28a1.77,1.77,0,0,0,.48-.23A1.69,1.69,0,0,0,24.78,37l.37-3.12a13.52,13.52,0,0,1-4.63-7.27C19.11,26.44,18,24.88,18,22.9c0-1.79.88-3.25,2.1-3.59"
id="path8" />
<path
class="cls-1"
d="M42.39,19.29S43,6.22,31.3,6.22,20.14,19.31,20.14,19.31"
id="path10" />
<circle
class="cls-1"
cx="31.14"
cy="31.14"
r="31.14"
id="circle12" />
<path
class="cls-2"
d="M42.39,19.29c1.26.31,2.17,1.79,2.17,3.61,0,2-1.08,3.54-2.48,3.67a13.52,13.52,0,0,1-4.63,7.27L37.81,37a1.73,1.73,0,0,0,.75,1.22,1.77,1.77,0,0,0,.48.23l7.89,2.29a7.46,7.46,0,0,1,3,1.6,9.1,9.1,0,0,1,3.12,5.22l2.24,11.75a106.41,106.41,0,0,1-24,2.94,106.41,106.41,0,0,1-24-2.94L9.5,47.52a9.05,9.05,0,0,1,3.12-5.22,7.4,7.4,0,0,1,3.08-1.61l7.86-2.28a1.77,1.77,0,0,0,.48-.23A1.69,1.69,0,0,0,24.78,37l.37-3.12a13.52,13.52,0,0,1-4.63-7.27C19.11,26.44,18,24.88,18,22.9c0-1.79.88-3.25,2.1-3.59"
id="path14" />
<path
class="cls-2"
d="M42.39,19.29S43,6.22,31.3,6.22,20.14,19.31,20.14,19.31"
id="path16" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -0,0 +1,72 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
viewBox="0 0 49.11 50.63"
version="1.1"
id="svg16"
sodipodi:docname="user-demands.svg"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
<metadata
id="metadata20">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title>Fichier 7</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="774"
inkscape:window-height="480"
id="namedview18"
showgrid="false"
inkscape:zoom="4.6612679"
inkscape:cx="24.555"
inkscape:cy="25.315001"
inkscape:window-x="0"
inkscape:window-y="26"
inkscape:window-maximized="0"
inkscape:current-layer="svg16" />
<defs
id="defs4">
<style
id="style2">.cls-1{fill:none;stroke:#f9ea48;stroke-miterlimit:10;stroke-width:1.3px;}</style>
</defs>
<title
id="title6">Fichier 7</title>
<g
id="Calque_2"
data-name="Calque 2">
<g
id="compte1">
<path
d="M24.56,50.63C11,50.63,0,39.29,0,25.31S11,0,24.56,0,49.11,11.34,49.11,25.31,38.11,50.63,24.56,50.63Z"
id="path8" />
<path
class="cls-1"
d="M32.4,12.32a14.45,14.45,0,0,0-10.92-2.24,14.62,14.62,0,0,0-9.28,6.14l-1.49-.81.11,4.12.11,4.12,3.51-2.15L18,19.34l-1.68-.91a9.89,9.89,0,0,1,13.54-2.3A9.85,9.85,0,0,1,34,22.5l4.51-.87A14.45,14.45,0,0,0,32.4,12.32Z"
id="path10" />
<path
class="cls-1"
d="M16.71,38.3a14.51,14.51,0,0,0,20.2-3.89l1.49.81-.11-4.13L38.18,27l-3.51,2.16-3.51,2.15,1.68.92a9.95,9.95,0,0,1-17.75-4.07L10.58,29A14.43,14.43,0,0,0,16.71,38.3Z"
id="path12" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
viewBox="0 0 50 50"
version="1.1"
id="svg18"
sodipodi:docname="user-drafts.svg"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
<metadata
id="metadata22">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title>Fichier 8</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="774"
inkscape:window-height="480"
id="namedview20"
showgrid="false"
inkscape:zoom="4.72"
inkscape:cx="25"
inkscape:cy="25"
inkscape:window-x="0"
inkscape:window-y="26"
inkscape:window-maximized="0"
inkscape:current-layer="svg18" />
<defs
id="defs4">
<style
id="style2">.cls-1{fill:none;stroke:#f9ea48;stroke-miterlimit:10;stroke-width:1.3px;}</style>
</defs>
<title
id="title6">Fichier 8</title>
<g
id="Calque_2"
data-name="Calque 2">
<g
id="compte1">
<path
d="M25,50A25,25,0,1,1,50,25,25,25,0,0,1,25,50Z"
id="path8" />
<path
class="cls-1"
d="M35.69,13.63a4.05,4.05,0,0,0-5.59,0L14.44,28.82a1,1,0,0,0-.22.38l-2.06,7.21a.83.83,0,0,0,.22.83.9.9,0,0,0,.86.22l7.43-2a.84.84,0,0,0,.39-.22L36.72,20.05a3.76,3.76,0,0,0,0-5.42Z"
id="path10" />
<line
class="cls-1"
x1="14.45"
y1="28.79"
x2="21.13"
y2="35.19"
id="line12" />
<line
class="cls-1"
x1="29.92"
y1="13.87"
x2="36.51"
y2="20.35"
id="line14" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
viewBox="0 0 50 50"
version="1.1"
id="svg16"
sodipodi:docname="user-payments.svg"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
<metadata
id="metadata20">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title>Fichier ll</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="774"
inkscape:window-height="480"
id="namedview18"
showgrid="false"
inkscape:zoom="4.72"
inkscape:cx="25"
inkscape:cy="25"
inkscape:window-x="0"
inkscape:window-y="26"
inkscape:window-maximized="0"
inkscape:current-layer="svg16" />
<defs
id="defs4">
<style
id="style2">.cls-1,.cls-2{fill:none;stroke:#f9ea48;}.cls-1{stroke-miterlimit:10;}.cls-2{stroke-width:1.3px;}</style>
</defs>
<title
id="title6">Fichier ll</title>
<g
id="Calque_2"
data-name="Calque 2">
<g
id="compte2">
<circle
cx="25"
cy="25"
r="25"
id="circle8" />
<path
class="cls-1"
d="M26.72,36.27a12.07,12.07,0,0,1-5-1A10.42,10.42,0,0,1,18,32.53,10.91,10.91,0,0,1,16,28.81H13.82v-3.1h1.59c0-.16,0-.34,0-.55s0-.3,0-.43H13.79v-3.1h2.09a11.31,11.31,0,0,1,2-4,10.52,10.52,0,0,1,3.68-2.89,11,11,0,0,1,4.76-1,12,12,0,0,1,6.35,1.77l.31.19-1.49,3.46-.42-.28c-3-2-6.26-2.05-8.74-.23a7.65,7.65,0,0,0-2.41,3H25.4v3.1H19.21V25q0,.27,0,.69H25.4v3.1H20.05a6.67,6.67,0,0,0,2.32,2.67,7.4,7.4,0,0,0,4.2,1.19,7.54,7.54,0,0,0,4.71-1.53l.41-.31,1.58,3.35-.3.2a12.75,12.75,0,0,1-2.69,1.29A10.31,10.31,0,0,1,26.72,36.27Z"
id="path10" />
<path
class="cls-2"
d="M26.72,36.27a12.07,12.07,0,0,1-5-1A10.42,10.42,0,0,1,18,32.53,10.91,10.91,0,0,1,16,28.81H13.82v-3.1h1.59c0-.16,0-.34,0-.55s0-.3,0-.43H13.79v-3.1h2.09a11.31,11.31,0,0,1,2-4,10.52,10.52,0,0,1,3.68-2.89,11,11,0,0,1,4.76-1,12,12,0,0,1,6.35,1.77l.31.19-1.49,3.46-.42-.28c-3-2-6.26-2.05-8.74-.23a7.65,7.65,0,0,0-2.41,3H25.4v3.1H19.21V25q0,.27,0,.69H25.4v3.1H20.05a6.67,6.67,0,0,0,2.32,2.67,7.4,7.4,0,0,0,4.2,1.19,7.54,7.54,0,0,0,4.71-1.53l.41-.31,1.58,3.35-.3.2a12.75,12.75,0,0,1-2.69,1.29A10.31,10.31,0,0,1,26.72,36.27Z"
id="path12" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -0,0 +1,7 @@
@charset "UTF-8";
@import 'vars';
@import '../includes/publik';
@import '../includes/font-roboto';
@import '../includes/font-josefinsans';
@import 'custom';

View File

@ -0,0 +1,14 @@
{% extends '../../authentic2/base.html' %}
{% block extra-top-head %}
{% block extrascripts %}
{% endblock %}
{% block extra_scripts %}
{% endblock %}
{% for script in form.media.render_js %}
{% if 'jquery.js' not in script %}
{{ script }}
{% endif %}
{% endfor %}
{{ form.media.css }}
{% endblock %}

View File

@ -0,0 +1,16 @@
{% load staticfiles %}
<h2>CONNECTEZ-VOUS</h2>
<p>Pas de compte ? <a href="{{ registration_url }}">Créez un compte !</a>
<form method="post" action="">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button name="{{ submit_name }}">CONNECTEZ-VOUS</button>
{% if cancel %}
<button class="cancel-button" name="cancel">ANNULER</button>
{% endif %}
</div>
</form>
{% if can_reset_password %}
<p>Mot de passe perdu ? <a href="{% url 'password_reset' %}{% if request.GET.next %}?next={{ request.GET.next|urlencode }}{% endif %}">Réinitialisez-le !</a></p>
{% endif %}

View File

@ -0,0 +1,4 @@
<div class="user-dashboard-item {{ item_type }}">
<div class="dashboard-item-label">{{ label }}</div>
<div class="dashboard-item-value">{{ value }}</div>
</div>

View File

@ -0,0 +1,3 @@
{% include "combo/json/user-dashboard-item.html" with label="En cours" value=json.data|length item_type="demands" %}

View File

@ -0,0 +1 @@
{% include "combo/json/user-dashboard-item.html" with label="Brouillons" value=json.data|length item_type="drafts" %}

View File

@ -0,0 +1,16 @@
{% load combo %}
<div class="user-infos">
{% with json as user %}
<div class="user-profile"{% if user.avatar %} style="background-image: url('{{ user.avatar }}')"{% endif %}>
Bienvenue {% if user.first_name %}{{ user.first_name }}{% endif %}{% if user.last_name %} {{ user.last_name }}{% endif %} !
</div>
{% endwith %}
<div class="user-dashboard">
{% placeholder "user-dashboard" name="Dashboard de l'usager" %}
</div>
</div>
<div class="user-menu">
{% placeholder "user-menu" name="Menu de l'usager" %}
</div>

View File

@ -0,0 +1,19 @@
{% load assets i18n humanize %}
<h2>Mes notifications</h2>
<div class="notifications">
{% for notification in notifications %}
<div class="notification" data-combo-notification-ack-url="{% url 'api-notification-ack' notification_id=notification.id %}"
data-combo-notification-forget-url="{% url 'api-notification-forget' notification_id=notification.id %}">
<div>
<div class="summary"{% if notification.origin %} style="background-image: url({% asset_url "notification:"|add:notification.origin %})"{% endif %}>{% if notification.url %}<a href="{{ notification.url|default:"#" }}">{{ notification.summary }}</a>
{% else %}{{ notification.summary }}{% endif %}</div>
<div class="description">
{{ notification.body|linebreaks }}
</div>
<a class="ack" href="#"></a>
</div>
</div>
{% empty %}
<div class="notification-none">Aucune notification.</div>
{% endfor %}
</div>

View File

@ -0,0 +1,41 @@
{% extends "combo/page_template.html" %}
{% load i18n combo %}
{% block before-main-content %}
{{ block.super }}
{% endblock %}
{% block combo-content %}
<div class="topbanner-wrapper">
{% trans "En tête du bandeau" as name %}
<div class="topbanner-header">
{% placeholder "topbanner-header" name=name %}
</div>
<div class="topbanner">
{% trans "Bandeau" as name %}
{% placeholder "topbanner" name=name %}
</div>
</div>
<div class="topbanner-footer">
{% placeholder "topbanner-footer" name="Pied de page du bandeau" %}
</div>
<div class="content-wrapper">
<div class="columns">
<div class="left">
{% placeholder "left-columne-header" name="En-tête de la colonne de gauche" %}
<div class="categories cell">
{% trans "Left column" as name %}
{% placeholder "content" name=name %}
</div>
{% placeholder "left-column-footer" name="Pied de la colonne de gauche" %}
</div>
<div class="right">
{% placeholder "right-column-header" name="En-tête de la colonne de droite" %}
<div>
{% trans "Right column" as name %}
{% placeholder "right" name=name %}
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -0,0 +1,9 @@
{% load combo assets %}
{% block cell-content %}
<h2>BROUILLONS</h2>
{% for slug, forms in current_drafts.items %}
<div class="current-drafts-{{ slug }} current-drafts list-of-forms">
{% include "combo/wcs/list_of_forms.html" with forms=forms button_label="Finaliser" draft=True %}
</div>
{% endfor %}
{% endblock %}

View File

@ -0,0 +1,8 @@
{% block cell-content %}
<h2>EN COURS</h2>
{% for slug, forms in current_forms.iteritems %}
<div class="current-forms-{{ slug }} current-forms list-of-forms">
{% include "combo/wcs/list_of_forms.html" with forms=forms %}
</div>
{% endfor %}
{% endblock %}

View File

@ -0,0 +1,23 @@
{% load combo assets %}
{% block cell-content %}
{% if forms %}
<ul>
{% for data in forms.data|dictsortreversed:"form_receipt_datetime" %}
{% if data.url and data.title %}
<li class="{{ data.category_slug }}{% if data.status_css_class %} {{data.status_css_class}}{% endif %}">
<div class="form-name" style="background-image: url({% asset_url "category:"|add:data.category_slug %})">{{ data.name }}</div>
<div class="form-details">
{% if not draft %}
<div class="form-status">{{ data.status }}</div>
{% endif %}
<div class="form-created"><span class="label">Créée le :</span> {{ data.datetime|strptime:"%Y-%m-%d %H:%M:%S"|date:"d/m/Y" }}</div>
{% if not draft %}
<div class="form-updated"><span class="label">Mise à jour :</span> {{ data.last_update_time|strptime:"%Y-%m-%d %H:%M:%S"|date:"d/m/Y" }}</div>
{% endif %}
<div class="form-url"><a href="{{ data.url }}">{{ button_label|default:"Ouvrir" }}</a></div>
</div>
{% endif %}
{% endfor %}
</ul>
{% endif %}
{% endblock %}

View File

@ -0,0 +1,8 @@
{% block cell-content %}
<h2>TERMINÉES</h2>
{% for slug, forms in user_forms.iteritems %}
<div class="user-forms-{{ slug }} list-of-forms">
{% include "combo/wcs/list_of_forms.html" with forms=forms %}
</div>
{% endfor %}
{% endblock %}

View File

@ -0,0 +1,78 @@
#! /usr/bin/env python
import os
import subprocess
import re
import sys
from lxml import etree
from lxml.html import html_parser
FILENAME = 'tmp.html'
if os.path.exists(FILENAME):
os.unlink(FILENAME)
URL = 'https://www.lametro.fr/501-plateforme-de-services.htm'
subprocess.call(['wget', '--quiet', '-O', FILENAME, '--convert-links', URL])
content = open(FILENAME).read().strip()
if len(content) < 500:
sys.exit(0)
root = etree.fromstring(content, parser=html_parser)
for script in root.xpath('//script'):
# remove all google related tags
if script.text and 'google' in script.text or 'google' in script.attrib.get('src', ''):
parent = script.getparent()
parent.remove(script)
# remove title and breadcrumb
for element in ('title', 'div[@id="arianeUserTools"]'):
for useless in root.xpath('//%s' % element):
parent = useless.getparent()
parent.remove(useless)
# rename "contenu" container to put content into it
for content in root.xpath('//div[@id="contenu"]'):
content.clear()
content.attrib['id'] ='content'
for content in root.xpath('//a[@id="eosm-btn"]'):
content.clear()
content.attrib['id'] ='publik-mobile-menu'
content = etree.tostring(root, method='html', pretty_print=True)
# remove all references to downloaded temporary file
content = content.replace(FILENAME, '')
# remove copy of jquery
content = re.sub('<script src=.*jquery.min.js.*', '', content)
content = content.replace('<script>document.body.className="withJS"</script>', '')
content = content.replace('<body',
r'<body {% block bodyargs %}{% endblock %} ')
content = content.replace('</head>', '<title>{% block global_title %}{% endblock %}</title>\n</head>')
content = content.replace('<head>', '<head>{% block head %}{% endblock %}')
content = content.replace('<div id="content">', '''
{% block nav %}{% endblock %}
{% block grenoble-content %}
{% block messages %}
{% endblock %}
{% endblock %}''')
content = content.replace('</body>', '''
{% block tracking %}
{% endblock %}
</body>
''')
content = content.replace('<div id="barreHaut">',
'{% if include_top_links != False %}<div id="toplinks">{% block user-info %}{% endblock %}</div>{% endif %}<div id="barreHaut">'
)
open('base-theme.html', 'w').write(content)

View File

@ -0,0 +1,26 @@
{% extends '../../registration/registration_form.html' %}
{% block placeholder-content %}
<div id="frontend-registration-email" class="a2-block">
<h2>CRÉEZ VOTRE COMPTE</h2>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button class="submit-button">VALIDER</button>
</form>
</div>
{% for id, block in frontends.items %}
<div id="frontend-registration-{{ id }}" class="a2-block">
<h2>{{ block.name }}</h2>
<div>
{{ block.content|safe }}
</div>
</div>
{% endfor %}
{% endblock %}

View File

@ -0,0 +1,81 @@
{% extends 'base-theme.html' %}
{% load gadjo i18n static combo %}
{% block global_title %}
{% firstof global_title "Grenoble-Alpes Métropole" %} {% block title %}{% endblock %}
{% endblock %}
{% block head %}
{% if meta_description %}
<meta name="description" content="{{ meta_description }}" >
{% endif %}
{% if meta_robots %}
<meta name="robots" content="{{ meta_robots }}" />
{% elif environment_label %}
<meta name="robots" content="noindex, nofollow, noarchive, nosnippet, notranslate, noimageindex" />
{% endif %}
{% block extra_top_head %}
{% endblock %}
{{ media }}
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static 'grenoble-metropole-2019/style.css' %}?{% start_timestamp %}">
{% block extra_css %}
{% endblock %}
{% block extra_scripts %}
{% endblock %}
{% endblock %}
{% block bodyargs %}class="touch-ok {% block bodyclasses %}{% endblock %}" {% block bodyattrs %}{% endblock %}{% endblock %}
{% block user-info %}
{% if user.is_authenticated %}
<span class="logged-in">
{% if idp_account_url %}<a href="{{idp_account_url}}">{% endif %}
<span class="connected-user">{{user.first_name}} {{user.last_name}}</span>{% if idp_account_url %}</a>{% endif %}
<a accesskey="o" class="logout" href="{% url 'auth_logout' %}">D&eacute;connexion</a>
</span>
{% else %}
{% if idp_registration_url %}
<span class="login"><a accesskey="2" href="{% url 'auth_login' %}">Connexion</a> <span class="sep">/</span>
<a class="registration" href="{{idp_registration_url}}">Inscription</a></span>
{% else %}
<span class="login"><a accesskey="2" href="{% url 'auth_login' %}">Connexion <span class="sep">/</span> Inscription</a></span>
{% endif %}
{% endif %}
{% endblock %}
{% block nav %}
<nav>
<div id="nav" class="gru-nav togglable">
{% block menu %}
{% endblock %}
</div>
</nav>
{% endblock %}
{% block grenoble-content %}
{% block before-main-content %}
{% endblock %}
<div id="main-content-wrapper">
<div id="main-content">
{% block messages %}
{% if messages %}
<div id="messages">
<ul class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endblock %}
<div id="content" class="gru-content">
{% block content %}
{% endblock %}
</div>
</div>
{% endblock %}
{% block tracking %}
{% include "includes/tracking.html" %}
{% endblock %}