{# @var craft \craft\web\twig\variables\CraftVariable #} {# /** * Vend plugin for Craft Commerce * * Connect your Craft Commerce store to Vend POS. * * @author Angell & Co * @copyright Copyright (c) 2019 Angell & Co * @link https://angell.io * @package Vend * @since 2.0.0 */ #} {% extends "_layouts/cp" %} {% requirePermission 'vend:sync' %} {% set title = "Sync with Vend"|t('vend') %} {% set selectedSubnavItem = 'sync' %} {% import "_includes/forms" as forms %} {% set crumbs = [ { label: "Vend"|t('vend'), url: url('vend') } ] %} {% do view.registerAssetBundle("angellco\\vend\\web\\assets\\syncutils\\SyncUtilsAsset") %} {% set settings = craft.app.getConfig().getConfigFromFile('vend') %} {% js %} new Craft.Vend.FullFeedUtil({ preRunAction : "{{ settings['preRunAction'] ?? null }}" }); new Craft.Vend.FastFeedUtil({ preRunAction : "{{ settings['preRunAction'] ?? null }}" }); {% endjs %} {% css %} .vend-utils .pane > h2 { margin-top: 0; } .vend-utils .pane > .spinner.body-loading { display: none; } .vend-utils .pane.loading > .spinner.body-loading { display: block; } body.ltr .vend-utils .pane.loading > .spinner.body-loading { float: right; } body.ltr .vend-utils .pane.loading > .spinner.body-loading { margin-left: 10px; } body.rtl .vend-utils .pane.loading > .spinner.body-loading { float: left; } body.rtl .vend-utils .pane.loading > .spinner.body-loading { margin-right: 10px; } {% endcss %} {% block main %}