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

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

{% 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">关闭</button>
{% endblock %}