[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/layouts/vlayout/modules/Calendar/ -> CalendarSharedUsers.tpl (source)

   1  {*<!--
   2  /*********************************************************************************

   3    ** The contents of this file are subject to the vtiger CRM Public License Version 1.0

   4     * ("License"); You may not use this file except in compliance with the License

   5     * The Original Code is:  vtiger CRM Open Source

   6     * The Initial Developer of the Original Code is vtiger.

   7     * Portions created by vtiger are Copyright (C) vtiger.

   8     * All Rights Reserved.

   9    *

  10   ********************************************************************************/
  11  -->*}
  12  {strip}
  13  <div name='calendarViewTypes'>
  14      {assign var=SHARED_USER_INFO value= Zend_Json::encode($SHAREDUSERS_INFO)}
  15      {assign var=CURRENT_USER_ID value= $CURRENTUSER_MODEL->getId()}
  16      <div id="calendarview-feeds" style="margin-left:10px;">
  17          <!--Adding or Editing Users Modal in Shared Calendar-->
  18          <div class="modal addViewsToCalendar hide">
  19              <div class="modal-header contentsBackground">
  20                  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  21                  <h3>{vtranslate('LBL_ADD_CALENDAR_VIEW', $MODULE)}</h3>
  22              </div>
  23              <div class="modal-body">
  24                  <form class="form-horizontal">
  25                      <input type="hidden" class="selectedUser" value="" />
  26                      <input type="hidden" class="selectedUserColor" value="" />
  27                      <input type="hidden" class="userCalendarMode" value="" />
  28                      <div class="control-group addCalendarViewsList">
  29                          <label class="control-label">{vtranslate('LBL_SELECT_USER_CALENDAR', $MODULE)}</label>
  30                          <div class="controls">
  31                              <select class="select2" name="usersCalendarList" style="min-width: 250px;">
  32                                  {foreach key=USER_ID item=USER_NAME from=$SHAREDUSERS}
  33                                      {if $SHAREDUSERS_INFO[$USER_ID]['visible'] == '0'}
  34                                          <option value="{$USER_ID}">{$USER_NAME}</option>
  35                                      {/if}
  36                                  {/foreach}
  37                              </select>
  38                          </div>
  39                      </div>
  40                      <div class="control-group editCalendarViewsList">
  41                          <label class="control-label">{vtranslate('LBL_EDITING_CALENDAR_VIEW', $MODULE)}</label>
  42                          <div class="controls">
  43                              <select class="select2" name="editingUsersList" style="min-width: 250px;">
  44                                  <option value="{$CURRENT_USER_ID}" data-user-color="{$SHAREDUSERS_INFO[$CURRENT_USER_ID]['color']}">{vtranslate('LBL_MINE',$MODULE)}</option>
  45                                  {foreach key=USER_ID item=USER_NAME from=$SHAREDUSERS}
  46                                      {if $SHAREDUSERS_INFO[$USER_ID]['visible'] != '0'}
  47                                          <option value="{$USER_ID}">{$USER_NAME}</option>
  48                                      {/if}
  49                                  {/foreach}
  50                              </select>
  51                          </div>
  52                      </div>
  53                      <div class="control-group">
  54                          <label class="control-label">{vtranslate('LBL_SELECT_CALENDAR_COLOR', $MODULE)}</label>
  55                          <div class="controls">
  56                              <p class="calendarColorPicker"></p>
  57                          </div>
  58                      </div>
  59                  </form>
  60              </div>
  61              {include file='ModalFooter.tpl'|@vtemplate_path:$MODULE}
  62          </div>
  63          <!--Adding or Editing Users Modal in Shared Calendar-->
  64          
  65          <div class="labelModal hide">
  66              <label class="checkbox addedCalendars" style="text-shadow: none">
  67                  <input type="checkbox" />
  68                  &nbsp;<span class="label" style="text-shadow: none"></span>
  69                  &nbsp;<i class="icon-pencil editCalendarColor cursorPointer actionImage" title="{vtranslate('LBL_EDIT_COLOR',$MODULE)}"></i>
  70                  &nbsp;<i class="icon-trash cursorPointer actionImage deleteCalendarView" title="{vtranslate('LBL_DELETE_CALENDAR',$MODULE)}"></i>
  71              </label>
  72          </div>
  73          
  74          <input type="hidden" class="sharedUsersInfo" value= {Zend_Json::encode($SHAREDUSERS_INFO)} />
  75          <label class="checkbox addedCalendars" style="text-shadow: none">
  76              <input type="checkbox" data-calendar-sourcekey="Events33_{$CURRENT_USER_ID}" data-calendar-feed="Events" 
  77                     data-calendar-userid="{$CURRENT_USER_ID}" data-calendar-feed-color="{$SHAREDUSERS_INFO[$CURRENT_USER_ID]['color']}" >
  78              &nbsp;<span class="label" style="text-shadow: none; background-color: {$SHAREDUSERS_INFO[$CURRENT_USER_ID]['color']};">{vtranslate('LBL_MINE',$MODULE)}</span>
  79              &nbsp;<i class="icon-pencil editCalendarColor cursorPointer actionImage" title="{vtranslate('LBL_EDIT_COLOR',$MODULE)}"></i>
  80          </label>
  81          {assign var=INVISIBLE_CALENDAR_VIEWS_EXISTS value='false'}
  82          {foreach key=ID item=USER from=$SHAREDUSERS}
  83              {if $SHAREDUSERS_INFO[$ID]['visible'] != '0'}
  84                  <label class="checkbox addedCalendars">
  85                      <input type="checkbox" data-calendar-sourcekey="Events33_{$ID}" data-calendar-feed="Events" data-calendar-userid="{$ID}" data-calendar-feed-color="{$SHAREDUSERS_INFO[$ID]['color']}"> 
  86                      &nbsp;<span class="label" style="text-shadow: none; background-color: {$SHAREDUSERS_INFO[$ID]['color']};">{$USER}</span>
  87                      &nbsp;<i class="icon-pencil editCalendarColor cursorPointer actionImage" title="{vtranslate('LBL_EDIT_COLOR',$MODULE)}"></i>
  88                      &nbsp;<i class="icon-trash cursorPointer actionImage deleteCalendarView" title="{vtranslate('LBL_DELETE_CALENDAR',$MODULE)}"></i>
  89                  </label>
  90              {else}
  91                  {assign var=INVISIBLE_CALENDAR_VIEWS_EXISTS value='true'}
  92              {/if}
  93          {/foreach}
  94          <input type="hidden" class="invisibleCalendarViews" value="{$INVISIBLE_CALENDAR_VIEWS_EXISTS}" />
  95      </div>
  96  </div>
  97  {/strip}
  98  <script type="text/javascript">
  99  jQuery(document).ready(function() {
 100      SharedCalendar_SharedCalendarView_Js.initiateCalendarFeeds();
 101  });
 102  </script>


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1