<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
    xmlns:g="urn:import:com.google.gwt.user.client.ui"
    xmlns:c="urn:import:com.google.gwt.user.cellview.client"
    xmlns:r="urn:import:net.byandlarge.rendezvous.client.widget.refresh"
    xmlns:w="urn:import:net.byandlarge.rendezvous.client.widget.welcome">

    <ui:style type="net.byandlarge.rendezvous.client.rendezvouspoints.RendezvousPointsView.Style">

        .rendezvousPointsTable th.name, .rendezvousPointsTable td.name {
            max-width: 100px;
            text-overflow: ellipsis;
            overflow: hidden;
        }

        .rendezvousPointsTable th.prefix, .rendezvousPointsTable td.prefix {
            text-align: center;
        }

        .rendezvousPointsTable th.inflows, .rendezvousPointsTable td.inflows, {
            text-align: center;
        }

        .rendezvousPointsTable td.inflows > div {
            display: inline-block;
            text-align: right;
            width: 30px;
        }

        .rendezvousPointsTable th.pending, .rendezvousPointsTable td.pending {
            text-align: center;
        }

        .rendezvousPointsTable td.pending > div {
            display: inline-block;
            text-align: right;
            width: 30px;
        }

        .rendezvousPointsTable td.status span {
            vertical-align: middle;
        }

        .rendezvousPointsTable td.status span:first-child {
            display: inline-block;
            opacity: 0.6;
        }

        .rendezvousPointsTable td.status img {
            margin-right: 6px;
            position: relative;
            top: 3px;
        }

        .rendezvousPointsTable td.actions {
            text-align: center;
        }

        .container > header {
            \-webkit-box-sizing: border-box;
            \-moz-box-sizing: border-box;
            box-sizing: border-box;

            position: relative; /* for the sake of .refresh */
            margin-bottom: 0 !important;
        }

        .container > header h3 {
            display: inline-block;
        }

        .container > header button {
            font-size: 14px !important;
            height: 30px !important;
            line-height: 30px !important;
            margin-left: 20px !important;
            padding: 0 1em !important;
        }

        .filterContainer {
            border-bottom: 1px solid #DDD;
            margin-bottom: 20px;
            padding: 8px 0.6em; /* match AUI table cell left margin */
            background-color: #f5f5f5; /* faint grey */
        }

        .filterContainer label {
            display: inline-block;
        }

        .filterContainer input {

            \-moz-background-clip: padding; /* FF3.6 and earlier uses padding instead of padding-box */
            \-webkit-background-clip: padding-box;
            background-clip: padding-box;

            \-webkit-border-radius: 4px;
            \-moz-border-radius: 4px;
            border-radius: 4px;

            \-webkit-box-sizing: border-box;
            \-moz-box-sizing: border-box;
            \-ms-box-sizing: border-box;
            box-sizing: border-box;

            border: 1px solid #BBB;
            display: inline-block;
            height: 27px;
            margin-left: 5px;
            padding-left: 5px;
            width: 300px;
        }

        .filterContainer input[type="text"] {
            width: 30em;
        }

        .refresh {
            position: absolute; /* wrt header */
            right: 0;
            top: 24px;
        }

        .pager {
            margin-top: 1em;
            margin-left: auto;
            margin-right: auto;
            width: 180px;
            text-align: center;
        }

        .welcome {
            margin-bottom: 10px;
        }

        .container.noResults > table > tbody > tr {
            border: none;
        }
    </ui:style>
    <ui:with field='stash' type='net.byandlarge.rendezvous.client.resources.StashResources' />
    <g:HTMLPanel addStyleNames="{style.container}">
        <header class="{stash.css.pageHeader}">
            <div class="{stash.css.pageHeaderMain}">
                <h3>Rendezvous Points</h3>
                <g:Button ui:field="createRendezvousPointBegin" addStyleNames="{stash.css.button} {stash.css.primary}">
                    Create Rendezvous Point
                </g:Button>
            </div>
            <r:Refresh ui:field="refresh" addStyleNames="{style.refresh}" />
        </header>
        <div ui:field="filterContainer" class="{style.filterContainer}">
            <label>Filter rendezvous points <g:TextBox ui:field="filter" /></label>
        </div>
        <c:CellTable ui:field="rendezvousPointsTable" addStyleNames="{style.rendezvousPointsTable} {stash.css.aui}"/>
        <c:PageSizePager ui:field="pager" pageSize="25" increment="25" addStyleNames="{style.pager}"/>
        <w:WelcomeMessage ui:field="welcome" addStyleNames="{style.welcome}" />
    </g:HTMLPanel>
</ui:UiBinder>