Merge branch 'bootstrap5' into 110_extend_thirdparty

This commit is contained in:
Mathieu Jaumotte 2021-07-23 17:09:45 +02:00
commit 5d1d6c83a9
416 changed files with 761 additions and 15467 deletions

View File

@ -1,4 +1,4 @@
@import '~ChillMainAssets/modules/bootstrap/bootstrap'; @import '~ChillMainAssets/module/bootstrap/bootstrap';
//@import '~ChillMainSass/custom/mixins/entity'; //@import '~ChillMainSass/custom/mixins/entity';
//.chill-entity.chill-entity__activity-reason { //.chill-entity.chill-entity__activity-reason {
@ -71,7 +71,7 @@ div.flex-table.list-records {
&:nth-child(2) { &:nth-child(2) {
flex-grow: 0; flex-shrink: 1; flex-basis: 70%; flex-grow: 0; flex-shrink: 1; flex-basis: 70%;
} }
&:only-child { &:only-child {
flex-grow: 0; flex-shrink: 0; flex-basis: 100%; flex-grow: 0; flex-shrink: 0; flex-basis: 100%;
& > div.concerned-groups { & > div.concerned-groups {
@ -80,11 +80,11 @@ div.flex-table.list-records {
flex-direction: column; // TODO pas fini flex-direction: column; // TODO pas fini
div.group { div.group {
flex-grow: 1; flex-shrink: 0; flex-basis: 30%; flex-grow: 1; flex-shrink: 0; flex-basis: 30%;
h4 {} h4 {}
ul.list-content { ul.list-content {
li { li {
display: inline; display: inline;
} }
} }
} }
} }

View File

@ -0,0 +1 @@
require('./chillactivity.scss');

View File

@ -1 +0,0 @@
require('./scss/chillactivity.scss');

View File

@ -6,20 +6,16 @@
{% block content %} {% block content %}
<div class="activity-edit"> <div class="activity-edit">
<div class="row justify-content-center">
<div class="col-md-10 col-xxl">
<div id="activity"></div> {# <=== vue component #} <div id="activity"></div> {# <=== vue component #}
{% include 'ChillActivityBundle:Activity:edit.html.twig' %} {% include 'ChillActivityBundle:Activity:edit.html.twig' %}
</div>
</div>
</div> </div>
{% endblock %} {% endblock %}
{% block js %} {% block js %}
{{ parent() }} {{ parent() }}
{{ encore_entry_link_tags('async_upload') }} {{ encore_entry_link_tags('mod_async_upload') }}
<script type="text/javascript"> <script type="text/javascript">
window.addEventListener('DOMContentLoaded', function (e) { window.addEventListener('DOMContentLoaded', function (e) {
chill.displayAlertWhenLeavingModifiedForm('form[name="{{ edit_form.vars.form.vars.name }}"]', chill.displayAlertWhenLeavingModifiedForm('form[name="{{ edit_form.vars.form.vars.name }}"]',
@ -32,6 +28,6 @@
{% block css %} {% block css %}
{{ parent() }} {{ parent() }}
{{ encore_entry_link_tags('async_upload') }} {{ encore_entry_link_tags('mod_async_upload') }}
{{ encore_entry_link_tags('vue_activity') }} {{ encore_entry_link_tags('vue_activity') }}
{% endblock %} {% endblock %}

View File

@ -22,19 +22,15 @@
{% block personcontent %} {% block personcontent %}
<div class="activity-edit"> <div class="activity-edit">
<div class="row justify-content-center">
<div class="col-md-10 col-xxl">
<div id="activity"></div> {# <=== vue component #} <div id="activity"></div> {# <=== vue component #}
{% include 'ChillActivityBundle:Activity:edit.html.twig' %} {% include 'ChillActivityBundle:Activity:edit.html.twig' %}
</div>
</div>
</div> </div>
{% endblock %} {% endblock %}
{% block js %} {% block js %}
{{ encore_entry_link_tags('async_upload') }} {{ encore_entry_link_tags('mod_async_upload') }}
<script type="text/javascript"> <script type="text/javascript">
window.addEventListener('DOMContentLoaded', function (e) { window.addEventListener('DOMContentLoaded', function (e) {
chill.displayAlertWhenLeavingModifiedForm('form[name="{{ edit_form.vars.form.vars.name }}"]', chill.displayAlertWhenLeavingModifiedForm('form[name="{{ edit_form.vars.form.vars.name }}"]',
@ -46,6 +42,6 @@
{% endblock %} {% endblock %}
{% block css %} {% block css %}
{{ encore_entry_link_tags('async_upload') }} {{ encore_entry_link_tags('mod_async_upload') }}
{{ encore_entry_link_tags('vue_activity') }} {{ encore_entry_link_tags('vue_activity') }}
{% endblock %} {% endblock %}

View File

@ -6,32 +6,28 @@
{% block content %} {% block content %}
<div class="activity-new"> <div class="activity-new">
<div class="row justify-content-center">
<div class="col-md-10 col-xxl"> <div id="activity"></div> {# <=== vue component #}
{% include 'ChillActivityBundle:Activity:new.html.twig' with {'context': 'accompanyingCourse'} %}
<div id="activity"></div> {# <=== vue component #}
{% include 'ChillActivityBundle:Activity:new.html.twig' with {'context': 'accompanyingCourse'} %} </div>
</div>
</div>
</div>
{% endblock %} {% endblock %}
{% block js %} {% block js %}
{{ parent() }} {{ parent() }}
{{ encore_entry_script_tags('async_upload') }} {{ encore_entry_script_tags('mod_async_upload') }}
<script type="text/javascript"> <script type="text/javascript">
window.addEventListener('DOMContentLoaded', function (e) { window.addEventListener('DOMContentLoaded', function (e) {
chill.displayAlertWhenLeavingUnsubmittedForm('form[name="{{ form.vars.form.vars.name }}"]', chill.displayAlertWhenLeavingUnsubmittedForm('form[name="{{ form.vars.form.vars.name }}"]',
'{{ "You are going to leave a page with unsubmitted data. Are you sure you want to leave ?"|trans }}'); '{{ "You are going to leave a page with unsubmitted data. Are you sure you want to leave ?"|trans }}');
}); });
window.activity = {{ activity_json|json_encode|raw }}; window.activity = {{ activity_json|json_encode|raw }};
</script> </script>
{{ encore_entry_script_tags('vue_activity') }} {{ encore_entry_script_tags('vue_activity') }}
{% endblock %} {% endblock %}
{% block css %} {% block css %}
{{ parent() }} {{ parent() }}
<link rel="stylesheet" href="{{ asset('build/async_upload.css') }}"/> {{ encore_entry_link_tags('mod_async_upload') }}
{{ encore_entry_link_tags('vue_activity') }} {{ encore_entry_link_tags('vue_activity') }}
{% endblock %} {% endblock %}

View File

@ -6,19 +6,15 @@
{% block personcontent %} {% block personcontent %}
<div class="activity-new"> <div class="activity-new">
<div class="row justify-content-center">
<div class="col-md-10 col-xxl">
<div id="activity"></div> {# <=== vue component #} <div id="activity"></div> {# <=== vue component #}
{% include 'ChillActivityBundle:Activity:new.html.twig' with {'context': 'person'} %} {% include 'ChillActivityBundle:Activity:new.html.twig' with {'context': 'person'} %}
</div>
</div>
</div> </div>
{% endblock %} {% endblock %}
{% block js %} {% block js %}
{{ encore_entry_link_tags('async_upload') }} {{ encore_entry_link_tags('mod_async_upload') }}
<script type="text/javascript"> <script type="text/javascript">
window.addEventListener('DOMContentLoaded', function (e) { window.addEventListener('DOMContentLoaded', function (e) {
chill.displayAlertWhenLeavingUnsubmittedForm('form[name="{{ form.vars.form.vars.name }}"]', chill.displayAlertWhenLeavingUnsubmittedForm('form[name="{{ form.vars.form.vars.name }}"]',
@ -30,6 +26,6 @@
{% endblock %} {% endblock %}
{% block css %} {% block css %}
{{ encore_entry_link_tags('async_upload') }} {{ encore_entry_link_tags('mod_async_upload') }}
{{ encore_entry_link_tags('vue_activity') }} {{ encore_entry_link_tags('vue_activity') }}
{% endblock %} {% endblock %}

View File

@ -8,12 +8,8 @@
{% block content -%} {% block content -%}
<div class="activity-show"> <div class="activity-show">
<div class="row justify-content-center">
<div class="col-md-10 col-xxl">
{% include 'ChillActivityBundle:Activity:show.html.twig' with {'context': 'accompanyingCourse'} %} {% include 'ChillActivityBundle:Activity:show.html.twig' with {'context': 'accompanyingCourse'} %}
</div>
</div>
</div> </div>
{% endblock content %} {% endblock content %}

View File

@ -8,12 +8,8 @@
{% block personcontent -%} {% block personcontent -%}
<div class="activity-show"> <div class="activity-show">
<div class="row justify-content-center">
<div class="col-md-10 col-xxl">
{% include 'ChillActivityBundle:Activity:show.html.twig' with {'context': 'person'} %} {% include 'ChillActivityBundle:Activity:show.html.twig' with {'context': 'person'} %}
</div>
</div>
</div> </div>
{% endblock personcontent %} {% endblock personcontent %}

View File

@ -1,10 +1,11 @@
// this file loads all assets from the Chill person bundle // this file loads all assets from the Chill person bundle
module.exports = function(encore, entries) { module.exports = function(encore, entries)
entries.push(__dirname + '/Resources/public/index.js'); {
entries.push(__dirname + '/Resources/public/chill/index.js');
encore.addAliases({ encore.addAliases({
ChillActivityAssets: __dirname + '/Resources/public' ChillActivityAssets: __dirname + '/Resources/public'
}); });
encore.addEntry('vue_activity', __dirname + '/Resources/public/vuejs/Activity/index.js'); encore.addEntry('vue_activity', __dirname + '/Resources/public/vuejs/Activity/index.js');
}; };

View File

@ -22,11 +22,11 @@
{% block title %}{{ 'Editing document for %name%'|trans({ '%name%': person|chill_entity_render_string } ) }}{% endblock %} {% block title %}{{ 'Editing document for %name%'|trans({ '%name%': person|chill_entity_render_string } ) }}{% endblock %}
{% block personcontent %} {% block personcontent %}
<h1>{{ 'Edit Document' | trans }}</h1> <h1>{{ 'Edit Document' | trans }}</h1>
{{ form_errors(form) }} {{ form_errors(form) }}
{{ form_start(form) }} {{ form_start(form) }}
{{ form_row(form.title) }} {{ form_row(form.title) }}
{{ form_row(form.date) }} {{ form_row(form.date) }}
{{ form_row(form.category) }} {{ form_row(form.category) }}
@ -49,16 +49,16 @@
</li> </li>
{% endif %} #} {% endif %} #}
</ul> </ul>
{{ form_end(form) }} {{ form_end(form) }}
{% endblock %} {% endblock %}
{% block js %} {% block js %}
<script src="{{ asset('build/async_upload.js') }}" type="text/javascript"></script> {{ encore_entry_script_tags('mod_async_upload') }}
{% endblock %} {% endblock %}
{% block css %} {% block css %}
<link rel="stylesheet" href="{{ asset('build/async_upload.css') }}"/> {{ encore_entry_link_tags('mod_async_upload') }}
{% endblock %} {% endblock %}

View File

@ -24,7 +24,7 @@
{% block title %}{{ 'Documents for %name%'|trans({ '%name%': person|chill_entity_render_string } ) }}{% endblock %} {% block title %}{{ 'Documents for %name%'|trans({ '%name%': person|chill_entity_render_string } ) }}{% endblock %}
{% block js %} {% block js %}
<script src="{{ asset('build/async_upload.js') }}" type="text/javascript"></script> {{ encore_entry_script_tags('mod_async_upload') }}
{% endblock %} {% endblock %}
{% block personcontent %} {% block personcontent %}

View File

@ -22,11 +22,11 @@
{% block personcontent %} {% block personcontent %}
<h1>{{ 'New document for %name%'|trans({ '%name%': person|chill_entity_render_string } ) }}</h1> <h1>{{ 'New document for %name%'|trans({ '%name%': person|chill_entity_render_string } ) }}</h1>
{{ form_errors(form) }} {{ form_errors(form) }}
{{ form_start(form) }} {{ form_start(form) }}
{{ form_row(form.title) }} {{ form_row(form.title) }}
{{ form_row(form.date) }} {{ form_row(form.date) }}
{{ form_row(form.category) }} {{ form_row(form.category) }}
@ -48,9 +48,9 @@
{% endblock %} {% endblock %}
{% block js %} {% block js %}
<script src="{{ asset('build/async_upload.js') }}" type="text/javascript"></script> {{ encore_entry_script_tags('mod_async_upload') }}
{% endblock %} {% endblock %}
{% block css %} {% block css %}
<link rel="stylesheet" href="{{ asset('build/async_upload.css') }}"/> {{ encore_entry_link_tags('mod_async_upload') }}
{% endblock %} {% endblock %}

View File

@ -23,19 +23,19 @@
{% block title %}{{ 'Detail of document of %name%'|trans({ '%name%': person|chill_entity_render_string } ) }}{% endblock %} {% block title %}{{ 'Detail of document of %name%'|trans({ '%name%': person|chill_entity_render_string } ) }}{% endblock %}
{% block js %} {% block js %}
<script src="{{ asset('build/async_upload.js') }}" type="text/javascript"></script> {{ encore_entry_script_tags('mod_async_upload') }}
{% endblock %} {% endblock %}
{% block personcontent %} {% block personcontent %}
<h1>{{ 'Document %title%' | trans({ '%title%': document.title }) }}</h1> <h1>{{ 'Document %title%' | trans({ '%title%': document.title }) }}</h1>
<dl class="chill_view_data"> <dl class="chill_view_data">
<dt>{{ 'Title'|trans }}</dt> <dt>{{ 'Title'|trans }}</dt>
<dd>{{ document.title }}</dd> <dd>{{ document.title }}</dd>
<dt>{{ 'Scope' | trans }}</dt> <dt>{{ 'Scope' | trans }}</dt>
<dd>{{ document.scope.name | localize_translatable_string }}</dd> <dd>{{ document.scope.name | localize_translatable_string }}</dd>
<dt>{{ 'Category'|trans }}</dt> <dt>{{ 'Category'|trans }}</dt>
<dd>{{ document.category.name|localize_translatable_string }}</dd> <dd>{{ document.category.name|localize_translatable_string }}</dd>
@ -58,7 +58,7 @@
{{ 'Back to the list' | trans }} {{ 'Back to the list' | trans }}
</a> </a>
</li> </li>
<li> <li>
{{ m.download_button(document.object, document.title) }} {{ m.download_button(document.object, document.title) }}
</li> </li>

View File

@ -1,3 +1,4 @@
module.exports = function(encore) { module.exports = function(encore)
encore.addEntry('async_upload', __dirname + '/Resources/public/module/async_upload/index.js'); {
encore.addEntry('mod_async_upload', __dirname + '/Resources/public/module/async_upload/index.js');
}; };

View File

@ -0,0 +1 @@
require('./chillevent.scss');

View File

@ -1 +0,0 @@
require('./css/chillevent.css');

View File

@ -1,4 +1,4 @@
// this file loads all assets from the Chill Event Bundle module.exports = function(encore, entries)
module.exports = function(encore, entries) { {
entries.push(__dirname + '/Resources/public/index.js'); entries.push(__dirname + '/Resources/public/chill/index.js');
}; };

View File

@ -6,11 +6,7 @@
* when possible, try to use bootstrap html class * when possible, try to use bootstrap html class
*/ */
@import '~ChillMainAssets/modules/bootstrap/bootstrap'; @import '~ChillMainAssets/module/bootstrap/bootstrap';
@import 'alert-first-child';
@import 'alert-with-actions';
/* /*
* Specific rules * Specific rules
@ -24,12 +20,12 @@
// styles communs pour tous les bandeaux // styles communs pour tous les bandeaux
div.banner { div.banner {
.id-number { .id-number {
font-weight: lighter; font-weight: lighter;
font-size: 50%; font-size: 50%;
&:before { content: '(n°'; } &:before { content: '(n°'; }
&:after { content: ')'; } &:after { content: ')'; }
} }
a.phone, a.phone,
a.email { a.email {
color: white; color: white;
} }
@ -73,14 +69,14 @@ div.flex-table {
} }
div.item-bloc { div.item-bloc {
// We use box-shadow instead of border // We use box-shadow instead of border
// to avoid to manage border double-width // to avoid to manage border double-width
// when blocs are resized for small screen ! // when blocs are resized for small screen !
// Then we can simulate border-collapse: collapse (table) // Then we can simulate border-collapse: collapse (table)
box-shadow: box-shadow:
1px 0 0 0 var(--bs-dark), 1px 0 0 0 var(--bs-dark),
0 1px 0 0 var(--bs-dark), 0 1px 0 0 var(--bs-dark),
1px 1px 0 0 var(--bs-dark), /* fix the corner */ 1px 1px 0 0 var(--bs-dark), /* fix the corner */
1px 0 0 0 var(--bs-dark) inset, 1px 0 0 0 var(--bs-dark) inset,
0 1px 0 0 var(--bs-dark) inset; 0 1px 0 0 var(--bs-dark) inset;
} }
} }

View File

Before

Width:  |  Height:  |  Size: 4.3 MiB

After

Width:  |  Height:  |  Size: 4.3 MiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

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