mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
A button has been introduced to launch a modal for creating todo-lists directly from the compose box. The modal features a form that, upon submission, generates a message using the `/todo` syntax and the data inputted in the form. Subsequently, the content of the compose box is set to this message, which the user can then send. This modal closely parallels the UI for adding a poll; therefore, the poll and todo code has been shifted to a newly created file named `widget_modal.ts`, and `poll_modal.ts` is now deprecated. Co-authored-by: Sujal Shah <sujalshah28092004@gmail.com> Fixes #29779.
14 lines
608 B
Handlebars
14 lines
608 B
Handlebars
<form id="add-todo-form" class="new-style">
|
|
<label class="todo-label">{{t "To-do list title" }}</label>
|
|
<div class="todo-title-input-container">
|
|
<input type="text" id="todo-title-input" autocomplete="off" value="{{t 'Task list' }}" class="modal_text_input" />
|
|
</div>
|
|
<label class="todo-label">{{t "Tasks" }}</label>
|
|
<p>{{t "Anyone can add more tasks after the to-do list is posted."}}</p>
|
|
<ul class="todo-options-list" data-simplebar data-simplebar-tab-index="-1">
|
|
{{> todo_modal_task }}
|
|
{{> todo_modal_task }}
|
|
{{> todo_modal_task }}
|
|
</ul>
|
|
</form>
|