<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/WFContent/Modules/ModulePopup.Master" CodeBehind="UserBookDetails.aspx.vb" Inherits="WebFoundations.WFPortal.BaseModules.UI.UserBookDetails" %>
<%@ Register Namespace="WebFoundations.WFPortal.Controls" Assembly="WebFoundations.WFPortal.Controls" TagPrefix="wff" %>

<asp:Content ContentPlaceHolderID="TagHead" runat="server">
    <style type="text/css">
        span.name{
            font-weight:600;
        }

        main.fields:not(.no-columns) {
            -moz-column-width: 15em;
            -webkit-column-width: 15em;
            column-width: 15em;
            max-width:100vw;
        }

        img.user{
            vertical-align:bottom;
            margin:0 1rem 0 0;
            width:2.5em;
            height:2.5em;
        }

        h1 {
            -webkit-column-span: all;
            column-span: all;
            border-bottom-style:solid;
            border-bottom-width:1px;
            margin:0 -1rem 1rem 0;
        }

        h1:empty{
            display:none;
        }
    </style>
</asp:Content>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <main class="fields">
        <h1><wff:useravatar runat="server" rel="user" id="avatar" target="_blank" alwaysshowphoto="true" mode="ImageOnly" /><asp:literal runat="server" id="ltName" /></h1>
        <asp:Repeater runat="server" id="rptFields">
            <ItemTemplate>
                <div>
                    <asp:Label runat="server" Text='<%#Eval("Title") %>' />
                    <asp:Label runat="server" CssClass='<%#Eval("Key")%>' Text='<%#Eval("Text") %>' Visible='<%#Not Eval("IsLink") %>' />
                    <asp:HyperLink runat="server" CssClass='<%#Eval("Key")%>' Text='<%#Eval("Text") %>' Visible='<%#Eval("IsLink") %>' NavigateUrl='<%#Eval("Url") %>' />
                </div>
            </ItemTemplate>
        </asp:Repeater>
    </main>
</asp:Content>
