Files
CRM/layouts/v7/modules/Calendar/EditUserCalendar.tpl
BACHIR SOULDI 2794e62571 first commit
2025-09-28 08:49:37 +01:00

50 lines
2.7 KiB
Smarty

{*+**********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.1
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
************************************************************************************}
{* modules/Calendar/views/UserCalendarViews.php *}
{strip}
{assign var=SHARED_USER_INFO value= Zend_Json::encode($SHAREDUSERS_INFO)}
{assign var=CURRENT_USER_ID value= $CURRENTUSER_MODEL->getId()}
<div class="modal-dialog modelContainer modal-content">
{assign var=HEADER_TITLE value={vtranslate('LBL_EDITING_CALENDAR_VIEW', $MODULE)}}
{include file="ModalHeader.tpl"|vtemplate_path:$MODULE TITLE=$HEADER_TITLE}
<div class="modal-body">
<form class="form-horizontal">
<input type="hidden" class="selectedType" value="" />
<input type="hidden" class="selectedColor" value="" />
<input type="hidden" class="editorMode" value="edit" />
<div class="form-group editCalendarViewsList">
<label class="control-label fieldLabel col-sm-4">{vtranslate('LBL_EDITING_CALENDAR_VIEW', $MODULE)}</label>
<div class="controls fieldValue col-sm-6">
<select class="select2" name="usersList" style="min-width: 250px;">
<option value="{$CURRENT_USER_ID}">{vtranslate('LBL_MINE',$MODULE)}</option>
{foreach key=USER_ID item=USER_NAME from=$SHAREDUSERS}
{if $SHAREDUSERS_INFO[$USER_ID]['visible'] != '0'}
<option value="{$USER_ID}">{$USER_NAME}</option>
{/if}
{/foreach}
{foreach key=GROUP_ID item=GROUP_NAME from=$SHAREDGROUPS}
{if $SHAREDUSERS_INFO[$GROUP_ID]['visible'] != '0'}
<option value="{$GROUP_ID}">{$GROUP_NAME}</option>
{/if}
{/foreach}
</select>
</div>
</div>
<div class="form-group">
<label class="control-label fieldLabel col-sm-4">{vtranslate('LBL_SELECT_CALENDAR_COLOR', $MODULE)}</label>
<div class="controls fieldValue col-sm-8">
<p class="calendarColorPicker"></p>
</div>
</div>
</form>
</div>
{include file="ModalFooter.tpl"|vtemplate_path:$MODULE}
</div>
{/strip}