<div metal:use-macro="macro:form" />
<metal:block tal:condition="view/dialog_show|nothing">
  <script>ST.state.push()</script>
  <tal:script tal:replace="structure scriptlocal:
                           dialog_url view/dialog_url;
                           dialog_title view/dialog_title;" />
  <script type="text/javascript">
      ST.dialogs.open_modal_form(ST.local.dialog_url,
                                 'dialog-container',
                                 ST.local.dialog_title);
  </script>
  <script>ST.state.pop()</script>
  <div id="dialog-container">
  </div>
</metal:block>
