Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
base_image.phtml
Go to the documentation of this file.
1 <?php
6 ?>
7 <div class="row">
8  <div class="add-video-button-container">
9  <button
10  id="add_video_button"
11  title="<?= /* @escapeNotVerified */ $addVideoTitle ?>"
12  type="button"
13  class="action-secondary"
14  onclick="jQuery('#new-video').modal('openModal'); jQuery('#new_video_form')[0].reset();"
15  data-ui-id="widget-button-1">
16  <span><?= /* @escapeNotVerified */ __('Add Video') ?></span>
17  </button>
18  </div>
19 </div>
20 <div id="<?= /* @escapeNotVerified */ $htmlId ?>-container"
21  class="images"
22  data-mage-init='{"baseImage":{}}'
23  data-max-file-size="<?= /* @escapeNotVerified */ $fileMaxSize ?>"
24  >
25  <div class="image image-placeholder">
26  <input type="file" name="image" data-url="<?= /* @escapeNotVerified */ $uploadUrl ?>" multiple="multiple" />
27  <img class="spacer" src="<?= /* @escapeNotVerified */ $spacerImage ?>"/>
28  <p class="image-placeholder-text"><?= /* @escapeNotVerified */ $imagePlaceholderText ?></p>
29  </div>
30  <script id="<?= /* @escapeNotVerified */ $htmlId ?>-template"
31  data-template="image"
32  type="text/x-magento-template">
33  <div class="image">
34  <img class="spacer" src="<?= /* @escapeNotVerified */ $spacerImage ?>"/>
35  <img
36  class="product-image"
37  src="<%- data.url %>"
38  data-position="<%- data.position %>"
39  alt="<%- data.label %>" />
40  <div class="actions">
41  <button
42  type="button"
43  class="action-delete"
44  data-role="delete-button"
45  title="<?= /* @escapeNotVerified */ $deleteImageText ?>">
46  <span><?= /* @escapeNotVerified */ $deleteImageText ?></span>
47  </button>
48  <button
49  type="button"
50  class="action-make-base"
51  data-role="make-base-button"
52  title="<?= /* @escapeNotVerified */ $makeBaseText ?>">
53  <span><?= /* @escapeNotVerified */ $makeBaseText ?></span>
54  </button>
55  <div class="draggable-handle"></div>
56  </div>
57  <div class="image-label"></div>
58  <div class="image-fade"><span><?= /* @escapeNotVerified */ $hiddenText ?></span></div>
59  </div>
60  </script>
61 </div>
62 <span class="action-manage-images" data-activate-tab="image-management">
63  <span><?= /* @escapeNotVerified */ $imageManagementText ?></span>
64 </span>
65 <script>
66  require([
67  'jquery'
68  ],function($){
69 
70  'use strict';
71 
72  $('[data-activate-tab=image-management]')
73  .on('click.toggleImageManagementTab', function() {
74  $('#product_info_tabs_image-management').trigger('click');
75  });
76  });
77 </script>
if( $form)() ?>< script > require(['jquery' mage mage
Definition: save.phtml:15
__()
Definition: __.php:13
jquery ui
Definition: tree.phtml:41
taxRateField this edit on("click.mselect-delete", ".mselect-delete", function() { if(!confirm('<?=/*@escapeNotVerified */__( 'Do you really want to delete this tax rate?') ?>')) { return;} var that=$(this), select=that.closest('.mselect-list').prev(), rateValue=that.parent().find( 'input[type="checkbox"]').val();$( 'body').trigger( 'processStart');var ajaxOptions={ type:'POST', data:{ tax_calculation_rate_id:rateValue, form_key:$( 'input[name="form_key"]').val() }, dataType:'json', url:'<?=/*@escapeNotVerified */$block->getTaxRateDeleteUrl() ?>', success:function(result, status) { $( 'body').trigger( 'processStop');if(result.success) { that.parent().remove();select.find( 'option').each(function() { if(this.value===rateValue) { $(this).remove();} });select.trigger( 'change.hiddenSelect');} else { if(result.error_message) alert({ content:result.error_message });else alert({ content:'<?=/*@escapeNotVerified */__( 'An error occurred') ?>' });} }, error:function() { $( 'body').trigger( 'processStop');alert({ content:'<?=/*@escapeNotVerified */__( 'An error occurred') ?>' });} };$.ajax(ajaxOptions);}) .on( 'click.mselectAdd'
Definition: edit.phtml:164