edit.html 698 B

123456789101112131415161718192021
  1. {% extends 'base.html' %}
  2. {% block content %}
  3. <h1>{% block title %} Edit an Existing Link {% endblock %}</h1>
  4. <form method="post">
  5. <label for="title">{{ link_name }}</label>
  6. <br>
  7. {{ request.form['link_name'] }}
  8. <input type="hidden" name="link_name"
  9. placeholder="Link name"
  10. value="{{ request.form['link_name'] }}"></input>
  11. <br>
  12. <label for="content">Target</label>
  13. <br>
  14. <input type="text" name="target"
  15. placeholder="http://example.com"
  16. value="{{ request.form['target'] }}"></input>
  17. <br>
  18. <button type="submit">Submit</button>
  19. </form>
  20. {% endblock %}