add home layout
This commit is contained in:
parent
e1ac4a322c
commit
acf7018fe9
|
@ -1 +1,2 @@
|
|||
Django>=1.7
|
||||
gadjo
|
||||
|
|
1
setup.py
1
setup.py
|
@ -98,6 +98,7 @@ setup(
|
|||
'Programming Language :: Python :: 2',
|
||||
],
|
||||
install_requires=['django>=1.7',
|
||||
'gadjo',
|
||||
],
|
||||
zip_safe=False,
|
||||
cmdclass={
|
||||
|
|
|
@ -8,8 +8,10 @@ For the full list of settings and their values, see
|
|||
https://docs.djangoproject.com/en/1.7/ref/settings/
|
||||
"""
|
||||
|
||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||
import os
|
||||
from django.conf import global_settings
|
||||
|
||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
||||
|
||||
|
||||
|
@ -36,6 +38,7 @@ INSTALLED_APPS = (
|
|||
'django.contrib.sessions',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'gadjo',
|
||||
)
|
||||
|
||||
MIDDLEWARE_CLASSES = (
|
||||
|
@ -82,6 +85,17 @@ USE_TZ = True
|
|||
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
STATICFILES_FINDERS = global_settings.STATICFILES_FINDERS + ('gadjo.finders.XStaticFinder',)
|
||||
|
||||
STATICFILES_DIRS = (
|
||||
os.path.join(BASE_DIR, 'welco', 'static'),
|
||||
)
|
||||
|
||||
TEMPLATE_DIRS = (
|
||||
os.path.join(BASE_DIR, 'welco', 'templates'),
|
||||
)
|
||||
|
||||
|
||||
local_settings_file = os.environ.get('WELCO_SETTINGS_FILE',
|
||||
os.path.join(os.path.dirname(__file__), 'local_settings.py'))
|
||||
if os.path.exists(local_settings_file):
|
||||
|
|
|
@ -0,0 +1,44 @@
|
|||
div#main-content {
|
||||
width: 100%;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
height: calc(100vh - 8em);
|
||||
}
|
||||
|
||||
div#more-user-links {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div#content {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.all {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
height: 100%;
|
||||
}
|
||||
.cell.top {
|
||||
width: 100%;
|
||||
height: 65%;
|
||||
order: 0;
|
||||
}
|
||||
|
||||
.cell {
|
||||
width: calc(100% / 3);
|
||||
height: 35%;
|
||||
order: 1;
|
||||
overflow-y: auto;
|
||||
transition: all 100ms ease;
|
||||
border-bottom: 1px dotted #d8d8d8;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
div#content .cell h2 {
|
||||
font-size: 100%;
|
||||
padding-left: 1ex;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
{% extends "gadjo/base.html" %}
|
||||
|
||||
{% block page-title %}Welco{% endblock %}
|
||||
{% block site-title %}Welco{% endblock %}
|
||||
|
||||
{% block more-user-links %}
|
||||
{% endblock %}
|
|
@ -0,0 +1,27 @@
|
|||
{% extends "welco/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
<div class="all">
|
||||
<div class="cell document top">
|
||||
<h2>{% trans 'Mails' %}</h2>
|
||||
</div>
|
||||
<div class="cell knowledgedb">
|
||||
<h2>{% trans 'Knowledge Database' %}</h2>
|
||||
</div>
|
||||
<div class="cell contacts">
|
||||
<h2>{% trans 'Contacts' %}</h2>
|
||||
</div>
|
||||
<div class="cell qualif">
|
||||
<h2>{% trans 'Qualification' %}</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$('div.cell h2').on('click', function() {
|
||||
$('div.cell').removeClass('top');
|
||||
$(this).parents('div.cell').addClass('top');
|
||||
});
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
|
@ -1,10 +1,21 @@
|
|||
from django.conf.urls import patterns, include, url
|
||||
from django.contrib import admin
|
||||
# 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
|
||||
|
||||
urlpatterns = patterns('',
|
||||
# Examples:
|
||||
# url(r'^$', 'welco.views.home', name='home'),
|
||||
# url(r'^blog/', include('blog.urls')),
|
||||
|
||||
url(r'^admin/', include(admin.site.urls)),
|
||||
url(r'^$', 'welco.views.home', name='home'),
|
||||
)
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
# 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 Home(TemplateView):
|
||||
template_name = 'welco/home.html'
|
||||
|
||||
home = Home.as_view()
|
Loading…
Reference in New Issue