app/Plugin/NZCustomPlugin/Resource/template/default/not_published.twig line 1

Open in your IDE?
  1. {# レイアウトテンプレート名は文字列として渡される #}
  2. {% extends layout_template|default('default_frame.twig') %}
  3. {% block stylesheet %}
  4. <style>
  5. .message-container {
  6.     max-width: 600px;
  7.     margin: 80px auto;
  8.     padding: 20px;
  9. }
  10. .message-card {
  11.     background: white;
  12.     border-radius: 8px;
  13.     box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  14.     padding: 40px;
  15.     text-align: center;
  16. }
  17. .message-icon {
  18.     font-size: 60px;
  19.     margin-bottom: 20px;
  20. }
  21. .message-icon.before {
  22.     color: #ffc107;
  23. }
  24. .message-icon.after {
  25.     color: #6c757d;
  26. }
  27. .message-icon.inactive {
  28.     color: #dc3545;
  29. }
  30. .message-title {
  31.     font-size: 24px;
  32.     font-weight: bold;
  33.     margin-bottom: 15px;
  34.     color: #333;
  35. }
  36. .message-text {
  37.     font-size: 16px;
  38.     color: #666;
  39.     line-height: 1.6;
  40.     margin-bottom: 10px;
  41. }
  42. .date-info {
  43.     font-size: 18px;
  44.     color: #007bff;
  45.     margin-top: 20px;
  46.     font-weight: 600;
  47. }
  48. .btn-back {
  49.     display: inline-block;
  50.     margin-top: 30px;
  51.     padding: 12px 30px;
  52.     background: #6c757d;
  53.     color: white;
  54.     text-decoration: none;
  55.     border-radius: 4px;
  56.     transition: background 0.3s;
  57. }
  58. .btn-back:hover {
  59.     background: #5a6268;
  60.     color: white;
  61.     text-decoration: none;
  62. }
  63. </style>
  64. {% endblock %}
  65. {% block main %}
  66. <div class="message-container">
  67.     <div class="message-card">
  68.         <div class="message-icon {{ type }}">
  69.             {% if type == 'before' %}
  70.                 <i class="fa fa-clock"></i>
  71.             {% elseif type == 'after' %}
  72.                 <i class="fa fa-calendar-times"></i>
  73.             {% else %}
  74.                 <i class="fa fa-ban"></i>
  75.             {% endif %}
  76.         </div>
  77.         
  78.         <h1 class="message-title">{{ message }}</h1>
  79.         
  80.         {% if type == 'before' and publish_start_date %}
  81.             <p class="message-text">公開開始までお待ちください。</p>
  82.             <div class="date-info">
  83.                 公開開始日時: {{ publish_start_date|date('Y年m月d日 H:i') }}
  84.             </div>
  85.         {% elseif type == 'after' and publish_end_date %}
  86.             <p class="message-text">フォームの受付は終了しました。</p>
  87.             <div class="date-info">
  88.                 公開終了日時: {{ publish_end_date|date('Y年m月d日 H:i') }}
  89.             </div>
  90.         {% else %}
  91.             <p class="message-text">お探しのフォームは現在ご利用いただけません。</p>
  92.         {% endif %}
  93.         
  94.         <a href="{{ url('homepage') }}" class="btn-back">
  95.             トップページへ戻る
  96.         </a>
  97.     </div>
  98. </div>
  99. {% endblock %}