extends ./account-layout.jade
include ./includes/mixins.jade


block styles
    link(href="/css/vendor/callouts.css" rel="stylesheet")


block jumbo-desc
    p Account Management: Your Account Details


block account-content
    h3 #{user.username}
    table.table
        tr
            td Name
            td #{user.fname} #{user.lname}
        tr
            td Email
            td #{user.email}
        tr
            td Badge Number
            td #{user.badge}
        tr
            td Section / Unit
            td #{user.sectunit}
        tr
            td Rank / Title
            td #{user.ranktitle}
        tr
            td Role
            td #{user.roleName()}
        tr
            td Agency
            td #{agency.name}

    if ( ! /root/i.test( user.roleName() ) )
        .bs-callout.bs-callout-info
            p Please contact your Agency administrator for changes to your
                | account details.
    else
        a( href='/admin/users/' + user.id +'/edit-details' ) Update Your Account Details
