{% extends '../layouts/default.html' %}


{% block main %}

   <div class="container pb-sm-40">
  <h1>{{ title }}</h1>
</div>
{% endblock %}

{% block content %}
  {% if sectionType.isNew %}
    {% set action = '/sectionTypes' %}
  {% else %}
    {% set action = '/sectionTypes/' + sectionType._id%}
  {% endif %}

  <div class="container pb-sm-40">
      <div class="section-title">
 <div class="row">
    <div class="col-md-8">
      <form method="post" action="{{ action }}" enctype="multipart/form-data" role="form" class="form-horizontal">
        <input type="hidden" name="_csrf" value="{{ csrf_token }}">
        {% if not sectionType.isNew %}
          <input type="hidden" name="_method" value="PUT">
        {% endif %}
        <div class="form-group">
        <label for="title" ">Tip Giriniz: </label>
        <input type="text" name="sectionType" placeholder="Yeni Tip" value="{{ sectionType.sectionType }}" placeholder="Enter the title" class="form-control" id="title">
        </div>
          <button type="submit" class="btn btn-success">Save</button>
          &nbsp;
          <button href="/sectionTypes" class="btn btn-danger">Cancel</button>
      </form>
    </div>
    </div>
    </div>
    </div>
 
 
  
{% endblock %}
