add.html 727 B

12345678910111213141516171819202122
  1. {% extends 'base.html' %}
  2. {% block content %}
  3. <h1>{% block title %} Add a New 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. autocapitalize="off"
  16. placeholder="http://example.com"
  17. value="{{ request.form['target'] }}"></input>
  18. <br>
  19. <button type="submit">Submit</button>
  20. </form>
  21. {% endblock %}