theme et onboarding

This commit is contained in:
afornerot 2019-08-29 11:15:12 +02:00
parent 30fe301f34
commit 9f7cfc6ad3
30 changed files with 217 additions and 10 deletions

View File

@ -8,7 +8,7 @@ INSERT IGNORE INTO `niveau01` (`id`, `label`, `siren`) VALUES
(-100, 'DRAAF', '130007107'); (-100, 'DRAAF', '130007107');
INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES
(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}9cnVg+DTTmS1xmuUKkR7E2gsmtYyea6r (-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}2lrfIFu4o8CCYONiX7428WmRj4YYhRO2
', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple'); ', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple');

View File

@ -93,6 +93,15 @@ class ConfigType extends AbstractType
"Signika-Regular" => "Signika-Regular", "Signika-Regular" => "Signika-Regular",
"Teko-Bold" => "Teko-Bold", "Teko-Bold" => "Teko-Bold",
"LuckiestGuy-Regular" => "LuckiestGuy-Regular", "LuckiestGuy-Regular" => "LuckiestGuy-Regular",
"Baloo-Regular" => "Baloo-Regular",
"CarterOne-Regular" => "CarterOne-Regular",
"Chewy-Regular" => "Chewy-Regular",
"Courgette-Regular" => "Courgette-Regular",
"LexendDeca-Regular" => "LexendDeca-Regular",
"RubikMonoOne-Regular" => "RubikMonoOne-Regular",
"SigmarOne-Regular" => "SigmarOne-Regular",
"Viga-Regular" => "Viga-Regular",
); );
$builder->add("value", ChoiceType::class, $builder->add("value", ChoiceType::class,

View File

@ -0,0 +1,22 @@
/* ========================================================================
* bootstrap-tour - v0.12.0
* http://bootstraptour.com
* ========================================================================
* Copyright 2012-2015 Ulrich Sossou
*
* ========================================================================
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ========================================================================
*/
.tour-backdrop{position:absolute;z-index:1100;background-color:#000;opacity:.8;filter:alpha(opacity=80)}.popover[class*="tour-"]{z-index:1102}.popover[class*="tour-"] .popover-navigation{padding:9px 14px;overflow:hidden}.popover[class*="tour-"] .popover-navigation *[data-role="end"]{float:right}.popover[class*="tour-"] .popover-navigation *[data-role="prev"],.popover[class*="tour-"] .popover-navigation *[data-role="next"],.popover[class*="tour-"] .popover-navigation *[data-role="end"]{cursor:pointer}.popover[class*="tour-"] .popover-navigation *[data-role="prev"].disabled,.popover[class*="tour-"] .popover-navigation *[data-role="next"].disabled,.popover[class*="tour-"] .popover-navigation *[data-role="end"].disabled{cursor:default}.popover[class*="tour-"].orphan{position:fixed;margin-top:0}.popover[class*="tour-"].orphan .arrow{display:none}

View File

@ -122,4 +122,60 @@
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }
@font-face {
font-family: 'Baloo-Regular';
src: url('../fonts/typo/Baloo-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'CarterOne-Regular';
src: url('../fonts/typo/CarterOne-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Chewy-Regular';
src: url('../fonts/typo/Chewy-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Courgette-Regular';
src: url('../fonts/typo/Courgette-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'LexendDeca-Regular';
src: url('../fonts/typo/LexendDeca-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'RubikMonoOne-Regular';
src: url('../fonts/typo/RubikMonoOne-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'SigmarOne-Regular';
src: url('../fonts/typo/SigmarOne-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Viga-Regular';
src: url('../fonts/typo/Viga-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,28 @@
{% set logo = "transnum-logo.png" %}
{% set fgheader = "" %}
{% set header = "transnum-header.jpg" %}
{% set heightheader = "" %}
{% set colormain = "22a7f0" %}
{% set fontcolorhover = "" %}
{% set colorbody = "" %}
{% set fontfacetitle = "LexendDeca-Regular" %}
{% set fontfacebody = "" %}
{{
render(url("cadoles_core_theme_setconfig",
{
'logo':logo,
'fgheader':fgheader,
'header': header,
'heightheader': heightheader,
'colormain': colormain,
'fontcolorhover': fontcolorhover,
'colorbody': colorbody,
'fontfacetitle': fontfacetitle,
'fontfacebody': fontfacebody
}
))
}}

View File

@ -0,0 +1,3 @@
name: Transnum
author: Arnaud Fornerot
version: 1.0

View File

@ -0,0 +1,37 @@
// Instance the tour
function MyTour() {
var tour = new Tour({
steps: [
{
element: "#logo",
title: "Transnum",
content: "Bienvenue sur le portail TRANSNUM"
},
{
element: "#menu-profil",
title: "Votre Profil",
content: "Vous pouvez modifier les informations vous concernant à cet emplacement"
},
{
element: "#menu-annuaire",
title: "Annuaire",
content: "Vous pouvez recherche un utilisateur parmis l'annuaire du portail"
}
]});
// Initialize the tour
tour.init();
// Start the tour
tour.goTo(0);
tour.restart();
}
// Create Button Tour
$(document).on('ready', function(){
// Instance the Tour
$("<li><a title='Tuto' style='cursor:pointer'><i onClick='MyTour()' class='fa fa-question fa-fw'></i></a></li>").insertBefore($("#menu-annuaire"));
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -0,0 +1,24 @@
.widgetheader .title {
font-size: 25px;
}
.widget-bordered {
border: none !important;
}
.widget-bordered .widgetbody {
margin-top: 5px;
}
.widgetheader, .widgetbody, .grid-item-content, .widgetbody .list-item, .grid-item, .cat-list-feed {
border-radius: 6px;
}
.grid-preview .caption {
border-radius: 0px 0px 6px 6px;
}
.grid-preview img {
border-radius: 6px 6px 0px 0px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -1,6 +1,3 @@
name: Yellow name: Yellow
author: Arnaud Fornerot author: Arnaud Fornerot
version: 1.0 version: 1.0
forcelogo: false
forceheader: true
color: f7ca18

View File

@ -70,6 +70,7 @@
'@CadolesCoreBundle/Resources/public/js/moment.min.js' '@CadolesCoreBundle/Resources/public/js/moment.min.js'
'@CadolesCoreBundle/Resources/public/js/fullcalendar.min.js' '@CadolesCoreBundle/Resources/public/js/fullcalendar.min.js'
'@CadolesCoreBundle/Resources/public/js/fullcalendar.lang.js' '@CadolesCoreBundle/Resources/public/js/fullcalendar.lang.js'
'@CadolesCoreBundle/Resources/public/js/bootstrap-tour.min.js'
'@CadolesCoreBundle/Resources/public/js/sb-admin-2.js' '@CadolesCoreBundle/Resources/public/js/sb-admin-2.js'
'@Tetranz\Select2EntityBundle//Resources/public/js/select2entity.js' '@Tetranz\Select2EntityBundle//Resources/public/js/select2entity.js'
@ -82,6 +83,13 @@
{% endjavascripts %} {% endjavascripts %}
{% endblock %} {% endblock %}
{% if useheader %}
{% set theme = app.session.get('theme') %}
{% if theme is not empty %}
<script src="/{{ alias }}/bundles/cadolescore/themes/{{theme}}/local.js"></script>
{% endif %}
{% endif %}
<script> <script>
function inIframe () { function inIframe () {
try { try {

View File

@ -33,6 +33,7 @@
'@CadolesCoreBundle/Resources/public/css/slick-theme.css' '@CadolesCoreBundle/Resources/public/css/slick-theme.css'
'@CadolesCoreBundle/Resources/public/css/jsRapClock.css' '@CadolesCoreBundle/Resources/public/css/jsRapClock.css'
'@CadolesCoreBundle/Resources/public/css/fullcalendar.css' '@CadolesCoreBundle/Resources/public/css/fullcalendar.css'
'@CadolesCoreBundle/Resources/public/css/bootstrap-tour.min.css'
'@CadolesCoreBundle/Resources/public/css/font.css' '@CadolesCoreBundle/Resources/public/css/font.css'
'@CadolesCoreBundle/Resources/public/css/style.css' '@CadolesCoreBundle/Resources/public/css/style.css'

View File

@ -2,10 +2,10 @@
{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_MODO') %} {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_MODO') %}
<li><a href="{{ path('cadoles_core_config') }}" title="Configuration"><i class="fa fa-gear fa-fw"></i></a> <li><a href="{{ path('cadoles_core_config') }}" title="Configuration"><i class="fa fa-gear fa-fw"></i></a>
{% endif %} {% endif %}
<li><a href="{{ path('cadoles_core_user_users') }}" title="Annuaire"><i class="fa fa-address-book fa-fw"></i></a> <li id="menu-annuaire"><a href="{{ path('cadoles_core_user_users') }}" title="Annuaire"><i class="fa fa-address-book fa-fw"></i></a>
<li><a href="{{ path('cadoles_core_user_group') }}" title="Groupes"><i class="fa fa-users fa-fw"></i></a> <li id="menu-group"><a href="{{ path('cadoles_core_user_group') }}" title="Groupes"><i class="fa fa-users fa-fw"></i></a>
<li><a href="{{ path('cadoles_portal_user_notice_view') }}" title="Charte"><i class="fa fa-info fa-fw"></i></a> <li id="menu-notice"><a href="{{ path('cadoles_portal_user_notice_view') }}" title="Charte"><i class="fa fa-info fa-fw"></i></a>
<li><a href="{{ path('cadoles_core_user') }}" title="Profil"><img class='avatar' src="/{{ alias }}/uploads/avatar/{{ app.user.avatar }}"></a></li> <li id="menu-profil"><a href="{{ path('cadoles_core_user') }}" title="Profil"><img class='avatar' src="/{{ alias }}/uploads/avatar/{{ app.user.avatar }}"></a></li>
<li> <li>