File: new.html

package info (click to toggle)
flask-sqlalchemy 3.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 832 kB
  • sloc: python: 2,909; makefile: 27; sh: 14
file content (17 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{% extends "layout.html" %}
{% block body %}
  <h2>New Item</h2>
  <form method=post>
    <p>
      <label>Title:
      <input name=title value="{{ request.form.title }}">
      </label>
    <p>
      <label>Text:<br>
      <textarea name=text rows=10 cols=40>{{ request.form.text }}</textarea>
      </label>
    <p>
      <input type=submit value="Save"><br><br>
      <a href="{{ url_for("show_all") }}">Back to list</a>
  </form>
{% endblock %}