<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<panel
 name="notices_tab"
 label="Notices"
 default_tab_group="1"
 left="0"
 top="0"
 width="470"
 height="420"
 layout="topleft"
 follows="all">
    <panel.string
     name="help_text">
        Notices let you send a message and an optionally attached item.
Notices only go to group members in Roles with the ability to receive Notices.
You can turn off Notices on the General tab.
    </panel.string>
    <panel.string
     name="no_notices_text">
        There are no past notices
    </panel.string>

    <text
     follows="top|left|right"
     type="string"
     word_wrap="true"
     height="24"
     halign="left"
     layout="topleft"
     text_color="White_50"
     left="5"
     name="lbl2"
     right="-1"
     top="5"
     width="100">
     Notices are kept for 14 days.
Maximum 200 per group daily
    </text>
    <scroll_list
     name="notice_list"
     left="4"
     top_pad="4"
     right="-5"
     height="125"
     column_padding="0"
     draw_heading="true"
     sort_column="4"
     sort_ascending="false"
     sort_lazily="true"
     follows="left|top|right"
     layout="topleft">
        <scroll_list.columns
         label=""
         name="icon"
         width="20" />
        <scroll_list.columns
         label="Subject"
         name="subject"
         relative_width="0.35" />
        <scroll_list.columns
         label="From"
         name="from"
         relative_width="0.3" />
        <scroll_list.columns
         label="Date"
         name="date"
         sort_column="sort"
         relative_width="0.35" />
        <scroll_list.columns
         name="sort"
         width="-1" />
    </scroll_list>
    <button
     name="create_new_notice"
     label="New Notice"
     tool_tip="Create a new notice"
     image_overlay="AddItem_Off"
     left="4"
     top_pad="4"
     width="93"
     height="23"
     image_overlay_alignment="left"
     imgoverlay_label_space="-10"
     follows="top|left"
     layout="topleft" />

    <button
     name="refresh_notices"
     tool_tip="Refresh list of notices"
     image_overlay="Refresh_Off"
     left_pad="4"
     width="23"
     height="23"
     follows="top|left"
     layout="topleft" />

    <text
     name="notice_list_none_found"
     left_pad="4"
     top_pad="-20"
     width="120"
     height="20"
     type="string"
     visible="false"
     follows="top|left"
     layout="topleft" >
    None found
    </text>

<!-- Create New Notice -->

    <panel
     name="panel_create_new_notice"
     label="Create New Notice"
     tab_group="1"
     left="0"
     bottom="-1"
     width="470"
     height="234"
     visible="false"
     follows="all"
     layout="topleft">

        <text
         follows="left|top"
         type="string"
         font="SansSerifBig"
         height="12"
         layout="topleft"
         left="4"
         mouse_opaque="false"
         name="lbl"
         text_color="EmphasisColor"
         top="2"
         width="200">
        Create a Notice
        </text>

        <text
         follows="left|top"
         type="string"
         halign="left"
         height="16"
         layout="topleft"
         name="lbl3"
         top_pad="12"
         width="93">
        Subject:
        </text>

        <line_editor
         follows="left|top|right"
         border_style="line"
         border_thickness="1"
         height="16"
         layout="topleft"
         left_pad="-1"
         max_length_chars="63"
         name="create_subject"
         prevalidate_callback="ascii"
         spellcheck="true"
         width="371" />

        <text
         follows="left|top"
         type="string"
         halign="left"
         height="16"
         layout="topleft"
         left="4"
         name="lbl4"
         top_pad="2"
         width="93">
        Message:
        </text>

        <text_editor
         height="89"
         left_pad="0"
         max_length="511"
         name="create_message"
         spellcheck="true"
         top_delta="0"
         width="369"
         word_wrap="true"
         follows="all"
         layout="topleft" />

        <text
         top_pad="2"
         follows="bottom|left"
         type="string"
         halign="left"
         height="19"
         layout="topleft"
         left="4"
         name="lbl5"
         width="91">
        Attach:
        </text>

        <line_editor
         left_pad="1"
         width="371"
         height="19"
         enabled="false"
         max_length_chars="90"
         mouse_opaque="false"
         name="create_inventory_name"
         follows="bottom|left|right"
         layout="topleft" />

        <text
         name="drag_and_drop_help"
         left="4"
         top_pad="4"
         width="91"
         height="50"
         text_color="EmphasisColor"
         type="string"
         halign="right"
         word_wrap="true"
         follows="bottom|left"
         layout="topleft">
        Drag and drop item here to attach it:
        </text>

        <icon
         left_pad="4"
         top_pad="-50"
         height="72"
         image_name="DropTarget"
         mouse_opaque="true"
         name="drop_icon"
         width="72"
         follows="bottom|left"
         layout="topleft" />

        <button
         name="remove_attachment"
         image_selected="TrashItem_Press"
         image_unselected="TrashItem_Off"
         image_disabled="TrashItem_Disabled"
         tool_tip="Remove attachment from your notification"
         left_pad="4"
         top_pad="-72"
         width="19"
         height="19"
         follows="bottom|left"
         layout="topleft" />

        <button
         name="open_inventory"
         label="Inventory"
         tool_tip="Open Inventory"
         right="-4"
         bottom="-38"
         height="23"
         width="100"
         follows="bottom|right"
         layout="topleft">
            <button.init_callback
                 function="Button.SetFloaterToggle"
                 parameter="inventory"/>
        </button>

        <button
         label_selected="Send"
         name="send_notice"
         top_pad="10"
         height="23"
         label="Send"
         width="100"
         follows="bottom|right"
         layout="topleft" />

      <group_drop_target
         name="drop_target"
         tool_tip="Drag an inventory item onto this target box to send it with this notice. You must have permission to copy and transfer the item in order to attach it."
         left="4"
         bottom="-4"
         width="360"
         height="94"
         follows="bottom|left|right"
         layout="topleft" />

    </panel>

<!-- View Past Notices -->

    <panel
     bottom="-1"
     follows="all"
     height="234"
     label="View Past Notice"
     layout="topleft"
     left="0"
     right="-1"
     visible="false"
     name="panel_view_past_notice"
     width="400">
        <text
         type="string"
         font="SansSerifMedium"
         height="16"
         layout="topleft"
         left="10"
         mouse_opaque="false"
         name="lbl6"
         text_color="EmphasisColor"
         top_pad="5"
         follows="top|left"
         width="265">
        Archived Notice
        </text>
        <text
         type="string"
         height="16"
         word_wrap="true"
         layout="topleft"
         left_delta="0"
         name="lbl7"
         top_pad="2"
         follows="top|left"
         width="390">
        To send a new notice, click the + button
        </text>
        <text
         type="string"
         halign="left"
         height="16"
         layout="topleft"
         left_delta="0"
         name="lbl8"
         top_pad="8"
         visible="true"
         follows="top|left"
         width="70">
        Subject:
        </text>
        <line_editor
         border_style="line"
         border_thickness="1"
         enabled="false"
         width="380"
         height="20"
         layout="topleft"
         left_pad="4"
         max_length_chars="63"
         name="view_subject"
         spellcheck="true"
         top_delta="-1"
         visible="true"
         follows="left|right|top"
         />
        <text
         type="string"
         halign="left"
         height="16"
         layout="topleft"
         left="10"
         name="lbl9"
         top_pad="4"
         visible="true"
         follows="top|left"
         width="70">
        Message:
        </text>
        <text_editor
         top_pad="-16"
         left_pad="4"
         width="380"
         height="100"
         enabled="false"
         layout="topleft"
         max_length="511"
         name="view_message"
         spellcheck="true"
         word_wrap="true"
         follows="all" />
        <text
         type="string"
         halign="left"
         height="16"
         layout="topleft"
         left="10"
         name="lbl10"
         top_pad="8"
         width="70">
        Attachment:
        </text>

        <line_editor
         enabled="false"
         height="20"
         layout="topleft"
         left_pad="4"
         max_length_chars="63"
         mouse_opaque="false"
         name="view_inventory_name"
         width="380"
         follows="bottom|left|right" />

        <button
         follows="bottom|left"
         height="23"
         label="Open Attachment"
         layout="topleft"
         top_pad="4"
         name="open_attachment"
         width="140" />
        </panel>
</panel>
