mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 17:28:23 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			55 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Twig
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Twig
		
	
	
	
	
	
| {% extends "@ChillPerson/Person/layout.html.twig" %}
 | |
| 
 | |
| {% set activeRouteKey = 'chill_calendar_calendar_list' %}
 | |
| 
 | |
| {% block title %}{{ 'Calendar list' |trans }}{% endblock title %}
 | |
| 
 | |
| {% set user_id = null %}
 | |
| 
 | |
| {% block js %}
 | |
|     {{ parent() }}
 | |
|     {{ encore_entry_script_tags('mod_answer') }}
 | |
|     {{ encore_entry_script_tags('mod_document_action_buttons_group') }}
 | |
| {% endblock %}
 | |
| 
 | |
| {% block css %}
 | |
|     {{ parent() }}
 | |
|     {{ encore_entry_link_tags('mod_answer') }}
 | |
|     {{ encore_entry_link_tags('mod_document_action_buttons_group') }}
 | |
| {% endblock %}
 | |
| 
 | |
| {% block content %}
 | |
| 
 | |
|     <h1>{{ 'Calendar list' |trans }}</h1>
 | |
| 
 | |
|     {{ filterOrder|chill_render_filter_order_helper }}
 | |
| 
 | |
|     {% if calendarItems|length == 0 %}
 | |
|         <p class="chill-no-data-statement">
 | |
|             {% if nbIgnored == 0 %}
 | |
|                 {{ "There is no calendar items."|trans }}
 | |
|             {% else %}
 | |
|                 {{ 'chill_calendar.There are count ignored calendars by date filter'|trans({'nbIgnored': nbIgnored}) }}
 | |
|             {% endif %}
 | |
|         </p>
 | |
|     {% else %}
 | |
|         {{ include ('@ChillCalendar/Calendar/_list.html.twig', {context: 'person'}) }}
 | |
|     {% endif %}
 | |
| 
 | |
|     <ul class="record_actions sticky-form-buttons">
 | |
|         <li>
 | |
|             <a href="{{ path('chill_calendar_calendar_new', {'user_id': user_id, 'person_id': person.id, 'mainUser': app.user.id }) }}"
 | |
|                class="btn btn-create">
 | |
|                 {{ 'chill_calendar.Create for me'|trans }}
 | |
|             </a>
 | |
|         </li>
 | |
|         <li>
 | |
|             <a href="{{ path('chill_calendar_calendar_new', {'user_id': user_id, 'person_id': person.id}) }}"
 | |
|                class="btn btn-create">
 | |
|                 {{ 'Create'|trans }}
 | |
|             </a>
 | |
|         </li>
 | |
|     </ul>
 | |
| 
 | |
| {% endblock %}
 |