<?xml version="1.0"?>
<layout version="0.1.0">

    <adminhtml_gateway_storage_index>
        <reference name="content">
            <block type="tm_email/adminhtml_gateway_storage" name="email.gateway.storage" />
        </reference>
    </adminhtml_gateway_storage_index>

    <adminhtml_gateway_storage_edit>
        <reference name="head">
            <action method="setCanLoadExtJs"><flag>1</flag></action>
        </reference>
        <reference name="content">
            <block type="tm_email/adminhtml_gateway_storage_edit" name="email.gateway.storage.edit" />
        </reference>
    </adminhtml_gateway_storage_edit>

    <adminhtml_gateway_transport_index>
        <reference name="content">
            <block type="tm_email/adminhtml_gateway_transport" name="email.gateway.transport" />
        </reference>
    </adminhtml_gateway_transport_index>

    <adminhtml_gateway_transport_edit>
        <reference name="head">
            <action method="setCanLoadExtJs"><flag>1</flag></action>
        </reference>
        <reference name="content">
            <block type="tm_email/adminhtml_gateway_transport_edit" name="email.gateway.transport.edit" />
        </reference>
    </adminhtml_gateway_transport_edit>

    <adminhtml_queue_queue_index>
        <reference name="content">
            <block type="tm_email/adminhtml_queue_queue" name="email.queue.queues" />
        </reference>
    </adminhtml_queue_queue_index>

    <adminhtml_queue_queue_edit>
        <reference name="content">
            <block type="tm_email/adminhtml_queue_queue_edit" name="email.queue.edit" />
        </reference>
    </adminhtml_queue_queue_edit>

    <adminhtml_queue_message_index>
        <update handle="editor"/>
        <reference name="content">
            <block type="tm_email/adminhtml_queue_message" name="email.queue.messages" />
        </reference>
    </adminhtml_queue_message_index>

    <adminhtml_queue_message_preview>
        <block type="core/template" name="root" output="toHtml" template="system/email/template/preview.phtml">
            <block type="tm_email/adminhtml_system_email_template_preview" name="content" as="content"></block>
        </block>
    </adminhtml_queue_message_preview>
</layout>