- <!DOCTYPE html>
- <html lang="zh-cn">
- <div>
- <form method="post" action=".">
- {% csrf_token %}
- {% for item in items %}
- <div>
- <label for="{{ item }}">{{ item }}</label>
- <input type="text" id="{{ item }}" name="{{ item }}">
- </div>
- {% endfor %}
- <button type="submit">submit</button>
- </form>
- </div>
- </html>
|