AdminManageSourcesEditFormSection.xml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
  10. <section name="AdminEditSourceGeneralSection">
  11. <element name="name" type="input" selector="input[name='general[name]']"/>
  12. <element name="code" type="input" selector="input[name='general[source_code]']"/>
  13. <element name="codeErrorMessage" type="text" selector="//input[@name='general[source_code]']//..//label"/>
  14. <element name="isEnabled" type="checkbox" selector="input[name='general[enabled]']"/>
  15. <element name="isEnabledLabel" type="text" selector="input[name='general[enabled]']+label"/>
  16. <element name="description" type="textarea" selector="textarea[name='general[description]']"/>
  17. <element name="latitude" type="input" selector="input[name='general[latitude]']"/>
  18. <element name="longitude" type="input" selector="input[name='general[longitude]']"/>
  19. </section>
  20. <section name="AdminEditSourceContactInfoSection">
  21. <element name="opened" type="button" selector="div[data-index='contact_info'] .fieldset-wrapper-title[data-state-collapsible='open']"/>
  22. <element name="closed" type="button" selector="div[data-index='contact_info'] .fieldset-wrapper-title[data-state-collapsible='closed']"/>
  23. <element name="contactName" type="input" selector="input[name='general[contact_name]']"/>
  24. <element name="email" type="input" selector="input[name='general[email]']"/>
  25. <element name="phone" type="input" selector="input[name='general[phone]']"/>
  26. <element name="fax" type="input" selector="input[name='general[fax]']"/>
  27. </section>
  28. <section name="AdminEditSourceAddressDataSection">
  29. <element name="opened" type="button" selector="div[data-index='address'] .fieldset-wrapper-title[data-state-collapsible='open']"/>
  30. <element name="closed" type="button" selector="div[data-index='address'] .fieldset-wrapper-title[data-state-collapsible='closed']"/>
  31. <element name="country" type="select" selector="select[name='general[country_id]']" timeout="10"/>
  32. <element name="province" type="input" selector="input[name='general[region]']"/>
  33. <element name="state" type="select" selector="select[name='general[region_id]']"/>
  34. <element name="city" type="input" selector="input[name='general[city]']"/>
  35. <element name="street" type="input" selector="input[name='general[street]']"/>
  36. <element name="postcode" type="input" selector="input[name='general[postcode]']"/>
  37. </section>
  38. <section name="AdminEditSourceCarriersSection">
  39. <element name="opened" type="button" selector="div[data-index='carriers'] .fieldset-wrapper-title[data-state-collapsible='open']"/>
  40. <element name="closed" type="button" selector="div[data-index='carriers'] .fieldset-wrapper-title[data-state-collapsible='closed']"/>
  41. <element name="useGlobalShippingConfiguration" type="radio" selector="input[name='general[use_default_carrier_config]']"/>
  42. </section>
  43. </sections>