Commit c9c5c5cf authored by 郭阔's avatar 郭阔

ui(schedules): 操作栏按钮纯图标化(悬停 title 提示保留)

parent dc2f2cd3
...@@ -132,22 +132,22 @@ function toggleDrawer(id) { ...@@ -132,22 +132,22 @@ function toggleDrawer(id) {
</td> </td>
<td> <td>
<div class="opsbar"> <div class="opsbar">
<button type="button" class="btn btn-sm" onclick="toggleDrawer('edit-{{ r.name }}')">✎ 排程</button> <button type="button" class="btn btn-sm" title="排程意图编辑" onclick="toggleDrawer('edit-{{ r.name }}')">✎</button>
{% if r.enabled %} {% if r.enabled %}
<form method="POST" action="/run/{{ r.name }}" <form method="POST" action="/run/{{ r.name }}"
onsubmit="return confirm('立即采集 {{ r.name }} 一次?')"> onsubmit="return confirm('立即采集 {{ r.name }} 一次?')">
<button type="submit" class="btn btn-sm" title="立即采集一次">▶ 采集</button> <button type="submit" class="btn btn-sm" title="立即采集一次">▶</button>
</form> </form>
{% endif %} {% endif %}
{% if r.state == 'active' %} {% if r.state == 'active' %}
{% if r.skip %} {% if r.skip %}
<form method="POST" action="/schedule-skip/{{ r.name }}"> <form method="POST" action="/schedule-skip/{{ r.name }}">
<button type="submit" class="btn btn-sm" title="撤销跳过,恢复后续采集" style="color:#e8c34a">⏭ 撤销跳过</button> <button type="submit" class="btn btn-sm" title="撤销跳过,恢复后续采集" style="color:#e8c34a">↩️</button>
</form> </form>
{% else %} {% else %}
<form method="POST" action="/schedule-skip/{{ r.name }}" <form method="POST" action="/schedule-skip/{{ r.name }}"
onsubmit="return confirm('跳过 {{ r.name }} 最近一次定时采集?\n只跳过下一场,之后的排期不受影响;手动触发不受限。')"> onsubmit="return confirm('跳过 {{ r.name }} 最近一次定时采集?\n只跳过下一场,之后的排期不受影响;手动触发不受限。')">
<button type="submit" class="btn btn-sm" title="只跳过下一次定时采集">⏭ 跳过下次</button> <button type="submit" class="btn btn-sm" title="只跳过下一次定时采集">⏭</button>
</form> </form>
{% endif %} {% endif %}
{% endif %} {% endif %}
...@@ -155,12 +155,12 @@ function toggleDrawer(id) { ...@@ -155,12 +155,12 @@ function toggleDrawer(id) {
{% if r.state == 'active' %} {% if r.state == 'active' %}
<form method="POST" action="/toggle/{{ r.name }}" onsubmit="return confirm('停用 {{ r.name }}?(调度与技能一并停用,可随时再开启)')"> <form method="POST" action="/toggle/{{ r.name }}" onsubmit="return confirm('停用 {{ r.name }}?(调度与技能一并停用,可随时再开启)')">
<input type="hidden" name="on" value="0"> <input type="hidden" name="on" value="0">
<button type="submit" class="btn btn-sm" title="停用调度与技能">⏸ 停用</button> <button type="submit" class="btn btn-sm" title="停用调度与技能">⏸</button>
</form> </form>
{% else %} {% else %}
<form method="POST" action="/toggle/{{ r.name }}"> <form method="POST" action="/toggle/{{ r.name }}">
<input type="hidden" name="on" value="1"> <input type="hidden" name="on" value="1">
<button type="submit" class="btn btn-sm" title="启用调度与技能">⏵ 启用</button> <button type="submit" class="btn btn-sm" title="启用调度与技能">⏵</button>
</form> </form>
{% endif %} {% endif %}
<form method="POST" action="/schedule-delete/{{ r.name }}" <form method="POST" action="/schedule-delete/{{ r.name }}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment