mirror of https://github.com/zulip/zulip.git
send_later: Extract send later options to separate template.
This is a preparatory commit that will help to render the options for the send-later modal separately. This is necessary to have actual sending options if the user keeps the modal open.
This commit is contained in:
parent
c649e7bbc5
commit
45c3f8aa96
|
@ -8,32 +8,7 @@
|
|||
<button class="modal__close" aria-label="{{t 'Close modal' }}" data-micromodal-close></button>
|
||||
</header>
|
||||
<main class="modal__content">
|
||||
<div class="send_later_options">
|
||||
<ul class="nav nav-list">
|
||||
{{#if possible_send_later_today}}
|
||||
{{#each possible_send_later_today}}
|
||||
<li>
|
||||
<a id="{{@key}}" class="send_later_today" data-send-stamp="{{this.stamp}}" tabindex="0">{{this.text}}</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{#each send_later_tomorrow}}
|
||||
<li>
|
||||
<a id="{{@key}}" class="send_later_tomorrow" data-send-stamp="{{this.stamp}}" tabindex="0">{{this.text}}</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
{{#if possible_send_later_monday }}
|
||||
{{#each possible_send_later_monday}}
|
||||
<li>
|
||||
<a id="{{@key}}" class="send_later_monday" data-send-stamp="{{this.stamp}}" tabindex="0">{{this.text}}</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
<li>
|
||||
<a class="send_later_custom" tabindex="0">{{t 'Custom time'}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
{{> send_later_modal_options }}
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
<div class="send_later_options">
|
||||
<ul class="nav nav-list">
|
||||
{{#if possible_send_later_today}}
|
||||
{{#each possible_send_later_today}}
|
||||
<li>
|
||||
<a id="{{@key}}" class="send_later_today" data-send-stamp="{{this.stamp}}" tabindex="0">{{this.text}}</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{#each send_later_tomorrow}}
|
||||
<li>
|
||||
<a id="{{@key}}" class="send_later_tomorrow" data-send-stamp="{{this.stamp}}" tabindex="0">{{this.text}}</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
{{#if possible_send_later_monday }}
|
||||
{{#each possible_send_later_monday}}
|
||||
<li>
|
||||
<a id="{{@key}}" class="send_later_monday" data-send-stamp="{{this.stamp}}" tabindex="0">{{this.text}}</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
<li>
|
||||
<a class="send_later_custom" tabindex="0">{{t 'Custom time'}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
Loading…
Reference in New Issue