fix(ui): shorten mark-delivered button text to 已送达

This commit is contained in:
2026-07-05 23:15:38 +08:00
parent a502c14c99
commit 23c61363a6
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@
<a href="/postcards/{{ postcard.id }}/edit" class="btn">编辑</a> <a href="/postcards/{{ postcard.id }}/edit" class="btn">编辑</a>
{% if postcard.status == 'sent' %} {% if postcard.status == 'sent' %}
<form method="post" action="/postcards/{{ postcard.id }}/mark-delivered" class="inline"> <form method="post" action="/postcards/{{ postcard.id }}/mark-delivered" class="inline">
<button type="submit" class="btn btn-primary" onclick="return confirm('确认已送达?')">标记已送达</button> <button type="submit" class="btn btn-primary" onclick="return confirm('确认已送达?')">已送达</button>
</form> </form>
{% endif %} {% endif %}
<form method="post" action="/postcards/{{ postcard.id }}/delete" class="inline"> <form method="post" action="/postcards/{{ postcard.id }}/delete" class="inline">

View File

@@ -48,7 +48,7 @@
<div class="postcard-row-action"> <div class="postcard-row-action">
{% if pc.status == 'sent' %} {% if pc.status == 'sent' %}
<form method="post" action="/postcards/{{ pc.id }}/mark-delivered" onclick="event.preventDefault();event.stopPropagation();if(confirm('确认已送达?'))this.submit();"> <form method="post" action="/postcards/{{ pc.id }}/mark-delivered" onclick="event.preventDefault();event.stopPropagation();if(confirm('确认已送达?'))this.submit();">
<button type="submit" class="btn btn-sm btn-primary">✓ 标记已送达</button> <button type="submit" class="btn btn-sm btn-primary">已送达</button>
</form> </form>
{% endif %} {% endif %}
</div> </div>