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

{% set menu = 'admin_edu_cloud_email_overview' %}
{% block tabs %}{% endblock %}
{% block main %}
  <div class="panel panel-default notice-panel">
  <div class="panel-body">
    {{ web_macro.flash_messages() }}
    <i class="es-icon es-icon-infooutline text-primary"></i>
    <div class="text-md mbl">尚未启用云邮件</div>
    {% if overview.isBuy == false %}
      <div class="color-gray notice-desc">尚未购买云邮件，不能启用，<a href="{{ path('admin_cloud_email_buy', {type:'email'}) }}" target="_blank">立即购买</a> 或 <a
          href="{{ path('admin_cloud_show', {type:'email'}) }}" target="_blank">了解详情</a>。
      </div>
    {% endif %}
    <div class="color-gray notice-desc mbl">云邮件为CRM、用户登录注册、找回密码等提供需要邮件服务的地方提供服务</div>
    <div class="color-gray notice-desc">邮箱发件地址因供应商限制为hi@newsletter.qiqiuyun.cn。
      <form class="form-horizontal" role="form" method="post" action="{{ path('admin_edu_cloud_email_switch') }}">
        <button type="submit" class="btn btn-primary btn-lg notice-btn" {% if overview.isBuy == false %}disabled="disabled"{% endif %}
          name="email-open">立即启用
        </button>
        <input type="hidden" name="_csrf_token" value="{{ csrf_token('site') }}">
      </form>
    </div>
  </div>
{% endblock %}