feat: add carpet

This commit is contained in:
2026-07-03 21:58:28 +03:30
parent d290ba86bb
commit 413fca68cc
20 changed files with 421 additions and 16 deletions
+5 -5
View File
@@ -50,12 +50,12 @@
<table>
<tr><th>متن / شکلک</th><th>ترتیب</th><th></th></tr>
{{range .messages}}
<tr><form method="post" action="/admin/chat/message/delete">
<td>{{.body}}</td>
<td>{{.sort}}</td>
<tr><form method="post" action="/admin/chat/message">
<td><input type="hidden" name="id" value="{{.id}}"><input name="body" value="{{.body}}" style="width:100%"></td>
<td><input name="sort" value="{{.sort}}" style="width:50px"></td>
<td>
<input type="hidden" name="id" value="{{.id}}">
<button class="del">حذف</button>
<button>ذخیره</button>
<button formaction="/admin/chat/message/delete" formnovalidate class="del">حذف</button>
</td>
</form></tr>
{{end}}