Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-inventory-catalog-admin-ui
view
adminhtml
templates
source_selection.phtml
Go to the documentation of this file.
1
<?php
7
// TODO: Temporary implementation. UI components rework needed.
8
// TODO: Form validation when no source is set
9
10
// @codingStandardsIgnoreFile
11
14
$viewModel
=
$block
->getViewModel();
15
16
if
(
$block
->getData(
'show_only_assigned_sources'
)) {
17
$sources =
$viewModel
->getAssignedSources();
18
}
else
{
19
$sources =
$viewModel
->getSources();
20
}
21
?>
22
<div
class
=
"page-main-actions"
>
23
<div
class
=
"page-actions"
>
24
<div
class
=
"page-actions-buttons"
>
25
<div
class
=
"page-actions"
data-
ui
-
id
=
"page-actions-toolbar-content-header"
>
26
<div
class
=
"page-actions-inner"
data-title=
"Import"
>
27
<div
class
=
"page-actions-buttons"
>
28
<button
29
id
=
"back"
30
title=
"Back"
31
type=
"button"
32
class
=
"action-scalable back"
>
33
<span><?=
/* @noEscape */
__
(
'Back'
) ?></span>
34
</button>
35
36
<button
id
=
"bulk-operation"
37
title=
"<?= $block->escapeHtmlAttr(__($block->getData('button_title'))) ?>"
38
type=
"button"
39
class
=
"action-default scalable save primary"
>
40
<span><?=
$block
->escapeHtml(
__
(
$block
->getData(
'button_title'
))) ?></span>
41
</button>
42
</div>
43
</div>
44
</div>
45
</div>
46
</div>
47
</div>
48
49
<div
class
=
"entry-edit form-inline"
>
50
<
form
51
action=
"<?= /* @noEscape */ $block->getUrl($block->getData('submit_url')) ?>"
52
id
=
"bulk-operation-form"
53
method=
"post"
54
enctype=
"multipart/form-data"
>
55
<div>
56
<input
name
=
"form_key"
type=
"hidden"
value
=
"<?= /* @noEscape */ $block->getFormKey() ?>"
>
57
</div>
58
59
<?=
$block
->getChildHtml(
'notice'
) ?>
60
61
<fieldset
class
=
"fieldset admin__fieldset"
id
=
"base_fieldset"
>
62
<legend
class
=
"admin__legend legend"
>
63
<span><?=
/* @noEscape */
__
(
'Bulk operation'
) ?></span>
64
</legend>
65
66
<div
class
=
"admin__field field field-entity"
>
67
<div
class
=
"admin__field-control control"
>
68
<div
class
=
"admin__field"
>
69
<?=
/* @noEscape */
__
(
'You selected <strong>%count</strong> products for this bulk operation.'
, [
70
'count'
=>
$viewModel
->getProductsCount()
71
]) ?><br />
72
</div>
73
</div>
74
</div>
75
</fieldset>
76
77
<fieldset
class
=
"fieldset admin__fieldset"
id
=
"base_fieldset"
>
78
<legend
class
=
"admin__legend legend"
>
79
<span><?=
/* @noEscape */
__
(
'Select one or more sources'
) ?></span>
80
</legend>
81
82
<div
class
=
"admin__field field field-entity"
>
83
<div
class
=
"admin__field-control control"
>
84
<div
class
=
"admin__field"
>
85
<?php
foreach
($sources as
$source
) : ?>
86
<?php ?>
87
<input
88
class
=
"admin__control-checkbox"
89
id
=
"source-selection-<?= $block->escapeHtmlAttr($source->getSourceCode()) ?>"
90
type=
"checkbox"
91
name
=
"sources[]"
92
value
=
"<?= $block->escapeHtmlAttr($source->getSourceCode()) ?>"
/>
93
<label
94
for
=
"source-selection-<?= $block->escapeHtmlAttr($source->getSourceCode()) ?>"
>
95
&
nbsp
;&
nbsp
;<?=
$block
->escapeHtml(
$source
->getName())?>
96
</label><br />
97
<?php
endforeach
; ?>
98
</div>
99
</div>
100
</div>
101
</fieldset>
102
</
form
>
103
</div>
104
105
<script>
106
require([
'jquery'
],
function
($) {
107
$(
'#back'
).click(
function
() {
108
self
.location.href=
'<?= /* @noEscape */ $block->getUrl('
catalog/product/index
') ?>'
;
109
});
110
111
$(
'#bulk-operation'
).click(
function
() {
112
$(
'#bulk-operation-form'
).submit();
113
});
114
})
115
</script>
value
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition:
block.php:9
$viewModel
$viewModel
Definition:
source_selection.phtml:14
endforeach
foreach( $this->main as $item) endforeach
Definition:
side-menu.phtml:10
$source
$source
Definition:
source.php:23
__
__()
Definition:
__.php:13
form
jquery extjs ext tree mage adminhtml form
Definition:
tree.phtml:41
$block
$block
Definition:
block.php:8
ui
jquery ui
Definition:
tree.phtml:41
name
nbsp
& nbsp
Definition:
source_selection.phtml:95