{% extends 'base.html' %}

{% block body %}
  <form name="comunicazione" method="POST">
    {% csrf_token %}

    <div class='form-group'>
      <label for='mittente'>Mittente</label>
      <input class='form-control' type='email' name='mittente' value='{{ comunicazione.mittente.value }}'>
    </div>
    <div class='form-group'>
      <label for='soggetto'>Soggetto</label>
      <input class='form-control' type='text' name='soggetto' value='{{ comunicazione.soggetto.value }}'>
    </div>
    <div class='form-group'>
      <label for='corpo'>Corpo</label>
      <textarea class="form-control" id="corpo" name='corpo' rows="3">{{ comunicazione.corpo.value }}</textarea>
    </div> 
    <div>
      <button type='submit' class='btn btn-primary' name='Conferma' value=''>Conferma</button>
      <input type='reset' class='btn btn-primary' name='reset' value='reset'>
      <input type='submit' class="btn btn-primary" name="Ritorna" value="Ritorna">
    </div>
  </form>
{% endblock %}

{% block bodybottom %}
{% endblock %}
