zcbot/web/templates/new_task.html

50 lines
1.9 KiB
HTML

{% extends "base.html" %}
{% block title %}zcbot · new task{% endblock %}
{% block nav %}<a href="/">tasks</a> <a href="/new" class="active">new</a>{% endblock %}
{% block content %}
<div class="page-head">
<h1>新建 task</h1>
</div>
{% if error %}
<div class="msg-error" style="margin-bottom:1rem;">
<span class="err-tag">error</span>
<span>{{ error }}</span>
</div>
{% endif %}
<form method="post" action="/new" class="new-task-form">
<label>
<span class="field-label">description</span>
<input type="text" name="description" value="{{ form.description }}"
placeholder="一句话任务描述,便于后续 list 识别(留空就靠 task_dir)"
autocomplete="off" autofocus>
</label>
<label>
<span class="field-label">mode <span class="muted small">(可选)</span></span>
<input type="text" name="mode" value="{{ form.mode }}"
placeholder="coding / ppt / proposal / … 自由形式"
autocomplete="off">
</label>
<label>
<span class="field-label">task_dir <span class="muted small">(可选,留空 = 一次性对话;填路径 = 项目化)</span></span>
<input type="text" name="task_dir" value="{{ form.task_dir }}"
placeholder="/path/to/project 或 D:\projects\proj — 相对路径以服务器 cwd 为基"
autocomplete="off">
<span class="muted small">
留空 → 默认派生 <code>workspace/tasks/&lt;uuid&gt;/</code>(等价 ChatGPT 一次性对话)。
指定 → 同 task_dir 多 task 自动共享 source / sections / 终稿。
<strong>不允许前缀嵌套</strong>(no-subtask):同 user 下不能有父子关系的 task_dir。
</span>
</label>
<div class="form-actions">
<a href="/" class="btn">取消</a>
<button type="submit">创建并打开</button>
</div>
</form>
<p class="muted small mt-1">
Tip:创建后会跳到 chat 页,在底部输入框发第一条消息开始对话。
</p>
{% endblock %}