Skip to content

Commit

Permalink
fix: can use html text for templates (fix #380) (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
jungeun-cho committed Aug 30, 2019
1 parent 2798f92 commit 038c247
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions src/js/view/template/popup/scheduleCreationPopup.hbs
Expand Up @@ -46,28 +46,28 @@
<div class="{{CSS_PREFIX}}popup-section-item {{CSS_PREFIX}}section-allday">
<input id="{{CSS_PREFIX}}schedule-allday" type="checkbox" class="{{CSS_PREFIX}}checkbox-square"{{#if isAllDay}} checked{{/if}}></input>
<span class="{{CSS_PREFIX}}icon {{CSS_PREFIX}}ic-checkbox"></span>
<span class="{{CSS_PREFIX}}content">{{popupIsAllDay-tmpl}}</span>
<span class="{{CSS_PREFIX}}content">{{{popupIsAllDay-tmpl}}}</span>
</div>
</div>
<div class="{{CSS_PREFIX}}popup-section {{CSS_PREFIX}}dropdown {{CSS_PREFIX}}close {{CSS_PREFIX}}section-state">
<button class="{{CSS_PREFIX}}button {{CSS_PREFIX}}dropdown-button {{CSS_PREFIX}}popup-section-item">
<span class="{{CSS_PREFIX}}icon {{CSS_PREFIX}}ic-state"></span>
<span id="{{CSS_PREFIX}}schedule-state" class="{{CSS_PREFIX}}content">{{#if state}}{{state}}{{else}}{{popupStateBusy-tmpl}}{{/if}}</span>
<span id="{{CSS_PREFIX}}schedule-state" class="{{CSS_PREFIX}}content">{{#if state}}{{state}}{{else}}{{{popupStateBusy-tmpl}}}{{/if}}</span>
<span class="{{CSS_PREFIX}}icon {{CSS_PREFIX}}dropdown-arrow"></span>
</button>
<ul class="{{CSS_PREFIX}}dropdown-menu" style="z-index: {{zIndex}}">
<li class="{{CSS_PREFIX}}popup-section-item {{CSS_PREFIX}}dropdown-menu-item">
<span class="{{CSS_PREFIX}}icon {{CSS_PREFIX}}none"></span>
<span class="{{CSS_PREFIX}}content">{{popupStateBusy-tmpl}}</span>
<span class="{{CSS_PREFIX}}content">{{{popupStateBusy-tmpl}}}</span>
</li>
<li class="{{CSS_PREFIX}}popup-section-item {{CSS_PREFIX}}dropdown-menu-item">
<span class="{{CSS_PREFIX}}icon {{CSS_PREFIX}}none"></span>
<span class="{{CSS_PREFIX}}content">{{popupStateFree-tmpl}}</span>
<span class="{{CSS_PREFIX}}content">{{{popupStateFree-tmpl}}}</span>
</li>
</ul>
</div>
<button class="{{CSS_PREFIX}}button {{CSS_PREFIX}}popup-close"><span class="{{CSS_PREFIX}}icon {{CSS_PREFIX}}ic-close"></span></button>
<div class="{{CSS_PREFIX}}section-button-save"><button class="{{CSS_PREFIX}}button {{CSS_PREFIX}}confirm {{CSS_PREFIX}}popup-save"><span>{{#if isEditMode}}{{popupUpdate-tmpl}}{{else}}{{popupSave-tmpl}}{{/if}}</span></button></div>
<div class="{{CSS_PREFIX}}section-button-save"><button class="{{CSS_PREFIX}}button {{CSS_PREFIX}}confirm {{CSS_PREFIX}}popup-save"><span>{{#if isEditMode}}{{{popupUpdate-tmpl}}}{{else}}{{{popupSave-tmpl}}}{{/if}}</span></button></div>
</div>
<div id="{{CSS_PREFIX}}popup-arrow" class="{{CSS_PREFIX}}popup-arrow {{CSS_PREFIX}}arrow-bottom">
<div class="{{CSS_PREFIX}}popup-arrow-border">
Expand Down
16 changes: 8 additions & 8 deletions src/js/view/template/popup/scheduleDetailPopup.hbs
Expand Up @@ -5,24 +5,24 @@
<span class="{{CSS_PREFIX}}schedule-private {{CSS_PREFIX}}icon {{CSS_PREFIX}}ic-private"></span>
<span class="{{CSS_PREFIX}}schedule-title">{{schedule.title}}</span>
</div>
<div class="{{CSS_PREFIX}}popup-detail-date {{CSS_PREFIX}}content">{{popupDetailDate-tmpl schedule.isAllDay schedule.start schedule.end}}</div>
<div class="{{CSS_PREFIX}}popup-detail-date {{CSS_PREFIX}}content">{{{popupDetailDate-tmpl schedule.isAllDay schedule.start schedule.end}}}</div>
</div>
<div class="{{CSS_PREFIX}}section-detail">
{{#if schedule.location}}<div class="{{CSS_PREFIX}}popup-detail-item"><span class="{{CSS_PREFIX}}icon {{CSS_PREFIX}}ic-location-b"></span><span class="{{CSS_PREFIX}}content">{{popupDetailLocation-tmpl schedule}}</span></div>{{/if}}
{{#if schedule.recurrenceRule}}<div class="{{CSS_PREFIX}}popup-detail-item"><span class="{{CSS_PREFIX}}icon {{CSS_PREFIX}}ic-repeat-b"></span><span class="{{CSS_PREFIX}}content">{{popupDetailRepeat-tmpl schedule}}</span></div>{{/if}}
{{#if schedule.attendees}}<div class="{{CSS_PREFIX}}popup-detail-item {{CSS_PREFIX}}popup-detail-item-indent"><span class="{{CSS_PREFIX}}icon {{CSS_PREFIX}}ic-user-b"></span><span class="{{CSS_PREFIX}}content">{{popupDetailUser-tmpl schedule}}</span></div>{{/if}}
{{#if schedule.state}}<div class="{{CSS_PREFIX}}popup-detail-item"><span class="{{CSS_PREFIX}}icon {{CSS_PREFIX}}ic-state-b"></span><span class="{{CSS_PREFIX}}content">{{popupDetailState-tmpl schedule}}</span></div>{{/if}}
{{#if schedule.location}}<div class="{{CSS_PREFIX}}popup-detail-item"><span class="{{CSS_PREFIX}}icon {{CSS_PREFIX}}ic-location-b"></span><span class="{{CSS_PREFIX}}content">{{{popupDetailLocation-tmpl schedule}}}</span></div>{{/if}}
{{#if schedule.recurrenceRule}}<div class="{{CSS_PREFIX}}popup-detail-item"><span class="{{CSS_PREFIX}}icon {{CSS_PREFIX}}ic-repeat-b"></span><span class="{{CSS_PREFIX}}content">{{{popupDetailRepeat-tmpl schedule}}}</span></div>{{/if}}
{{#if schedule.attendees}}<div class="{{CSS_PREFIX}}popup-detail-item {{CSS_PREFIX}}popup-detail-item-indent"><span class="{{CSS_PREFIX}}icon {{CSS_PREFIX}}ic-user-b"></span><span class="{{CSS_PREFIX}}content">{{{popupDetailUser-tmpl schedule}}}</span></div>{{/if}}
{{#if schedule.state}}<div class="{{CSS_PREFIX}}popup-detail-item"><span class="{{CSS_PREFIX}}icon {{CSS_PREFIX}}ic-state-b"></span><span class="{{CSS_PREFIX}}content">{{{popupDetailState-tmpl schedule}}}</span></div>{{/if}}
{{#if calendar}}
<div class="{{CSS_PREFIX}}popup-detail-item"><span class="{{CSS_PREFIX}}icon {{CSS_PREFIX}}calendar-dot" style="background-color: {{schedule.bgColor}}"></span><span class="{{CSS_PREFIX}}content">{{calendar.name}}</span></div>
{{/if}}
{{#if schedule.body}}<div class="{{CSS_PREFIX}}popup-detail-item {{CSS_PREFIX}}popup-detail-item-separate"><span class="{{CSS_PREFIX}}content">{{popupDetailBody-tmpl schedule}}</span></div>{{/if}}
{{#if schedule.body}}<div class="{{CSS_PREFIX}}popup-detail-item {{CSS_PREFIX}}popup-detail-item-separate"><span class="{{CSS_PREFIX}}content">{{{popupDetailBody-tmpl schedule}}}</span></div>{{/if}}
</div>
{{#if schedule.isReadOnly}}
{{else}}
<div class="{{CSS_PREFIX}}section-button">
<button class="{{CSS_PREFIX}}popup-edit"><span class="{{CSS_PREFIX}}icon {{CSS_PREFIX}}ic-edit"></span><span class="{{CSS_PREFIX}}content">{{popupEdit-tmpl}}</span></button>
<button class="{{CSS_PREFIX}}popup-edit"><span class="{{CSS_PREFIX}}icon {{CSS_PREFIX}}ic-edit"></span><span class="{{CSS_PREFIX}}content">{{{popupEdit-tmpl}}}</span></button>
<div class="{{CSS_PREFIX}}popup-vertical-line"></div>
<button class="{{CSS_PREFIX}}popup-delete"><span class="{{CSS_PREFIX}}icon {{CSS_PREFIX}}ic-delete"></span><span class="{{CSS_PREFIX}}content">{{popupDelete-tmpl}}</span></button>
<button class="{{CSS_PREFIX}}popup-delete"><span class="{{CSS_PREFIX}}icon {{CSS_PREFIX}}ic-delete"></span><span class="{{CSS_PREFIX}}content">{{{popupDelete-tmpl}}}</span></button>
</div>
{{/if}}
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/js/view/template/week/dayGrid.hbs
Expand Up @@ -17,7 +17,7 @@
{{#each days ~}}
{{#if @root.collapsed}}
{{#if hiddenSchedules}}
<span class="{{CSS_PREFIX}}weekday-exceed-in-week" style="z-index: 1; right:{{getRight left width}}%;" data-index="{{@key}}">{{weekGridFooterExceed-tmpl hiddenSchedules}}</span>
<span class="{{CSS_PREFIX}}weekday-exceed-in-week" style="z-index: 1; right:{{getRight left width}}%;" data-index="{{@key}}">{{{weekGridFooterExceed-tmpl hiddenSchedules}}}</span>
{{/if}}
{{else}}
{{#fi @key '===' @root.collapseBtnIndex}}
Expand All @@ -28,4 +28,4 @@
{{/if}}
</div>
</div>
</div>
</div>

0 comments on commit 038c247

Please sign in to comment.