mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fixed button DocumentActionsButtonsGroup display bug
- improve document table - add a smallfont css classe to handle table style when called from index or from show page
This commit is contained in:
parent
a9290eb3fe
commit
1965fc55f4
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="'ready' === props.storedObject.status" class="dropdown">
|
<div v-if="'ready' === props.storedObject.status" class="btn-group">
|
||||||
<button :class="Object.assign({'btn': true, 'btn-outline-primary': true, 'dropdown-toggle': true, 'btn-sm': props.small})" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
<button :class="Object.assign({'btn': true, 'btn-outline-primary': true, 'dropdown-toggle': true, 'btn-sm': props.small})" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
Actions
|
Actions
|
||||||
</button>
|
</button>
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-row column">
|
<div class="item-row column">
|
||||||
<table class="obj-res-eval my-3">
|
<table class="obj-res-eval smallfont my-3">
|
||||||
<thead>
|
<thead>
|
||||||
<tr><th class="obj"><h4 class="title_label">Objectif - motif - dispositif</h4></th>
|
<tr><th class="obj"><h4 class="title_label">Objectif - motif - dispositif</h4></th>
|
||||||
<th class="res"><h4 class="title_label">Résultats - orientations</h4></th>
|
<th class="res"><h4 class="title_label">Résultats - orientations</h4></th>
|
||||||
|
@ -20,9 +20,6 @@ div.accompanying-course-work {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
td {
|
|
||||||
font-size: 85%;
|
|
||||||
}
|
|
||||||
td.obj,
|
td.obj,
|
||||||
td.res {
|
td.res {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
@ -37,6 +34,10 @@ div.accompanying-course-work {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.smallfont table.obj-res-eval td {
|
||||||
|
font-size: 85%;
|
||||||
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
&.goal_title,
|
&.goal_title,
|
||||||
&.result_list,
|
&.result_list,
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
# - itemBlocClass: [uniq|colored|extended]
|
# - itemBlocClass: [uniq|colored|extended]
|
||||||
# - displayContent: [short|long] default: short
|
# - displayContent: [short|long] default: short
|
||||||
# - displayAction: [true|false] default: false
|
# - displayAction: [true|false] default: false
|
||||||
|
# - 'displayFontSmall': [true|false] default: false
|
||||||
#}
|
#}
|
||||||
<div class="item-bloc{% if displayContent is defined %} {{ displayContent }}{% endif %}{% if itemBlocClass is defined %} {{ itemBlocClass }}{% endif %}">
|
<div class="item-bloc{% if displayContent is defined %} {{ displayContent }}{% endif %}{% if itemBlocClass is defined %} {{ itemBlocClass }}{% endif %}">
|
||||||
|
|
||||||
@ -110,7 +111,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if displayContent is not defined or displayContent == 'short' %}
|
{% if displayContent is not defined or displayContent == 'short' %}
|
||||||
<div class="item-row column">
|
<div class="item-row column smallfont">
|
||||||
{% include 'ChillPersonBundle:AccompanyingCourseWork:_objectifs_results_evaluations.html.twig' with {
|
{% include 'ChillPersonBundle:AccompanyingCourseWork:_objectifs_results_evaluations.html.twig' with {
|
||||||
'displayContent': displayContent
|
'displayContent': displayContent
|
||||||
} %}
|
} %}
|
||||||
|
@ -130,27 +130,20 @@
|
|||||||
{% import "@ChillDocStore/Macro/macro.html.twig" as m %}
|
{% import "@ChillDocStore/Macro/macro.html.twig" as m %}
|
||||||
{% import "@ChillDocStore/Macro/macro_mimeicon.html.twig" as mm %}
|
{% import "@ChillDocStore/Macro/macro_mimeicon.html.twig" as mm %}
|
||||||
|
|
||||||
<div class="download mb-4 container">
|
{% if e.documents|length > 0 %}
|
||||||
{% if e.documents|length > 0 %}
|
<table class="table mt-4 mx-auto">
|
||||||
|
|
||||||
{% for d in e.documents %}
|
{% for d in e.documents %}
|
||||||
<div class="row">
|
<tr class="border-0">
|
||||||
<div class="col text-start">
|
<td class="border-0">{{ d.title }}</td>
|
||||||
{{ d.title }}
|
<td class="border-0">{{ mm.mimeIcon(d.storedObject.type) }}</td>
|
||||||
</div>
|
<td class="border-0 text-end">{{ d.storedObject|chill_document_button_group(d.title, is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_UPDATE', w), {'small': true}) }}</td>
|
||||||
<div class="col-md-auto text-center">
|
</tr>
|
||||||
{{ mm.mimeIcon(d.storedObject.type) }}
|
|
||||||
</div>
|
|
||||||
<div class="col col-lg-4 text-end">
|
|
||||||
{{ d.storedObject|chill_document_button_group(d.title, is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_UPDATE', w), {'small': true}) }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</table>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="chill-no-data-statement">{{ 'No document found'|trans }}</span>
|
<span class="chill-no-data-statement">{{ 'No document found'|trans }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
{% include '@ChillPerson/AccompanyingCourseWork/_item.html.twig' with {
|
{% include '@ChillPerson/AccompanyingCourseWork/_item.html.twig' with {
|
||||||
'displayAction': true,
|
'displayAction': true,
|
||||||
'displayContent': 'short',
|
'displayContent': 'short',
|
||||||
|
'displayFontSmall': true,
|
||||||
'itemBlocClass': ''
|
'itemBlocClass': ''
|
||||||
} %}
|
} %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-row column">
|
<div class="item-row column">
|
||||||
<table class="obj-res-eval my-3" style="font-size: 110% !important;">
|
<table class="obj-res-eval my-3">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="eval">
|
<th class="eval">
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-row column">
|
<div class="item-row column">
|
||||||
<table class="obj-res-eval my-3" style="font-size: 110% !important;">
|
<table class="obj-res-eval my-3">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="eval">
|
<th class="eval">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user