Skip to content

Commit

Permalink
Merge pull request #85 from chihiro-adachi/fix-bootstrap5
Browse files Browse the repository at this point in the history
デザイン調整
  • Loading branch information
Kiyotaka Oku authored Jul 1, 2022
2 parents 3e900b8 + 1fcd8ae commit 9b005bf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
16 changes: 7 additions & 9 deletions Resource/template/admin/related_product.twig
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ $(function() {
</span>
</div>
<div>
<button type="button" id="RelatedProduct-search{{ loop.index0 }}" class="btn btn-ec-regular" data-toggle="modal" data-target="#RelatedProductSearchProductModal" data-id="{{ loop.index0 }}">
<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 }}">
{{ 'related_product.select_product'|trans }}
</button>
<button type="button" id="RelatedProduct-delete{{ loop.index0 }}" class="btn btn-default text-right RelatedProduct-view{{ loop.index0 }}" data-id="{{ loop.index0 }}">
Expand All @@ -104,7 +104,7 @@ $(function() {
<span id="RelatedProduct-product_code{{ loop.index0 }}" class="RelatedProduct-view{{ loop.index0 }} hidden"></span>
</div>
<div>
<button type="button" id="RelatedProduct-search{{ loop.index0 }}" class="btn btn-ec-regular" data-toggle="modal" data-target="#RelatedProductSearchProductModal" data-id="{{ loop.index0 }}">
<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 }}">
{{ 'related_product.select_product'|trans }}
</button>
<button type="button" id="RelatedProduct-delete{{ loop.index0 }}" class="btn text-right RelatedProduct-view{{ loop.index0 }} d-none" data-id="{{ loop.index0 }}">
Expand Down Expand Up @@ -142,19 +142,17 @@ $(function() {
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">{{ 'related_product.modal.product_search.title'|trans }}</h5>
<button class="close" type="button" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<button class="btn-close" type="button" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="form-group">
<div class="form-group mb-3">
{{ form_widget(searchForm.id, { attr : { placeholder : 'related_product.modal.product_search.input_name' } } ) }}
</div>
<div class="form-group">
<div class="form-group mb-3">
{{ form_widget(searchForm.category_id) }}
</div>
<div class="form-group">
<button type="button" id="RelatedProductSearchButton" class="btn btn-primary" >
<div class="form-group mb-3">
<button type="button" id="RelatedProductSearchButton" class="btn btn-ec-conversion" >
{{ 'admin.common.execute'|trans }}
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion Resource/template/front/related_product.twig
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{% endif %}
</p>
</a>
<span>{{ RelatedProduct.content|raw }}</span>
<span>{{ RelatedProduct.content|raw|purify }}</span>
</li>
{% endif %}
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ec-cube/relatedproduct42",
"version": "4.2.0",
"version": "4.2.1",
"description": "関連商品プラグイン",
"type": "eccube-plugin",
"require": {
Expand Down

0 comments on commit 9b005bf

Please sign in to comment.