mygento/yandexdelivery

View on GitHub
app/design/adminhtml/default/default/layout/mygento/yandexdelivery.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0"?>
<!--
/**
 * Copyright © 2017 NKS LLC. (http://www.mygento.ru)
 * License: GPLv2
 * Package: Mygento_Yandexdelivery
 */
-->
<layout>
    <adminhtml_sales_order_view>
        <reference name="sales_order_tabs">
            <action method="addTab" ifconfig="carriers/yandexdelivery/active_backend">
                <name>order_yandexdelivery</name>
                <block>yandexdelivery/adminhtml_order_view_tab</block>
            </action>
        </reference>
    </adminhtml_sales_order_view>
    
    <adminhtml_yandexdelivery_shipment_index>
        <reference name="content">
            <block type="yandexdelivery/adminhtml_shipment" name="yandexdelivery_shipment_grid"/>
        </reference>
    </adminhtml_yandexdelivery_shipment_index>

    <adminhtml_sales_order_create_index>
        <reference name="shipping_method">
            <block type="adminhtml/sales_order_create_shipping_method_form" template="mygento/yandexdelivery/sales/order/create/shipping/method/form.phtml" name="form"/>
        </reference>
        <reference name="head">
            <action method="addItem">
                <type>js</type>
                <name>jquery/jquery-2.1.4.min.js</name>
            </action>
            <action method="addItem">
                <type>js</type>
                <name>jquery/mygento/jquery.init.js</name>
            </action>
            <action method="addItem">
                <type>js</type>
                <script>jquery/jqueryui/jquery-ui.min.js</script>
            </action>
            <action method="addItem">
                <type>js_css</type>
                <name>jquery/jqueryui/jquery-ui.min.css</name>
            </action>
            <action method="addItem">
                <type>skin_js</type>
                <name>js/mygento/yandexdelivery.js</name>
            </action>
            <action method="addItem">
                <type>skin_css</type>
                <name>css/mygento/yandexdelivery.css</name>
            </action>
            <action method="addItem">
                <type>skin_css</type>
                <name>css/mygento/yandexdelivery_pvz.css</name>
            </action>
        </reference>
    </adminhtml_sales_order_create_index>

    <adminhtml_sales_order_create_load_block_shipping_method>
        <reference name="shipping_method">
            <block type="adminhtml/sales_order_create_shipping_method_form" template="mygento/yandexdelivery/sales/order/create/shipping/method/form.phtml" name="form"/>
        </reference>
    </adminhtml_sales_order_create_load_block_shipping_method>
</layout>