YetiForceCompany/YetiForceCRM

View on GitHub
layouts/basic/components/InterestsConflictUnlock.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-AppComponents-InterestsConflictUnlock-->
    <form class="js-filter-form form-inline" data-js="container">
        <div class="input-group">
            <div class="input-group-prepend">
                <span class="input-group-text" id="unlockInputDate">
                    <span class="fas fa-calendar-alt mr-2"></span>
                    {\App\Language::translate('LBL_DATE')}
                </span>
            </div>
            <input name="date" type="text" class="dateRangeField dateFilter form-control text-center" data-calendar-type="range" value="{$DATE}" aria-describedby="unlockInputDate" />
        </div>
        <div class="input-group ml-3">
            <div class="input-group-prepend">
                <span class="input-group-text" id="unlockStatusListDESC">
                    <span class="fas fa-stream mr-2"></span>
                    {\App\Language::translate('Status')}
                </span>
            </div>
            <select id="unlockStatusList" class="form-control select2" multiple="true" name="status[]" aria-describedby="unlockStatusListDESC">
                {foreach from=$UNLOCK_STATUS_LIST key=KEY item=STATUS}
                    <option value="{$KEY}">{$STATUS}</option>
                {/foreach}
            </select>
        </div>
        <div class="input-group ml-3">
            <div class="input-group-prepend">
                <span class="input-group-text" id="unlockRelatedDesc">
                    <span class="fas fa-link mr-2"></span>
                    {\App\Language::translate('LBL_RELATED_RECORD')}
                </span>
            </div>
            <input name="related" type="text" class="form-control text-center" placeholder="{\App\Language::translate('LBL_STARTS_WITH')}" value="" aria-describedby="unlockRelatedDesc" />
        </div>
        <div class="input-group ml-3">
            <div class="input-group-prepend">
                <span class="input-group-text" id="unlocUsersListDesc">
                    <span class="yfi yfi-users-2 mr-2"></span>
                    {\App\Language::translate('LBL_USER')}
                </span>
            </div>
            <select id="unlocUsersList" class="form-control select2" multiple="true" name="users[]" aria-describedby="unlocUsersListDesc">
                {foreach from=$USERS key=USER_ID item=USER}
                    <option value="{$USER_ID}">
                        {$USER->getDisplayName()} ({$USER->getRoleDetail()->get('rolename')})
                    </option>
                {/foreach}
            </select>
        </div>
    </form>
    <table id="js-unlock-table" class="table table-sm table-striped display js-unlock-table text-center mt-2">
        <thead>
            <tr>
                <th>{\App\Language::translate('LBL_DATE')}</th>
                <th>{\App\Language::translate('LBL_USER')}</th>
                <th>{\App\Language::translate('Status')}</th>
                <th>{\App\Language::translate('LBL_RELATED_RECORD')}</th>
                <th>{\App\Language::translate('LBL_COMMENT')}</th>
                <th>{\App\Language::translate('LBL_ACTIONS')}</th>
            </tr>
        </thead>
    </table>
    <!-- /tpl-AppComponents-InterestsConflictUnlock-->
{/strip}