{% extends 'old-bootstrap-modal-layout.html.twig' %}

{% set typeTitles = {info:'提示信息'|trans, warning:'警告信息'|trans, error: '错误提示'|trans} %}

{% set title = title|default(typeTitles[type]) %}

{% block title %}{{ title }}{% endblock %}
{% block body %}

 <div id="page-message-container" class="page-message-container" data-goto="{{ goto }}" data-duration={{ duration }}>
  <div class="page-message-panel">
    <div class="page-message-body">{{ message|default('') }}</div>
  </div>
</div>


{% endblock %}

{% block footer %}
  <button class="btn btn-primary" type="button" data-dismiss="modal">{{'关闭'|trans}}</button>
{% endblock %}