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


{% block main %}

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

{% block content %}
  {% if sectionGrup.isNew %}
    {% set action = '/sectionGrups' %}
  {% else %}
    {% set action = '/sectionGrups/' + sectionGrup._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 sectionGrup.isNew %}
          <input type="hidden" name="_method" value="PUT">
        {% endif %}
        <div id="name" class="form-group">
        <label for="title">Section Grup Giriniz: </label>
        <input type="text" name="sectionGrup" placeholder="Section Grup" value="{{ sectionGrup.sectionGrup }}" placeholder="Enter the name" class="form-control" id="name">
        </div>  
       <div id="title" class="form-group">
        <label for="title">Section Grup Title Giriniz: </label>
        <input type="text" name="title" placeholder="Section Grup" value="{{ sectionGrup.title }}" placeholder="Enter the title" class="form-control" id="name">
        </div> 
        <button type="submit" class="btn btn-success">Save</button>
        &nbsp;
        <button href="/sectionGrups" class="btn btn-danger">Cancel</button>   
        
      </form>
    </div>    
  </div>        
      </div>
    </div>

 
  
{% endblock %}
