{% extends 'base.html' %}

{% block main %}
<div class="container">
<!--
  {% from "_formhelpers.html" import render_field %} -->
  <!--
          {{ render_field(form.edit_stack_name)}}
          {{ render_field(form.edit_stack_description)}} -->
  <form method="POST" action="{{ url_for('edit_stack_by_id', id=stack.id )}}">
    {{ form.csrf_token }}
        <br>  <br>
        <div class="form-group">
        {{ form.edit_stack_name.label }} {{ form.edit_stack_name(size=20, class="form-control") }}
      </div><br>
      <div class="form-group">
      {{ form.edit_stack_description.label }} {{ form.edit_stack_description(size=20, class="form-control") }}
      </div>

    <br>
    <button type="submit" class="btn btn-primary">Update</button>
</form>

</div>
{% endblock %}