better color coherency with buttons

This commit is contained in:
Mathieu Jaumotte 2022-01-30 19:45:09 +01:00
parent 0a58c43952
commit 73c4a5d39d
8 changed files with 19 additions and 20 deletions

View File

@ -2,10 +2,12 @@
{% if is_granted('CHILL_ACTIVITY_SEE_DETAILS', activity) %} {% if is_granted('CHILL_ACTIVITY_SEE_DETAILS', activity) %}
{% if no_action is not defined or no_action == false %} {% if no_action is not defined or no_action == false %}
<li> <li>
<a class="btn btn-notify" href="{{ chill_path_add_return_path('chill_main_notification_create', { <a class="btn btn-misc" href="{{ chill_path_add_return_path('chill_main_notification_create', {
'entityClass': 'Chill\\ActivityBundle\\Entity\\Activity', 'entityClass': 'Chill\\ActivityBundle\\Entity\\Activity',
'entityId': activity.id 'entityId': activity.id
}) }}">{{ 'notification.Notify'|trans }}</a> }) }}">
<i class="fa fa-paper-plane fa-fw"></i>
{{ 'notification.Notify'|trans }}</a>
</li> </li>
{% endif %} {% endif %}
{% if context == 'person' and activity.accompanyingPeriod is not empty %} {% if context == 'person' and activity.accompanyingPeriod is not empty %}

View File

@ -205,8 +205,7 @@
</a> </a>
</li> </li>
<li> <li>
<a class="btn btn-misc" href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\ActivityBundle\\Entity\\Activity', 'entityId': entity.id}) }}"> <a class="btn btn-notify" href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\ActivityBundle\\Entity\\Activity', 'entityId': entity.id}) }}">
<i class="fa fa-paper-plane fa-fw"></i>
{{ 'notification.Notify'|trans }} {{ 'notification.Notify'|trans }}
</a> </a>
</li> </li>

View File

@ -28,8 +28,7 @@
<div class="post-menu pt-4"> <div class="post-menu pt-4">
<div class="d-grid gap-2"> <div class="d-grid gap-2">
<a class="btn btn-primary" href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\ActivityBundle\\Entity\\Activity', 'entityId': entity.id}) }}"> <a class="btn btn-notify" href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\ActivityBundle\\Entity\\Activity', 'entityId': entity.id}) }}">
<i class="fa fa-paper-plane fa-fw"></i>
{{ 'notification.Notify'|trans }} {{ 'notification.Notify'|trans }}
</a> </a>
</div> </div>

View File

@ -46,12 +46,6 @@
{{ 'Back to the list' | trans }} {{ 'Back to the list' | trans }}
</a> </a>
</li> </li>
<li>
{% set workflows_frame = chill_entity_workflow_list('Chill\\DocStoreBundle\\Entity\\AccompanyingCourseDocument', document.id) %}
{% if workflows_frame is not empty %}
{{ workflows_frame|raw }}
{% endif %}
</li>
<li> <li>
{{ m.download_button(document.object, document.title) }} {{ m.download_button(document.object, document.title) }}
</li> </li>
@ -62,6 +56,12 @@
</a> </a>
</li> </li>
{% endif %} {% endif %}
{% set workflows_frame = chill_entity_workflow_list('Chill\\DocStoreBundle\\Entity\\AccompanyingCourseDocument', document.id) %}
{% if workflows_frame is not empty %}
<li>
{{ workflows_frame|raw }}
</li>
{% endif %}
</ul> </ul>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -21,7 +21,7 @@ $chill-theme-buttons: (
"download": $gray-300, "download": $gray-300,
"cancel": $gray-300, "cancel": $gray-300,
"choose": $gray-300, "choose": $gray-300,
"notify": $gray-300, "notify": $chill-blue,
"unlink": $chill-red, "unlink": $chill-red,
"tpchild": $chill-pink, "tpchild": $chill-pink,
); );

View File

@ -1,7 +1,7 @@
<template> <template>
<button v-if="hasWorkflow" <button v-if="hasWorkflow"
class="btn btn-misc" class="btn btn-primary"
@click="openModal"> @click="openModal">
<b>{{ countWorkflows }}</b> <b>{{ countWorkflows }}</b>
<template v-if="countWorkflows > 1">{{ $t('workflows') }}</template> <template v-if="countWorkflows > 1">{{ $t('workflows') }}</template>
@ -100,8 +100,8 @@ export default {
messages: { messages: {
fr: { fr: {
workflow_list: "Liste des workflows", workflow_list: "Liste des workflows",
workflow: " workflow", workflow: " workflow associé",
workflows: " workflows", workflows: " workflows associés",
} }
} }
} }

View File

@ -21,6 +21,8 @@
{{ form_row(form.title, { 'label': 'notification.subject'|trans }) }} {{ form_row(form.title, { 'label': 'notification.subject'|trans }) }}
{{ form_row(form.addressees, { 'label': 'notification.sent_to'|trans }) }} {{ form_row(form.addressees, { 'label': 'notification.sent_to'|trans }) }}
{% include handler.template(notification) with handler.templateData(notification) %}
<div class="mb-3 row"> <div class="mb-3 row">
<label class="col-form-label col-sm-4" for="notification_message">{{ form_label(form.message) }}</label> <label class="col-form-label col-sm-4" for="notification_message">{{ form_label(form.message) }}</label>
<div class="col-12"> <div class="col-12">
@ -28,8 +30,6 @@
</div> </div>
</div> </div>
{% include handler.template(notification) with handler.templateData(notification) %}
{{ form_end(form) }} {{ form_end(form) }}
<ul class="record_actions sticky-form-buttons"> <ul class="record_actions sticky-form-buttons">

View File

@ -197,8 +197,7 @@
</div> </div>
{% endif %} {% endif %}
<div class="d-grid gap-2"> <div class="d-grid gap-2">
<a class="btn btn-misc" href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod', 'entityId': accompanyingCourse.id}) }}"> <a class="btn btn-notify" href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod', 'entityId': accompanyingCourse.id}) }}">
<i class="fa fa-paper-plane fa-fw"></i>
{{ 'notification.Notify'|trans }} {{ 'notification.Notify'|trans }}
</a> </a>
</div> </div>