<html xmlns='http://www.w3.org/1999/xhtml'
    xml:lang='en'
    lang='en'
    xmlns:tal='http://xml.zope.org/namespaces/tal'
    xmlns:metal='http://xml.zope.org/namespaces/metal'
    xmlns:i18n='http://xml.zope.org/namespaces/i18n'
    metal:use-macro='context/main_template/macros/master'
    i18n:domain='eke.specimens'>
<!--
Copyright 2013 California Institute of Technology. ALL RIGHTS
RESERVED. U.S. Government Sponsorship acknowledged.
-->
    <head>
        <title>Specimen Collection Folder</title>
    </head>
    <body>
        <metal:css fill-slot='style_slot'>
            <style type='text/css' media='all' tal:content='string:@import url(${context/++resource++eke-specimens.css});'></style>
        </metal:css>
        <metal:main fill-slot='main'>
            <tal:main-macro metal:define-macro='main'>
                <div tal:replace='structure provider:plone.abovecontenttitle' />
                <h1 class='documentFirstHeading' tal:content='context/fullName'>
                    Use the full name for the title, since the title is used for the short name.
                </h1>
                <div tal:replace='structure provider:plone.belowcontenttitle' />

                <p class='documentDescription' tal:content='context/description'>
                    Description of the specimen set.
                </p>

                <div tal:replace='structure provider:plone.abovecontentbody' />

                <div tal:condition='context/isPRoBE' class='PRoBE'>
                    <img id='PRoBE' src='probe-icon.png' alt='This is a PRoBE specimen set.' i18n:attributes='alt'
                        tal:attributes='src string:${context/++resource++probe-icon.png}'
                    />
                    <span i18n:translate='PRoBE'>PRoBE</span>
                </div>
                <div>
                    <label for='parent-fieldname-title' i18n:translate='label_title'>Short Name:</label>
                    <metal:field use-macro='python:context.widget("title", mode="view")'>ANUS-REF-1</metal:field>
                </div>
                <div>
                    <label for='parent-fieldname-getNumParticipants' i18n:translate='label_getNumParticipants'>Participants:</label>
                    <div id='parent-fieldname-getNumParticipants' tal:content='context/getNumParticipants'>123</div>
                </div>

                <div>
                    <label for='parent-fieldname-protocol' i18n:translate='label_protocol'>Protocol:</label>
                    <metal:field use-macro='python:context.widget("protocol", mode="view")'>Anus Protocol</metal:field>
                </div>

                <tal:block define='contactName context/contactName; contactEmail context/contactEmail;'>
                    <div tal:condition='python:contactName or contactEmail' tal:omit-tag=''>
                        <label for='contactInformation' i18n:translate='label_contactInformation'>Contact Information:</label>
                        <a tal:condition='contactEmail' id='contactInformation'
                            tal:attributes='href string:mailto:${contactEmail}'>
                            <span tal:condition='contactName' tal:omit-tag='' tal:content='contactName'>
                                Sum Yung Gai
                            </span>
                            <span tal:condition='not:contactName' tal:omit-tag='' tal:content='contactEmail'>
                                sum@yung.gai
                            </span>
                        </a>
                        <span tal:condition='not:contactEmail' id='contactInformation' tal:content='contactName'>
                            Sum Yung Gai
                        </span>
                    </div>
                </tal:block>

                <div>
                    <label for='parent-fieldname-cancerLocations' i18n:translate='label_cancerLocations'>Cancer Locations:</label>
                    <div id='parent-fieldname-cancerLocations' tal:content='view/getCancerLocations'>anus, rectum</div>
                </div>

                <div>
                    <label for='field-collectionTypes' i18n:translate='label_collectionTypes'>Collection Types:</label>
                    <p id='field-collectionTypes' tal:content='view/collectionTypes'>Feces, urine</p>
                </div>
                <div>
                    <label for='field-storageTypes' i18n:translate='label_storageTypes'>Storage Types:</label>
                    <p id='field-storageTypes' tal:content='view/storageTypes'>DNA, RNA</p>
                </div>

                <div tal:content='structure context/text'>Lorem.</div>
                
                <div class='caseControlSubset'>
                    <h2 i18n:translate='ekeSpecimensGenericSpecSetHeadingCases'>Cases</h2>
                    <table>
                        <thead>
                            <tr>
                                <th i18n:translate='ekeSpecimensGenericSpecCaseControlTotal'>Total:</th>
                                <th class='numericCell' tal:content='view/totalCases'>123</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tal:repeat repeat='subset view/cases'>
                                <tr class='odd' tal:define='oddrow repeat/subset/odd|nothing;'
                                    tal:attributes='odd python:"odd" if oddrow else "even";'>
                                    <td tal:content='subset/title'>Some Subset</td>
                                    <td class='numericCell' tal:content='subset/numParticipants'>123</td>
                                </tr>
                            </tal:repeat>
                        </tbody>
                    </table>
                </div>
                <div class='caseControlSubset'>
                    <h2 i18n:translate='ekeSpecimensGenericSpecSetHeadingControls'>Controls</h2>
                    <table>
                        <thead>
                            <tr>
                                <th i18n:translate='ekeSpecimensGenericSpecCaseControlTotal'>Total:</th>
                                <th class='numericCell' tal:content='view/totalControls'>123</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tal:repeat repeat='subset view/controls'>
                                <tr class='odd' tal:define='oddrow repeat/subset/odd|nothing;'
                                    tal:attributes='odd python:"odd" if oddrow else "even";'>
                                    <td tal:content='subset/title'>Some Subset</td>
                                    <td class='numericCell' tal:content='subset/numParticipants'>123</td>
                                </tr>
                            </tal:repeat>
                        </tbody>
                    </table>
                </div>
                <div class='visualClear'><!-- --></div>

                <h2 i18n:translate='ekeSpecimensGenericSpecSetHeadingAbstract'>Abstract</h2>
                <p tal:content='view/getAbstract'>
        		    Lorem ipsum dolor sit amet, consectetur adipisicing elit,
        		    sed do eiusmod tempor incididunt ut labore et dolore magna
        		    aliqua.  Ut enim ad minim veniam, quis nostrud
        		    exercitation ullamco laboris nisi ut aliquip ex ea commodo
        		    consequat.  Duis aute irure dolor in reprehenderit in
        		    voluptate velit esse cillum dolore eu fugiat nulla
        		    pariatur.  Excepteur sint occaecat cupidatat non proident,
        		    sunt in culpa qui officia deserunt mollit anim id est
        		    laborum.
                </p>

                <h2 i18n:translate='ekeSpecimensHeadingFiles'>Attached Files</h2>
                <p tal:condition='not:view/haveAttachedFiles' i18n:translate='ekeSpecimensAdmonitionNoFiles'>
                    No files have been attached to this specimen set.
                </p>
                <ul tal:condition='view/haveAttachedFiles' tal:define='files view/attachedFiles'>
                    <li tal:repeat='aFile files'>
                        <a href='#' title='Some file.' tal:attributes='href aFile/url; title aFile/description|nothing'
                            tal:content='aFile/title'>
                            File
                        </a>
                    </li>
                </ul>

                <h2 i18n:translate='ekeSpecimensHeadingLinks'>Links</h2>
                <p tal:condition='not:view/haveLinks' i18n:translate='ekeSpecimensAdmonitionNoLinks'>
                    No links are available for this specimen set.
                </p>
                <ul tal:condition='view/haveLinks' tal:define='links view/links'>
                    <li tal:repeat='aLink links'>
                        <a href='#' title='Some link.' tal:attributes='href aLink/url; title aLink/description|nothing'
                            tal:content='aLink/title'>
                            Link
                        </a>
                    </li>
                </ul>

                <div tal:replace='structure provider:plone.belowcontentbody' />

            </tal:main-macro>
        </metal:main>
    </body>
</html>
