Skip to content

Commit 9b005bf

Browse files
author
Kiyotaka Oku
authored
Merge pull request #85 from chihiro-adachi/fix-bootstrap5
デザイン調整
2 parents 3e900b8 + 1fcd8ae commit 9b005bf

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

Resource/template/admin/related_product.twig

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ $(function() {
8686
</span>
8787
</div>
8888
<div>
89-
<button type="button" id="RelatedProduct-search{{ loop.index0 }}" class="btn btn-ec-regular" data-toggle="modal" data-target="#RelatedProductSearchProductModal" data-id="{{ loop.index0 }}">
89+
<button type="button" id="RelatedProduct-search{{ loop.index0 }}" class="btn btn-ec-regular" data-bs-toggle="modal" data-bs-target="#RelatedProductSearchProductModal" data-id="{{ loop.index0 }}">
9090
{{ 'related_product.select_product'|trans }}
9191
</button>
9292
<button type="button" id="RelatedProduct-delete{{ loop.index0 }}" class="btn btn-default text-right RelatedProduct-view{{ loop.index0 }}" data-id="{{ loop.index0 }}">
@@ -104,7 +104,7 @@ $(function() {
104104
<span id="RelatedProduct-product_code{{ loop.index0 }}" class="RelatedProduct-view{{ loop.index0 }} hidden"></span>
105105
</div>
106106
<div>
107-
<button type="button" id="RelatedProduct-search{{ loop.index0 }}" class="btn btn-ec-regular" data-toggle="modal" data-target="#RelatedProductSearchProductModal" data-id="{{ loop.index0 }}">
107+
<button type="button" id="RelatedProduct-search{{ loop.index0 }}" class="btn btn-ec-regular" data-bs-toggle="modal" data-bs-target="#RelatedProductSearchProductModal" data-id="{{ loop.index0 }}">
108108
{{ 'related_product.select_product'|trans }}
109109
</button>
110110
<button type="button" id="RelatedProduct-delete{{ loop.index0 }}" class="btn text-right RelatedProduct-view{{ loop.index0 }} d-none" data-id="{{ loop.index0 }}">
@@ -142,19 +142,17 @@ $(function() {
142142
<div class="modal-content">
143143
<div class="modal-header">
144144
<h5 class="modal-title">{{ 'related_product.modal.product_search.title'|trans }}</h5>
145-
<button class="close" type="button" data-dismiss="modal" aria-label="Close">
146-
<span aria-hidden="true">×</span>
147-
</button>
145+
<button class="btn-close" type="button" data-bs-dismiss="modal" aria-label="Close"></button>
148146
</div>
149147
<div class="modal-body">
150-
<div class="form-group">
148+
<div class="form-group mb-3">
151149
{{ form_widget(searchForm.id, { attr : { placeholder : 'related_product.modal.product_search.input_name' } } ) }}
152150
</div>
153-
<div class="form-group">
151+
<div class="form-group mb-3">
154152
{{ form_widget(searchForm.category_id) }}
155153
</div>
156-
<div class="form-group">
157-
<button type="button" id="RelatedProductSearchButton" class="btn btn-primary" >
154+
<div class="form-group mb-3">
155+
<button type="button" id="RelatedProductSearchButton" class="btn btn-ec-conversion" >
158156
{{ 'admin.common.execute'|trans }}
159157
</button>
160158
</div>

Resource/template/front/related_product.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
{% endif %}
2828
</p>
2929
</a>
30-
<span>{{ RelatedProduct.content|raw }}</span>
30+
<span>{{ RelatedProduct.content|raw|purify }}</span>
3131
</li>
3232
{% endif %}
3333
{% endfor %}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ec-cube/relatedproduct42",
3-
"version": "4.2.0",
3+
"version": "4.2.1",
44
"description": "関連商品プラグイン",
55
"type": "eccube-plugin",
66
"require": {

0 commit comments

Comments
 (0)