YetiForceCompany/YetiForceCRM

View on GitHub
layouts/basic/modules/OSSTimeControl/dashboards/TimeCounterContents.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-OSSTimeControl-dashboards-TimeCounterContents -->
    <div class="u-min-w-45per">
        <div class="o-time-counter text-center">
            <div class="o-time-counter__navigator  ">
                <div class="o-time-counter__navigator-buttons js-navigator-buttons d-flex align-items-center m-auto" data-js="click">
                    <a class="u-cursor-pointer text-success js-time-counter-start m-auto" title="{\App\Language::translate('LBL_START_TIME_COUNTER', $MODULE_NAME)}" data-js="click"> <span class="fa-solid fa-circle-play"></span> </a>
                    <div class="form-row m-auto d-none js-time-counter-stop" data-js="click">
                        <a class="u-cursor-pointer text-danger js-time-counter-stop mr-1" title="{\App\Language::translate('LBL_STOP_TIME_COUNTER', $MODULE_NAME)}" data-js="click"> <span class="fa-solid fa-circle-stop"></span> </a>
                        <a class="u-cursor-pointer text-warning js-time-counter-reset" title="{\App\Language::translate('LBL_RESET_TIME_COUNTER', $MODULE_NAME)}" data-js="click"> <span class="fa-solid fa-circle-xmark"></span> </a>
                    </div>
                </div>
                <div class="o-time-counter__timer text-center mt-3 js-time-counter" data-js="container">
                    00:00:00
                </div>
            </div>
            {assign var=WIDGET_DATA value=\App\Json::decode(\App\Purifier::decodeHtml($WIDGET->get('data')))}
            <div class="mt-4 d-flex justify-content-center">
                {if !empty($WIDGET_DATA['default_time'])}
                    {foreach from=$WIDGET_DATA['default_time'] item=item}
                        <button type="button" class="btn btn-outline-success u-cursor-pointer js-time-counter-minute mr-1" data-value="{$item}" title="{\App\Language::translateArgs('LBL_ADD_MINUTES', $MODULE_NAME, $item)}" data-js="click">
                            {$item}
                        </button>
                    {/foreach}
                {/if}
            </div>
        </div>
        <!-- /tpl-OSSTimeControl-dashboards-TimeCounterContents -->
{/strip}