edit.tpl 543 B

123456789
  1. % rebase('base.tpl')
  2. <form action="/edit/{{node._id}}" method="POST">
  3. Username: <input type="text" name="username" value="{{node.username}}"><br>
  4. Password: <input type="password" name="password" value="{{node.password}}"><br>
  5. Repeat Password: <input type="password" name="password" value="{{node.password}}"><br>
  6. Notes: <input type="text" name="notes" value="{{node.notes}}"><br>
  7. Tags: <input type="text" name="tags" value="{{ ', '.join([t.strip() for t in filter(None, node.tags)]) }}"><br>
  8. <input type="submit" value="Save edits">
  9. </form>