misc: add contrib.alfortville with a mockup of a dgs view
This commit is contained in:
parent
699e4ac86e
commit
7b33698eea
|
@ -10,6 +10,7 @@ recursive-include welco/templates *.html
|
|||
recursive-include welco/kb/templates *.html
|
||||
recursive-include welco/contacts/templates *.html
|
||||
recursive-include welco/sources/mail/templates *.html
|
||||
recursive-include welco/contrib/alfortville/templates *.html
|
||||
|
||||
include COPYING README
|
||||
include MANIFEST.in
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
# welco - multichannel request processing
|
||||
# Copyright (C) 2015 Entr'ouvert
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it
|
||||
# under the terms of the GNU Affero General Public License as published
|
||||
# by the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import django.apps
|
||||
|
||||
class AppConfig(django.apps.AppConfig):
|
||||
name = 'welco.contrib.alfortville'
|
||||
|
||||
def get_before_urls(self):
|
||||
from . import urls
|
||||
return urls.urlpatterns
|
||||
|
||||
default_app_config = 'welco.contrib.alfortville.AppConfig'
|
|
@ -0,0 +1,102 @@
|
|||
{% extends "welco/base.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
{% block bodyargs %}class="dgs-home"{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="dgs-page">
|
||||
|
||||
<div class="dgs-view">
|
||||
<h2>Enfance</h2>
|
||||
|
||||
<div class="objects-list">
|
||||
<div><a href="#">Demande d'inscription à l'accueil de loisir</a><span class="badge">2</span>
|
||||
<table class="dgs-summary" style="display: none;">
|
||||
<tr><td>15 juillet 2015 16:36:42</td>
|
||||
<td><a href="#">Copie à : XXX</a></td>
|
||||
<td><a href="#">Pour avis à : XXX</a></td>
|
||||
<td><button>✓</button> <button>×</button></td>
|
||||
</tr>
|
||||
<tr><td>15 juillet 2015 16:36:42</td>
|
||||
<td><a href="#">Copie à : XXX</a></td>
|
||||
<td><a href="#">Pour avis à : XXX</a></td>
|
||||
<td><button>✓</button> <button>×</button></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div><a href="#">Demande d'admission en crèche</a><span class="badge">4</span>
|
||||
<table class="dgs-summary" style="display: none;">
|
||||
<tr><td>15 juillet 2015 16:36:42</td>
|
||||
<td><a href="#">Copie à : XXX</a></td>
|
||||
<td><a href="#">Pour avis à : XXX</a></td>
|
||||
<td><button>✓</button> <button>×</button></td>
|
||||
</tr>
|
||||
<tr><td>15 juillet 2015 16:36:42</td>
|
||||
<td><a href="#">Copie à : XXX</a></td>
|
||||
<td><a href="#">Pour avis à : XXX</a></td>
|
||||
<td><button>✓</button> <button>×</button></td>
|
||||
</tr>
|
||||
<tr><td>15 juillet 2015 16:36:42</td>
|
||||
<td><a href="#">Copie à : XXX</a></td>
|
||||
<td><a href="#">Pour avis à : XXX</a></td>
|
||||
<td><button>✓</button> <button>×</button></td>
|
||||
</tr>
|
||||
<tr><td>15 juillet 2015 16:36:42</td>
|
||||
<td><a href="#">Copie à : XXX</a></td>
|
||||
<td><a href="#">Pour avis à : XXX</a></td>
|
||||
<td><button>✓</button> <button>×</button></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div><a href="#">Préinscription à l'école maternelle</a><span class="badge">3</span>
|
||||
<table class="dgs-summary" style="display: none;">
|
||||
<tr><td>15 juillet 2015 16:36:42</td>
|
||||
<td><a href="#">Copie à : XXX</a></td>
|
||||
<td><a href="#">Pour avis à : XXX</a></td>
|
||||
<td><button>✓</button> <button>×</button></td>
|
||||
</tr>
|
||||
<tr><td>15 juillet 2015 16:36:42</td>
|
||||
<td><a href="#">Copie à : XXX</a></td>
|
||||
<td><a href="#">Pour avis à : XXX</a></td>
|
||||
<td><button>✓</button> <button>×</button></td>
|
||||
</tr>
|
||||
<tr><td>15 juillet 2015 16:36:42</td>
|
||||
<td><a href="#">Copie à : XXX</a></td>
|
||||
<td><a href="#">Pour avis à : XXX</a></td>
|
||||
<td><button>✓</button> <button>×</button></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<h2>Emploi</h2>
|
||||
|
||||
<div class="objects-list">
|
||||
<div><a href="#">Candidature à une offre d'emploi</a></div>
|
||||
<div><a href="#">Candidature spontanée</a></div>
|
||||
<div><a href="#">Demande de stage</a></div>
|
||||
<div><a href="#">Formation en alternance</a></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="dgs-viewer">
|
||||
<iframe id="pdf-viewer" src="{% url 'mail-viewer' %}" style="width: 100%;
|
||||
height: 100%; border: 0;">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$('div.objects-list a').on('click', function() {
|
||||
$(this).parent().find('table').toggle();
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
|
@ -0,0 +1,21 @@
|
|||
# welco - multichannel request processing
|
||||
# Copyright (C) 2015 Entr'ouvert
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it
|
||||
# under the terms of the GNU Affero General Public License as published
|
||||
# by the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from django.conf.urls import patterns, url
|
||||
|
||||
from .views import dgs
|
||||
|
||||
urlpatterns = patterns('', url('dgs/$', dgs))
|
|
@ -0,0 +1,22 @@
|
|||
# welco - multichannel request processing
|
||||
# Copyright (C) 2015 Entr'ouvert
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it
|
||||
# under the terms of the GNU Affero General Public License as published
|
||||
# by the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from django.views.generic import TemplateView
|
||||
|
||||
class Dgs(TemplateView):
|
||||
template_name = 'alfortville/dgs.html'
|
||||
|
||||
dgs = Dgs.as_view()
|
|
@ -1,3 +1,4 @@
|
|||
body.dgs-home div#main-content,
|
||||
body.welco-home div#main-content {
|
||||
width: 100%;
|
||||
border: 0;
|
||||
|
@ -5,16 +6,19 @@ body.welco-home div#main-content {
|
|||
height: calc(100vh - 8em);
|
||||
}
|
||||
|
||||
body.dgs-home div#more-user-links,
|
||||
body.welco-home div#more-user-links {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body.dgs-home div#content,
|
||||
body.welco-home div#content {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.dgs-page,
|
||||
.all {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
@ -206,3 +210,55 @@ form#kb-search {
|
|||
padding: 1ex;
|
||||
border-top: 1px dotted #ccc;
|
||||
}
|
||||
|
||||
div.objects-list div {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
div.objects-list div span.badge {
|
||||
position: absolute;
|
||||
top: calc(1em - 1ex);
|
||||
right: 1ex;
|
||||
background-color: #AD7C6D;
|
||||
border-radius: 5px;
|
||||
color: white;
|
||||
padding: 1ex;
|
||||
}
|
||||
|
||||
table.dgs-summary {
|
||||
border-collapse: collapse;
|
||||
width: calc(100% + 1px);
|
||||
}
|
||||
|
||||
div.objects-list > div:hover table {
|
||||
background: white;
|
||||
}
|
||||
|
||||
table.dgs-summary td {
|
||||
border: 1px solid #ccc;
|
||||
border-width: 1px 1px 0 0;
|
||||
padding: 1ex 1ex 0.4ex 1ex;
|
||||
}
|
||||
|
||||
table.dgs-summary td:last-child {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
div.objects-list > div table.dgs-summary a {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
table.dgs-summary button {
|
||||
padding-left: 1ex;
|
||||
padding-right: 1ex;
|
||||
}
|
||||
|
||||
.dgs-page > div {
|
||||
width: calc(50% - 1ex);
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.dgs-view {
|
||||
overflow-y: auto;
|
||||
padding: 1ex;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue