feat: add profile rename, all postcard fields required
This commit is contained in:
@@ -19,6 +19,10 @@
|
||||
<td><a href="/profiles/{{ p.id }}/postcards">{{ p.nickname }}</a></td>
|
||||
<td>{{ p.created_at.strftime('%Y-%m-%d %H:%M') }}</td>
|
||||
<td>
|
||||
<form method="post" action="/profiles/{{ p.id }}/rename" class="inline rename-form">
|
||||
<input type="text" name="nickname" value="{{ p.nickname }}" required>
|
||||
<button type="submit" class="btn btn-sm">改名</button>
|
||||
</form>
|
||||
<form method="post" action="/profiles/{{ p.id }}/delete" class="inline">
|
||||
<button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确定删除该 Profile 及其所有明信片?')">删除</button>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user