Merge remote-tracking branch 'origin/issue159_page_acceuil' into testing-202401

This commit is contained in:
Julien Fastré 2024-02-19 13:36:23 +01:00
commit 24eb13f440
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
7 changed files with 31 additions and 3 deletions

View File

@ -0,0 +1 @@
import './index.scss';

View File

@ -0,0 +1,7 @@
div.flex-table {
.news-content {
p {
margin-top: 1rem;
}
}
}

View File

@ -8,6 +8,8 @@
</p> </p>
</div> </div>
<div class="item-bloc"> <div class="item-bloc">
<div class="news-content">
{{ entity.content|chill_markdown_to_html }} {{ entity.content|chill_markdown_to_html }}
</div> </div>
</div>
</div> </div>

View File

@ -4,6 +4,11 @@
{{ 'news.title'|trans }} {{ 'news.title'|trans }}
{% endblock title %} {% endblock title %}
{% block css %}
{{ parent() }}
{{ encore_entry_link_tags('mod_news') }}
{% endblock %}
{% block content %} {% block content %}
<div class="col-md-10 asideactivity-list"> <div class="col-md-10 asideactivity-list">
<h2>{{ 'news.title'|trans }}</h2> <h2>{{ 'news.title'|trans }}</h2>
@ -42,12 +47,14 @@
</div> </div>
<div class="item-row separator"> <div class="item-row separator">
<div>
{{ entity.content|u.truncate(350, '… [' ~ ('news.read_more'|trans) ~ '](' ~ chill_path_add_return_path('chill_main_single_news_item', { 'id': entity.id } ) ~ ')', false)|chill_markdown_to_html }} {{ entity.content|u.truncate(350, '… [' ~ ('news.read_more'|trans) ~ '](' ~ chill_path_add_return_path('chill_main_single_news_item', { 'id': entity.id } ) ~ ')', false)|chill_markdown_to_html }}
</div> </div>
</div>
<div class="item-row"> <div class="item-row">
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
<a href="{{ chill_path_add_return_path('chill_main_single_news_item', { 'id': entity.id } ) }}" class="btn btn-show btn-mini"></a> <a href="{{ chill_path_add_return_path('chill_main_single_news_item', { 'id': entity.id } ) }}" class="btn btn-show btn-sm read-more">{{ 'news.read_more'|trans }}</a>
</li> </li>
</ul> </ul>
</div> </div>

View File

@ -2,6 +2,11 @@
{% block title 'news.show_details'|trans %} {% block title 'news.show_details'|trans %}
{% block css %}
{{ parent() }}
{{ encore_entry_link_tags('mod_news') }}
{% endblock %}
{% block content %} {% block content %}
<div class="col-md-10 col-xxl"> <div class="col-md-10 col-xxl">
<div class="news-item-show"> <div class="news-item-show">

View File

@ -4,6 +4,11 @@
{% include('@ChillMain/CRUD/_view_title.html.twig') %} {% include('@ChillMain/CRUD/_view_title.html.twig') %}
{% endblock %} {% endblock %}
{% block css %}
{{ parent() }}
{{ encore_entry_link_tags('mod_news') }}
{% endblock %}
{% block admin_content %} {% block admin_content %}
<div class="col-md-10 col-xxl"> <div class="col-md-10 col-xxl">

View File

@ -76,6 +76,7 @@ module.exports = function(encore, entries)
encore.addEntry('mod_pick_postal_code', __dirname + '/Resources/public/module/pick-postal-code/index.js'); encore.addEntry('mod_pick_postal_code', __dirname + '/Resources/public/module/pick-postal-code/index.js');
encore.addEntry('mod_pick_rolling_date', __dirname + '/Resources/public/module/pick-rolling-date/index.js'); encore.addEntry('mod_pick_rolling_date', __dirname + '/Resources/public/module/pick-rolling-date/index.js');
encore.addEntry('mod_address_details', __dirname + '/Resources/public/module/address-details/index'); encore.addEntry('mod_address_details', __dirname + '/Resources/public/module/address-details/index');
encore.addEntry('mod_news', __dirname + '/Resources/public/module/news/index.js');
// Vue entrypoints // Vue entrypoints
encore.addEntry('vue_address', __dirname + '/Resources/public/vuejs/Address/index.js'); encore.addEntry('vue_address', __dirname + '/Resources/public/vuejs/Address/index.js');