{% extends 'admin/layout.html.twig' %}

{% set menu = 'admin_setting_user_message' %}

{% block main %}
{{ web_macro.flash_messages() }}

<form class="form-horizontal" method="post" >

  <fieldset>
    <legend>{{ 'admin.user_center.message_title_name'|trans }}</legend>
    <div class="form-group">
      <div class="controls col-md-8">
        <label><input type="checkbox" name="studentToStudent" {% if setting('message.studentToStudent', 1) %}checked{% endif %} value="1" /> {{ 'admin.user_center.message_student_to_student'|trans }}</label><br/>
        <label><input type="checkbox" name="studentToTeacher" {% if setting('message.studentToTeacher', 1) %}checked{% endif %} value="1" /> {{ 'admin.user_center.message_student_to_teacher'|trans }}</label><br/>
        <label><input type="checkbox" name="teacherToStudent" {% if setting('message.teacherToStudent', 1) %}checked{% endif %} value="1" /> {{ 'admin.user_center.message_teacher_to_student'|trans }}</label><br/>
        <p class="help-block">{{ 'admin.user_center.message.setting_tip'|trans }}</p>
      </div>
    </div>
  </fieldset>
  

  <div class="form-group">
    <div class="controls col-md-3">
      <button type="submit" class="btn btn-primary">{{'form.btn.submit'|trans}}</button> 
    </div>
    <div class="controls col-md-8"></div>
  </div>

  <input type="hidden" name="_csrf_token" value="{{ csrf_token('site') }}">
</form>

{% endblock %}