{% extends "base.html" %}
{% block content %}
	<h4>{{ msg }} </h4>

      <form action="/newpost"  method="POST" enctype="multipart/form-data">

        <div class="form-group">
          <div class="custom-file">
            <label class="custom-file-label" for="image">Select image...</label>
            <input type="file" class="custom-file-input" name="image" id="image">

            <label for="title">Title:</label>
            <input type="text" name="title" id="title">

            <label for="tags">Tags (e.g., "tag1, tag2, tag3"):</label>
            <input type="text" name="tags" id="tags">

          </div>
        </div>

        <button type="submit" class="btn btn-primary">Upload</button>

      </form>
{% endblock %}
