YetiForceCompany/YetiForceCRM

View on GitHub
layouts/basic/modules/Settings/Menu/EditMenu.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}
    <div class="tpl-Settings-Menu-EditMenu modal fade" tabindex="-1">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title"><span class="yfi yfi-full-editing-view u-mr-5px"></span>{\App\Language::translate('LBL_EDITION_MENU', $QUALIFIED_MODULE)}</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="{\App\Language::translate('LBL_CLOSE')}">
                        <span aria-hidden="true" title="{\App\Language::translate('LBL_CLOSE')}">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    {assign var=MENU_TYPES value=$MODULE_MODEL->getMenuTypes()}
                    {assign var=MENU_TYPE value=$MENU_TYPES[$RECORD->get('type')]}
                    <form class="form-horizontal">
                        <input type="hidden" id="menuType" value="{$MENU_TYPE}" />
                        <input type="hidden" name="id" value="{$ID}" />
                        <input type="hidden" name="role" value="{$RECORD->get('role')}" />
                        <div class="form-group row">
                            <label class="col-md-4 col-form-label">{\App\Language::translate('LBL_TYPE_OF_MENU', $QUALIFIED_MODULE)}:</label>
                            <div class="col-md-7 form-control-plaintext">
                                {\App\Language::translate('LBL_'|cat:strtoupper($MENU_TYPE), $QUALIFIED_MODULE)}
                            </div>
                        </div>
                        {include file=\App\Layout::getTemplatePath('types/'|cat:$MENU_TYPE|cat:'.tpl', $QUALIFIED_MODULE)}
                    </form>
                </div>
                <div class="modal-footer">
                    <div class="float-right cancelLinkContainer" style="margin-top:0px;">

                        <button class="btn btn-success saveButton"><span class="fa fa-check u-mr-5px"></span><strong>{\App\Language::translate('LBL_SAVE_MENU', $QUALIFIED_MODULE)}</strong></button>
                        <button class="btn btn-warning" type="reset"
                            data-dismiss="modal"><span class="fa fa-times u-mr-5px"></span>{\App\Language::translate('LBL_CANCEL', $QUALIFIED_MODULE)}</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
{/strip}