vendor/store.shopware.com/coewishlistsw6/src/Resources/views/storefront/page/wishlist/overview/add-manual-form.html.twig line 1

Open in your IDE?
  1. {% block page_wishlist_overview_content_body_add_manual_form_form_wrapper %}
  2.     <div class="add_manual_form mt-4">
  3.         <h5>{{ 'coe-wishlist.overview.manualAddFormHeadline'|trans }}</h5>
  4.         <form action="{{ path('frontend.wishlist.save.note') }}" method="post"
  5.               data-wishlist-add-manual-note="true"
  6.               data-wishlist-add-manual-note-autorefresh='{{ config('CoeWishlistSw6.config.autoRefreshManualAddNoteForm') == "1" ? "true" : "false" }}'
  7.               data-form-csrf-handler="true"
  8.               data-form-ajax-submit="true"
  9.               data-form-ajax-submit-options='{"replaceSelectors": ".btn-primary"}'>
  10.             <span class="d-none" id="add-manual-success">
  11.                 {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  12.                     type: "success",
  13.                     content: "coe-wishlist.overview.manualAddFormAddedSuccess"|trans
  14.                 } %}
  15.             </span>
  16.             <span class="d-none" id="add-manual-error">
  17.                 {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  18.                     type: "warning",
  19.                     content: "coe-wishlist.overview.manualAddFormAddedError"|trans
  20.                 } %}
  21.             </span>
  22.             {% block page_wishlist_modal_note_form_content_csrf %}
  23.                 {{ sw_csrf('frontend.wishlist.save.note') }}
  24.             {% endblock %}
  25.             <input type="hidden" name="addNewList" value="false" />
  26.             <input type="hidden" name="listId" value="{{page.activeList.id}}" />
  27.             <div class="form-row align-items-center">
  28.                 <div class="form-group col-auto">
  29.                     <input type="text" class="form-control" name="sku" placeholder="{{ 'coe-wishlist.overview.manualAddFormSku'|trans }}" required>
  30.                 </div>
  31.                 <div class="form-group col-auto">
  32.                     <input type="number" class="form-control" name="quantity" placeholder="{{ 'coe-wishlist.overview.manualAddFormQuantity'|trans }}">
  33.                 </div>
  34.                 <div class="form-group col-auto">
  35.                     <button type="submit" class="form-control btn btn-primary">{{ 'coe-wishlist.overview.manualAddFormAddBtn'|trans }}</button>
  36.                 </div>
  37.             </div>
  38.         </form>
  39.     </div>
  40. {% endblock %}