mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-11-04 03:08:25 +00:00 
			
		
		
		
	better color coherency with buttons
This commit is contained in:
		@@ -2,10 +2,12 @@
 | 
			
		||||
    {% if is_granted('CHILL_ACTIVITY_SEE_DETAILS', activity) %}
 | 
			
		||||
        {% if no_action is not defined or no_action == false %}
 | 
			
		||||
            <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',
 | 
			
		||||
                    'entityId': activity.id
 | 
			
		||||
                }) }}">{{ 'notification.Notify'|trans }}</a>
 | 
			
		||||
                }) }}">
 | 
			
		||||
                    <i class="fa fa-paper-plane fa-fw"></i>
 | 
			
		||||
                    {{ 'notification.Notify'|trans }}</a>
 | 
			
		||||
            </li>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
        {% if context == 'person' and activity.accompanyingPeriod is not empty %}
 | 
			
		||||
 
 | 
			
		||||
@@ -205,8 +205,7 @@
 | 
			
		||||
        </a>
 | 
			
		||||
    </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}) }}">
 | 
			
		||||
            <i class="fa fa-paper-plane fa-fw"></i>
 | 
			
		||||
        <a class="btn btn-notify" href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\ActivityBundle\\Entity\\Activity', 'entityId': entity.id}) }}">
 | 
			
		||||
            {{ 'notification.Notify'|trans }}
 | 
			
		||||
        </a>
 | 
			
		||||
    </li>
 | 
			
		||||
 
 | 
			
		||||
@@ -28,8 +28,7 @@
 | 
			
		||||
    <div class="post-menu pt-4">
 | 
			
		||||
 | 
			
		||||
        <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}) }}">
 | 
			
		||||
                <i class="fa fa-paper-plane fa-fw"></i>
 | 
			
		||||
            <a class="btn btn-notify" href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\ActivityBundle\\Entity\\Activity', 'entityId': entity.id}) }}">
 | 
			
		||||
                {{ 'notification.Notify'|trans }}
 | 
			
		||||
            </a>
 | 
			
		||||
        </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -46,12 +46,6 @@
 | 
			
		||||
                {{ 'Back to the list' | trans }}
 | 
			
		||||
            </a>
 | 
			
		||||
        </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>
 | 
			
		||||
            {{ m.download_button(document.object, document.title) }}
 | 
			
		||||
        </li>
 | 
			
		||||
@@ -62,6 +56,12 @@
 | 
			
		||||
                </a>
 | 
			
		||||
            </li>
 | 
			
		||||
        {% 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>
 | 
			
		||||
</div>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 
 | 
			
		||||
@@ -21,7 +21,7 @@ $chill-theme-buttons: (
 | 
			
		||||
   "download":      $gray-300,
 | 
			
		||||
   "cancel":        $gray-300,
 | 
			
		||||
   "choose":        $gray-300,
 | 
			
		||||
   "notify":        $gray-300,
 | 
			
		||||
   "notify":        $chill-blue,
 | 
			
		||||
   "unlink":        $chill-red,
 | 
			
		||||
   "tpchild":       $chill-pink,
 | 
			
		||||
);
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
<template>
 | 
			
		||||
   
 | 
			
		||||
   <button v-if="hasWorkflow"
 | 
			
		||||
      class="btn btn-misc"
 | 
			
		||||
      class="btn btn-primary"
 | 
			
		||||
      @click="openModal">
 | 
			
		||||
      <b>{{ countWorkflows }}</b>
 | 
			
		||||
      <template v-if="countWorkflows > 1">{{ $t('workflows') }}</template>
 | 
			
		||||
@@ -100,8 +100,8 @@ export default {
 | 
			
		||||
      messages: {
 | 
			
		||||
         fr: {
 | 
			
		||||
            workflow_list: "Liste des workflows",
 | 
			
		||||
            workflow: " workflow",
 | 
			
		||||
            workflows: " workflows",
 | 
			
		||||
            workflow: " workflow associé",
 | 
			
		||||
            workflows: " workflows associés",
 | 
			
		||||
         }
 | 
			
		||||
      }
 | 
			
		||||
   }
 | 
			
		||||
 
 | 
			
		||||
@@ -20,6 +20,8 @@
 | 
			
		||||
 | 
			
		||||
    {{ form_row(form.title, { 'label': 'notification.subject'|trans }) }}
 | 
			
		||||
    {{ form_row(form.addressees, { 'label': 'notification.sent_to'|trans }) }}
 | 
			
		||||
    
 | 
			
		||||
    {% include handler.template(notification) with handler.templateData(notification) %}
 | 
			
		||||
 | 
			
		||||
    <div class="mb-3 row">
 | 
			
		||||
        <label class="col-form-label col-sm-4" for="notification_message">{{ form_label(form.message) }}</label>
 | 
			
		||||
@@ -28,8 +30,6 @@
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    {% include handler.template(notification) with handler.templateData(notification) %}
 | 
			
		||||
 | 
			
		||||
    {{ form_end(form) }}
 | 
			
		||||
 | 
			
		||||
    <ul class="record_actions sticky-form-buttons">
 | 
			
		||||
 
 | 
			
		||||
@@ -197,8 +197,7 @@
 | 
			
		||||
                    </div>
 | 
			
		||||
                {% endif %}
 | 
			
		||||
                <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}) }}">
 | 
			
		||||
                        <i class="fa fa-paper-plane fa-fw"></i>
 | 
			
		||||
                    <a class="btn btn-notify" href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod', 'entityId': accompanyingCourse.id}) }}">
 | 
			
		||||
                        {{ 'notification.Notify'|trans }}
 | 
			
		||||
                    </a>
 | 
			
		||||
                </div>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user