YetiForceCompany/YetiForceCRM

View on GitHub
layouts/basic/modules/Settings/Wapro/ListSynchronizerModal.tpl

Summary

Maintainability
Test Coverage
{*<!-- {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} -->*}
{strip}
    <!-- tpl-Settings-Wapro-ListSynchronizerModal -->
    <div class="modal-body pb-0">
        <textarea rows="11" disabled>{$WAPRO_MODEL->getInfo()}</textarea>
        <form>
            {assign var=SYNCHRONIZERS value=$WAPRO_MODEL->config['synchronizer']}
            {foreach from=$WAPRO_MODEL->getAllSynchronizers() item=SYNCHRONIZER}
                <div class="form-group form-check">
                    <input type="checkbox" value="{$SYNCHRONIZER->className}" class="form-check-input js-synchronizer" id="wapro{$SYNCHRONIZER->className}" {if in_array($SYNCHRONIZER->className,$SYNCHRONIZERS)} checked{/if} data-js="container">
                    <label class="form-check-label ml-2" for="wapro{$SYNCHRONIZER->className}">
                        {\App\Language::translate($SYNCHRONIZER::NAME, $QUALIFIED_MODULE)} <span class="badge badge-primary">{\App\Language::translate('LBL_NUMBER_OF_ENTRIES', $QUALIFIED_MODULE)}: {$SYNCHRONIZER->getCounter()}</span>
                    </label>
                </div>
            {/foreach}
        </form>
    </div>
    <div class="modal-footer">
        <div class="float-right">
            <button class="btn btn-success js-modal__save mr-2" type="button" name="saveButton">
                <span class="fas fa-check mr-2"></span>
                <strong>{\App\Language::translate('LBL_SAVE', $MODULE)}</strong>
            </button>
            <button class="btn btn-danger" type="reset" data-dismiss="modal">
                <span class="fas fa-times mr-2"></span>
                <strong>{\App\Language::translate('LBL_CANCEL', $MODULE)}</strong>
            </button>
        </div>
    </div>
    <!-- /tpl-Settings-Wapro-ListSynchronizerModal -->
{/strip}