mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
todo_list: Add option for modal to create todo-lists.
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.
This commit is contained in:
10
web/templates/todo_modal_task.hbs
Normal file
10
web/templates/todo_modal_task.hbs
Normal file
@@ -0,0 +1,10 @@
|
||||
<li class="option-row">
|
||||
<i class="zulip-icon zulip-icon-grip-vertical drag-icon"></i>
|
||||
<input type="text" class="todo-input modal_text_input" placeholder="{{t 'New task'}}" />
|
||||
<div class="todo-description-container">
|
||||
<input type="text" class="todo-description-input modal_text_input" disabled="true" placeholder="{{t 'Task description (optional)'}}" />
|
||||
</div>
|
||||
<button type="button" class="button rounded small btn-secondary delete-option" title="{{t 'Delete' }}">
|
||||
<i class="fa fa-trash-o" aria-hidden="true"></i>
|
||||
</button>
|
||||
</li>
|
Reference in New Issue
Block a user