Files
zulip/web/templates/widgets/todo_widget.hbs
N-Shar-ma 6df3ad251a todo_widget: Allow task list title to be set and edited by author.
Users can now name task lists by providing the task list title in the
`/todo` command on the same line. Example: `/todo School Work`. If no
title is provided by the user, "Task list" (which is also the
placeholder) is used as default.

The author of a task list can later edit / update the task list title
in the todo widget, just like the question in the poll widget.

Fixes part of #20213.
2024-04-13 21:56:33 -07:00

18 lines
849 B
Handlebars

<div class="todo-widget">
<h4 class="todo-task-list-title-header">{{t "Task list" }}</h4>
<i class="fa fa-pencil todo-edit-task-list-title"></i>
<div class="todo-task-list-title-bar">
<input type="text" class="todo-task-list-title" placeholder="{{t 'Add todo task list title'}}" />
<button class="todo-task-list-title-remove"><i class="fa fa-remove"></i></button>
<button class="todo-task-list-title-check"><i class="fa fa-check"></i></button>
</div>
<div class="add-task-bar">
<input type="text" class="add-task" placeholder="{{t 'New task'}}" />
<input type="text" class="add-desc" placeholder="{{t 'Description'}}" />
<button class="add-task">{{t "Add task" }}</button>
<div class="widget-error"></div>
</div>
<ul class="todo-widget new-style">
</ul>
</div>