start.tpl 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {% if is_allowed_to_edit %}
  2. {% if external_url is defined %}
  3. <div class="alert alert-info">
  4. <p>
  5. {{ 'YouNeedCreateContent'|get_plugin_lang('EmbedRegistryPlugin') }}
  6. <a href="{{ external_url }}" class="btn btn-info" target="_blank">{{ 'CreateContent'|get_plugin_lang('EmbedRegistryPlugin') }}</a>
  7. </p>
  8. </div>
  9. {% endif %}
  10. {% if form is defined %}
  11. {{ form }}
  12. {% endif %}
  13. {% endif %}
  14. {% if current_embed is defined %}
  15. {% set start_date %}
  16. <time datetime="{{ current_embed.displayStartDate.format(constant('\DateTime::W3C')) }}">
  17. {{ current_embed.displayStartDate|api_convert_and_format_date }}
  18. </time>
  19. {% endset %}
  20. {% set end_date %}
  21. <time datetime="{{ current_embed.displayEndDate.format(constant('\DateTime::W3C')) }}">
  22. {{ current_embed.displayEndDate|api_convert_and_format_date }}
  23. </time>
  24. {% endset %}
  25. <div class="well well-sm text-center">
  26. <p class="lead">{{ current_embed.title }}</p>
  27. <p>
  28. <small>{{ 'FromDateXToDateY'|get_lang|format(start_date, end_date) }}</small>
  29. </p>
  30. <p>{{ current_link }}</p>
  31. </div>
  32. {% endif %}
  33. {{ table }}