Improve html structure for testing

This commit is contained in:
Graham Triggs 2017-09-28 13:50:40 +01:00
parent 1ffe30fb4b
commit 7c27b74fd6
3 changed files with 38 additions and 26 deletions

View file

@ -147,3 +147,11 @@ ul#individual-personInPosition li {
ul#individual-personInPosition li:last-child { ul#individual-personInPosition li:last-child {
padding-bottom: 5px; padding-bottom: 5px;
} }
section.vcard {
float: left;
}
section#preferredTitle {
float: left;
}

View file

@ -53,10 +53,12 @@
<div class="col-md-10 person-details"> <div class="col-md-10 person-details">
<div class="row title"> <div class="row title">
<div class="col-md-12"> <div class="col-md-12">
<h1 class="vcard foaf-person"> <section class="vcard person">
<h1 class="foaf-person">
<#-- Label --> <#-- Label -->
<span itemprop="name" class="fn"><@p.label individual editable labelCount localesCount/></span> <span itemprop="name" class="fn"><@p.label individual editable labelCount localesCount/></span>
</h1>
<section id="preferredTitle">
<#-- Display preferredTitle if it exists; otherwise mostSpecificTypes --> <#-- Display preferredTitle if it exists; otherwise mostSpecificTypes -->
<#assign title = propertyGroups.pullProperty("http://purl.obolibrary.org/obo/ARG_2000028","http://www.w3.org/2006/vcard/ns#Title")!> <#assign title = propertyGroups.pullProperty("http://purl.obolibrary.org/obo/ARG_2000028","http://www.w3.org/2006/vcard/ns#Title")!>
<#if title?has_content> <#-- true when the property is in the list, even if not populated (when editing) --> <#if title?has_content> <#-- true when the property is in the list, even if not populated (when editing) -->
@ -75,7 +77,8 @@
<#if ! (title.statements)?has_content> <#if ! (title.statements)?has_content>
<@p.mostSpecificTypes individual /> <@p.mostSpecificTypes individual />
</#if> </#if>
</h1> </section>
</section>
<span id="iconControlsRightSide"> <span id="iconControlsRightSide">
<img id="uriIcon" title="${individual.uri}" src="${urls.images}/individual/uriIcon.gif" alt="${i18n().uri_icon}"/> <img id="uriIcon" title="${individual.uri}" src="${urls.images}/individual/uriIcon.gif" alt="${i18n().uri_icon}"/>
<#if checkNamesResult?has_content > <#if checkNamesResult?has_content >

View file

@ -73,7 +73,8 @@
<h1 class="foaf-person"> <h1 class="foaf-person">
<#-- Label --> <#-- Label -->
<span itemprop="name" class="fn"><@p.label individual editable labelCount localesCount/></span> <span itemprop="name" class="fn"><@p.label individual editable labelCount localesCount/></span>
</h1>
<section id="preferredTitle">
<#-- Display preferredTitle if it exists; otherwise mostSpecificTypes --> <#-- Display preferredTitle if it exists; otherwise mostSpecificTypes -->
<#assign title = propertyGroups.pullProperty("http://purl.obolibrary.org/obo/ARG_2000028","http://www.w3.org/2006/vcard/ns#Title")!> <#assign title = propertyGroups.pullProperty("http://purl.obolibrary.org/obo/ARG_2000028","http://www.w3.org/2006/vcard/ns#Title")!>
<#if title?has_content> <#-- true when the property is in the list, even if not populated (when editing) --> <#if title?has_content> <#-- true when the property is in the list, even if not populated (when editing) -->
@ -92,7 +93,7 @@
<#if ! (title.statements)?has_content> <#if ! (title.statements)?has_content>
<@p.mostSpecificTypes individual /> <@p.mostSpecificTypes individual />
</#if> </#if>
</h1> </section>
</#if> </#if>
<!-- Positions --> <!-- Positions -->
<#include "individual-positions.ftl"> <#include "individual-positions.ftl">