Skip to content

Commit

Permalink
[ADD] Add display error message when has error. (#2140)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoand-vn authored and ryo-endo committed Feb 27, 2017
1 parent e5e9741 commit 0875757
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Eccube/Resource/template/admin/Product/product.twig
Expand Up @@ -230,6 +230,7 @@ function fnClass(action) {
</div>

{{ form_widget(form.product_image, { attr : { accept : 'image/*', style : 'display:none;' } }) }}
{{ form_errors(form.product_image) }}
<a id="file_upload" class="with-icon">
<svg class="cb cb-plus"> <use xlink:href="#cb-plus" /></svg>ファイルをアップロード
</a>
Expand All @@ -241,9 +242,11 @@ function fnClass(action) {
{{ form_label(form.description_detail) }}
<div id="detail_description_box__detail" class="col-sm-9 col-lg-10">
{{ form_widget(form.description_detail) }}
{{ form_errors(form.description_detail) }}
<div id="detail_description_box__list" class="accordion marT15 marB20"><a id="detail_description_box__list_toggle" class="toggle with-icon"><svg class="cb cb-plus icon_plus"> <use xlink:href="#cb-plus" /></svg>一覧コメントを追加</a>
<div class="accpanel padT08">
{{ form_widget(form.description_list) }}
{{ form_errors(form.description_list) }}
</div>
</div>
</div>
Expand Down Expand Up @@ -336,6 +339,7 @@ function fnClass(action) {
{{ form_label(form.class.delivery_fee) }}
<div class="col-sm-3 col-lg-3">
{{ form_widget(form.class.delivery_fee) }}
{{ form_errors(form.class.delivery_fee) }}
</div>
</div>
{% endif %}
Expand All @@ -344,6 +348,7 @@ function fnClass(action) {
{{ form_label(form.class.tax_rate) }}
<div class="col-sm-3 col-lg-3">
{{ form_widget(form.class.tax_rate) }}
{{ form_errors(form.class.tax_rate) }}
</div>
</div>
{% endif %}
Expand All @@ -358,6 +363,7 @@ function fnClass(action) {
</div><!-- /.box-header -->
<div id="free_box__body" class="box-body accpanel">
{{ form_widget(form.free_area, {id: 'wysiwyg-area'}) }}
{{ form_errors(form.free_area) }}
</div>
</div>

Expand Down Expand Up @@ -454,6 +460,7 @@ function fnClass(action) {
</div><!-- /.box-header -->
<div id="common_shop_note_box__body" class="box-body">
{{ form_widget(form.note) }}
{{ form_errors(form.note) }}
</div>
</div>
</div>
Expand Down

0 comments on commit 0875757

Please sign in to comment.