Initial commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<div class="calendar-container no-window-scroll">
|
||||
{{{calendar}}}
|
||||
</div>
|
||||
32
client/modules/crm/res/templates/calendar/calendar.tpl
Normal file
32
client/modules/crm/res/templates/calendar/calendar.tpl
Normal file
@@ -0,0 +1,32 @@
|
||||
{{#if header}}
|
||||
<div class="row button-container">
|
||||
<div class="col-sm-4 col-xs-5">
|
||||
<div class="btn-group range-switch-group">
|
||||
<button class="btn btn-text btn-icon" data-action="prev"><span class="fas fa-chevron-left"></span></button>
|
||||
<button class="btn btn-text btn-icon" data-action="next"><span class="fas fa-chevron-right"></span></button>
|
||||
</div>
|
||||
<div class="btn-group range-switch-group">
|
||||
<button class="btn btn-text strong" data-action="today" title="{{todayLabel}}">
|
||||
<span class="hidden-sm hidden-xs">{{todayLabel}}</span><span class="visible-sm visible-xs">{{todayLabelShort}}</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<button
|
||||
class="btn btn-text{{#unless isCustomView}} hidden{{/unless}} btn-icon"
|
||||
data-action="editCustomView"
|
||||
title="{{translate 'Edit'}}"
|
||||
><span class="fas fa-pencil-alt fa-sm"></span></button>
|
||||
</div>
|
||||
|
||||
<div class="date-title col-sm-4 col-xs-7">
|
||||
<h4><span style="cursor: pointer;" data-action="refresh" title="{{translate 'Refresh'}}"></span></h4></div>
|
||||
|
||||
<div class="col-sm-4 col-xs-12">
|
||||
<div class="btn-group pull-right mode-buttons">
|
||||
{{{modeButtons}}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="calendar"></div>
|
||||
20
client/modules/crm/res/templates/calendar/modals/edit.tpl
Normal file
20
client/modules/crm/res/templates/calendar/modals/edit.tpl
Normal file
@@ -0,0 +1,20 @@
|
||||
{{#if isNew}}
|
||||
<div class="scope-switcher radio-container">
|
||||
{{#each scopeList}}
|
||||
<div>
|
||||
<label class="radio-label">
|
||||
<input
|
||||
type="radio"
|
||||
name="scope"
|
||||
class="form-radio"
|
||||
{{#ifEqual this ../scope}} checked{{/ifEqual}}
|
||||
value="{{./this}}"
|
||||
>
|
||||
{{translate this category='scopeNames'}}
|
||||
</label>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="edit-container record no-side-margin">{{{edit}}}</div>
|
||||
53
client/modules/crm/res/templates/calendar/mode-buttons.tpl
Normal file
53
client/modules/crm/res/templates/calendar/mode-buttons.tpl
Normal file
@@ -0,0 +1,53 @@
|
||||
{{#each visibleModeDataList}}
|
||||
<button class="btn btn-text strong{{#ifEqual mode ../mode}} active{{/ifEqual}}" data-action="mode" data-mode="{{mode}}" title="{{label}}"><span class="hidden-md hidden-sm hidden-xs">{{label}}</span><span class="visible-md visible-sm visible-xs">{{labelShort}}</span></button>
|
||||
{{/each}}
|
||||
<div class="btn-group" role="group">
|
||||
<button type="button" class="btn btn-text dropdown-toggle" data-toggle="dropdown"><span class="fas fa-ellipsis-h"></span></button>
|
||||
<ul class="dropdown-menu pull-right">
|
||||
{{#each hiddenModeDataList}}
|
||||
<li>
|
||||
<a
|
||||
role="button"
|
||||
tabindex="0"
|
||||
class="{{#ifEqual mode ../mode}} active{{/ifEqual}}"
|
||||
data-action="mode"
|
||||
data-mode="{{mode}}"
|
||||
>{{label}}</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
{{#if hiddenModeDataList.length}}
|
||||
<li class="divider"></li>
|
||||
{{/if}}
|
||||
{{#each scopeFilterDataList}}
|
||||
<li>
|
||||
<a
|
||||
role="button"
|
||||
tabindex="0"
|
||||
data-action="toggleScopeFilter"
|
||||
data-name="{{scope}}"
|
||||
>
|
||||
<span class="fas fa-check filter-check-icon check-icon pull-right{{#if disabled}} hidden{{/if}}"></span>
|
||||
<div>{{translate scope category='scopeNamesPlural'}}</div>
|
||||
|
||||
</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
{{#if hasMoreItems}}
|
||||
<li class="divider"></li>
|
||||
{{/if}}
|
||||
{{#if isCustomViewAvailable}}
|
||||
<li>
|
||||
<a
|
||||
role="button"
|
||||
tabindex="0"
|
||||
data-action="createCustomView"
|
||||
>{{translate 'Create Shared View' scope='Calendar'}}</a>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{#if hasWorkingTimeCalendarLink}}
|
||||
<li>
|
||||
<a href="#WorkingTimeCalendar">{{translate 'WorkingTimeCalendar' category='scopeNamesPlural'}}</a>
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
</div>
|
||||
55
client/modules/crm/res/templates/calendar/timeline.tpl
Normal file
55
client/modules/crm/res/templates/calendar/timeline.tpl
Normal file
@@ -0,0 +1,55 @@
|
||||
<link href="{{basePath}}client/modules/crm/css/vis.css" rel="stylesheet">
|
||||
|
||||
{{#if header}}
|
||||
<div class="row button-container">
|
||||
<div class="col-sm-4 col-xs-12">
|
||||
<div class="btn-group">
|
||||
<button
|
||||
class="btn btn-text btn-icon"
|
||||
title="{{translate 'Refresh'}}"
|
||||
data-action="refresh"
|
||||
><span class="fas fa-sync-alt"></span></button>
|
||||
<button
|
||||
class="btn btn-text"
|
||||
data-action="today"
|
||||
>{{translate 'Today' scope='Calendar'}}</button>
|
||||
</div>{{#if calendarTypeSelectEnabled}}<div class="btn-group calendar-type-button-group">
|
||||
<div class="btn-group " role="group">
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-text dropdown-toggle"
|
||||
data-toggle="dropdown"
|
||||
><span class="calendar-type-label">{{calendarTypeLabel}}</span> <span class="caret"></span></button>
|
||||
<ul class="dropdown-menu">
|
||||
{{#each calendarTypeDataList}}
|
||||
<li>
|
||||
<a role="button" tabindex="0" data-action="toggleCalendarType" data-name="{{type}}">
|
||||
<span
|
||||
class="fas fa-check calendar-type-check-icon pull-right{{#if disabled}} hidden{{/if}}"
|
||||
></span> {{label}}
|
||||
</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
<button
|
||||
class="btn btn-text{{#ifNotEqual calendarType 'shared'}} hidden{{/ifNotEqual}} btn-icon"
|
||||
data-action="showSharedCalendarOptions"
|
||||
title="{{translate 'Shared Mode Options' scope='Calendar'}}"
|
||||
><span class="fas fa-pencil-alt fa-sm"></span></button>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<div class="date-title col-sm-4 hidden-xs">
|
||||
<h4><span style="cursor: pointer;" data-action="refresh" title="{{translate 'Refresh'}}"></span></h4></div>
|
||||
|
||||
<div class="col-sm-4 col-xs-12">
|
||||
<div class="btn-group pull-right mode-buttons">
|
||||
{{{modeButtons}}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="timeline"></div>
|
||||
Reference in New Issue
Block a user