Spaces:
Sleeping
Sleeping
Download templates/admin_post_form.html from phucbienvan/phucbv: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/spaces/phucbienvan/phucbv/resolve/main/templates/admin_post_form.html
- Command line
-
hf download hf://spaces/phucbienvan/phucbv/templates/admin_post_form.html
-
curl -L -o admin_post_form.html https://huggingface.co/spaces/phucbienvan/phucbv/resolve/main/templates/admin_post_form.html
1.12 kB
| <html lang="vi"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>{% if mode=='edit' %}Sửa bài viết{% else %}Tạo bài mới{% endif %}</title> | |
| <link rel="stylesheet" href="/static/css/style.css"> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <h2>{% if mode=='edit' %}Sửa bài viết{% else %}Tạo bài mới{% endif %}</h2> | |
| <form method="post"> | |
| <label>Tiêu đề:<br> | |
| <input name="title" type="text" required style="width:100%;font-size:1em;" value="{{ post.title if post else '' }}"> | |
| </label><br><br> | |
| <label>Nội dung:<br> | |
| <textarea name="content" rows="10" required style="width:100%;font-size:1em">{{ post.content if post else '' }}</textarea> | |
| </label><br><br> | |
| <button type="submit">{% if mode=='edit' %}Cập nhật{% else %}Đăng bài{% endif %}</button> | |
| <a href="/admin"><button type="button">Hủy</button></a> | |
| </form> | |
| {% if error %} | |
| <div style="color:red; margin-top:10px;">{{ error }}</div> | |
| {% endif %} | |
| </div> | |
| </body> | |
| </html> | |