You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
739 B

  1. {% extends "base.html" %}
  2. {% block content %}
  3. <h2>Batch Upload Chemicals</h2>
  4. <a
  5. href="https://git.junickim.me/junikimm717/walker-database/raw/master/validate.py">
  6. Source Code with required type definitions (shows which fields are optional) </a>
  7. <br>
  8. <a href="{{ url_for ('static', filename='upload.txt')}}">Sample TSV file to upload</a>
  9. <form method="post" enctype="multipart/form-data">
  10. <label for="input"> Input file (tab delimited text file) </label>
  11. <input type="file" name="input">
  12. <input type="submit" value="Submit">
  13. </form>
  14. {% if invalid %}
  15. <p style="color: red;">Data Points are Incorrectly added: {{invalid}}</p>
  16. {% endif %}
  17. {% if success %}
  18. <p style="color: green;">Success!</p>
  19. {% endif %}
  20. {% endblock %}