src/Eccube/Resource/template/admin/Content/news_edit.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% extends '@admin/default_frame.twig' %}
  9. {% set menus = ['content', 'news'] %}
  10. {% block title %}{{ 'admin.content.news_management'|trans }}{% endblock %}
  11. {% block sub_title %}{{ 'admin.content.contents_management'|trans }}{% endblock %}
  12. {% form_theme form '@admin/Form/bootstrap_4_horizontal_layout.html.twig' %}
  13. {% block main %}
  14.     <form role="form" class="form-horizontal" name="form1" id="form1" method="post" action="?">
  15.         {{ form_widget(form._token) }}
  16.         <div class="c-contentsArea__cols">
  17.             <div class="c-contentsArea__primaryCol">
  18.                 <div class="c-primaryCol">
  19.                     <div class="card rounded border-0 mb-4">
  20.                         <div class="card-header">
  21.                             <div class="row">
  22.                                 <div class="col-8">
  23.                                     <span class="card-title">{{ 'admin.content.news.news_registration'|trans }}</span></div>
  24.                                 <div class="col-4 text-end">
  25.                                     <a data-bs-toggle="collapse" href="#newsForm"
  26.                                                                  aria-expanded="true" aria-controls="newsForm"><i class="fa fa-lg fa-angle-up"></i></a></div>
  27.                             </div>
  28.                         </div>
  29.                         <div class="ec-cardCollapse collapse show" id="newsForm" style="">
  30.                             <div class="card-body">
  31.                                 <div class="row">
  32.                                     <div class="col-3"><span>{{ 'admin.content.news.publish_date'|trans }}</span></div>
  33.                                     <div class="col mb-2">
  34.                                         {{ form_widget(form.publish_date) }}
  35.                                         {{ form_errors(form.publish_date) }}
  36.                                     </div>
  37.                                 </div>
  38.                                 <div class="row">
  39.                                     <div class="col-3"><span>{{ 'admin.content.news.title'|trans }}</span></div>
  40.                                     <div class="col mb-2">
  41.                                         {{ form_widget(form.title) }}
  42.                                         {{ form_errors(form.title) }}
  43.                                     </div>
  44.                                 </div>
  45.                                 <div class="row">
  46.                                     <div class="col-3">
  47.                                         <div class="d-inline-block" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ 'tooltip.content.news.url'|trans }}">
  48.                                             <span>{{ 'admin.content.news.url'|trans }}</span><i class="fa fa-question-circle fa-lg ms-1"></i>
  49.                                         </div>
  50.                                     </div>
  51.                                     <div class="col mb-2">
  52.                                         {{ form_widget(form.url) }}
  53.                                         {{ form_errors(form.url) }}
  54.                                     </div>
  55.                                 </div>
  56.                                 <div class="row">
  57.                                     <div class="col-3">&nbsp;</div>
  58.                                     <div class="col mb-2">
  59.                                         {{ form_widget(form.link_method) }}
  60.                                         {{ form_errors(form.link_method) }}
  61.                                     </div>
  62.                                 </div>
  63.                                 <div class="row">
  64.                                     <div class="col-3">
  65.                                         <div class="d-inline-block" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ 'tooltip.content.news.body'|trans }}">
  66.                                             <span>{{ 'admin.content.news.body'|trans }}</span><i class="fa fa-question-circle fa-lg ms-1"></i>
  67.                                         </div>
  68.                                     </div>
  69.                                     <div class="col mb-2">
  70.                                         {{ form_widget(form.description) }}
  71.                                         {{ form_errors(form.description) }}
  72.                                     </div>
  73.                                 </div>
  74.                                 {# エンティティ拡張の自動出力 #}
  75.                                 {% for f in form|filter(f => f.vars.eccube_form_options.auto_render) %}
  76.                                     {% if f.vars.eccube_form_options.form_theme %}
  77.                                         {% form_theme f f.vars.eccube_form_options.form_theme %}
  78.                                         {{ form_row(f) }}
  79.                                     {% else %}
  80.                                         <div class="row mb-2">
  81.                                             <div class="col-3">
  82.                                                 <span>{{ f.vars.label|trans }}</span>
  83.                                             </div>
  84.                                             <div class="col">
  85.                                                 {{ form_widget(f) }}
  86.                                                 {{ form_errors(f) }}
  87.                                             </div>
  88.                                         </div>
  89.                                     {% endif %}
  90.                                 {% endfor %}
  91.                             </div>
  92.                         </div>
  93.                     </div>
  94.                 </div>
  95.                 <div class="c-conversionArea">
  96.                     <div class="c-conversionArea__container">
  97.                         <div class="row justify-content-between align-items-center">
  98.                             <div class="col-6">
  99.                                 <div class="c-conversionArea__leftBlockItem">
  100.                                     <a class="c-baseLink" href="{{ url('admin_content_news') }}">
  101.                                         <i class="fa fa-backward" aria-hidden="true"></i>
  102.                                         <span>{{ 'admin.content.news_management'|trans }}</span></a>
  103.                                 </div>
  104.                             </div>
  105.                             <div class="col-6">
  106.                                 <div id="ex-conversion-action" class="row align-items-center justify-content-end">
  107.                                     <div class="col-auto">
  108.                                         {{ form_widget(form.visible) }}
  109.                                         {{ form_errors(form.visible) }}
  110.                                     </div>
  111.                                     <div class="col-auto">
  112.                                         <button class="btn btn-ec-conversion px-5" type="submit">{{ 'admin.common.registration'|trans }}</button>
  113.                                     </div>
  114.                                 </div>
  115.                             </div>
  116.                         </div>
  117.                     </div>
  118.                 </div>
  119.             </div>
  120.         </div>
  121.     </form>
  122. {% endblock %}