mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 06:26:15 +00:00
accourse resume page: actions and activities are clickable links
This commit is contained in:
parent
10070d1581
commit
74660448a1
@ -2,13 +2,11 @@
|
|||||||
{% for activity in activities | slice(0,5) %}
|
{% for activity in activities | slice(0,5) %}
|
||||||
{% set t = activity.type %}
|
{% set t = activity.type %}
|
||||||
|
|
||||||
{#
|
|
||||||
<a href="{{ path('chill_activity_activity_show', { 'id': activity.id, 'person_id': person_id, 'accompanying_period_id': accompanying_course_id }) }}"
|
<a href="{{ path('chill_activity_activity_show', { 'id': activity.id, 'person_id': person_id, 'accompanying_period_id': accompanying_course_id }) }}"
|
||||||
class="btn btn-sm btn-show" title="{{ 'voir' }}">
|
class="badge-link" title="{{ 'Show the activity'|trans }}">
|
||||||
</a>
|
|
||||||
#}
|
|
||||||
|
|
||||||
{% include '@ChillActivity/Activity/activity-badge-title.html.twig' %}
|
{% include '@ChillActivity/Activity/activity-badge-title.html.twig' %}
|
||||||
|
</a>
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -49,8 +49,6 @@ h2.badge-title {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
color: $dark;
|
color: $dark;
|
||||||
|
|
||||||
a & { text-decoration: none; } // ?!? keep it ?
|
|
||||||
|
|
||||||
span.title_label {
|
span.title_label {
|
||||||
border-radius: 0.35rem 0 0 0.35rem;
|
border-radius: 0.35rem 0 0 0.35rem;
|
||||||
color: $white;
|
color: $white;
|
||||||
@ -75,7 +73,7 @@ h2.badge-title {
|
|||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
margin: 0 0 0 auto;
|
margin: 0 0 0 auto;
|
||||||
border-radius: 0 0.35rem 0.35rem 0;
|
border-radius: 0 0.35rem 0.35rem 0;
|
||||||
background-color: $light;
|
background-color: $chill-llight-gray;
|
||||||
padding: 0.2em 1em;
|
padding: 0.2em 1em;
|
||||||
|
|
||||||
ul.small_in_title {
|
ul.small_in_title {
|
||||||
@ -83,6 +81,26 @@ h2.badge-title {
|
|||||||
font-size: 70%;
|
font-size: 70%;
|
||||||
padding-left: 1rem;
|
padding-left: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: $chill-ll-gray;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// theses links apply on badge (or other styled elements) as parent tag.
|
||||||
|
// They don't have button, picto or simple text appearance
|
||||||
|
a.badge-link {
|
||||||
|
color: unset;
|
||||||
|
text-decoration: unset;
|
||||||
|
& > h2.badge-title {
|
||||||
|
&:hover {
|
||||||
|
box-shadow: 0 0 7px 0 $chill-gray;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
span.title_action:hover {
|
||||||
|
//background-color: ;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
<div class="accompanying_course_work-list">
|
<div class="accompanying_course_work-list">
|
||||||
{% for w in works | slice(0,5) %}
|
{% for w in works | slice(0,5) %}
|
||||||
|
|
||||||
{#
|
|
||||||
<a href="{{ chill_path_add_return_path('chill_person_accompanying_period_work_edit', { 'id': w.id }) }}"
|
<a href="{{ chill_path_add_return_path('chill_person_accompanying_period_work_edit', { 'id': w.id }) }}"
|
||||||
class="btn btn-sm btn-show" title="{{ 'voir' }}">
|
class="badge-link" title="{{ 'crud.social_action.title_link'|trans }}">
|
||||||
</a>
|
|
||||||
#}
|
|
||||||
|
|
||||||
<h2 class="badge-title">
|
<h2 class="badge-title">
|
||||||
<span class="title_label">
|
<span class="title_label">
|
||||||
@ -35,6 +32,8 @@
|
|||||||
|
|
||||||
</span>
|
</span>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -334,6 +334,7 @@ crud:
|
|||||||
add_new: Ajouter une nouvelle action d'accompagnements
|
add_new: Ajouter une nouvelle action d'accompagnements
|
||||||
title_new: Nouvelle action d'accompagnements
|
title_new: Nouvelle action d'accompagnements
|
||||||
title_edit: Modifier l'action d'accompagnements
|
title_edit: Modifier l'action d'accompagnements
|
||||||
|
title_link: Voir l'action d'accompagnement
|
||||||
social_goal:
|
social_goal:
|
||||||
index:
|
index:
|
||||||
title: Liste des objectifs d'action d'accompagnements
|
title: Liste des objectifs d'action d'accompagnements
|
||||||
|
Loading…
x
Reference in New Issue
Block a user