Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Changeset 3980

Show
Ignore:
Timestamp:
04/21/08 14:19:36 (9 months ago)
Author:
bwolfe
Message:

Adding css ids to web elements - #678
Adding extension to patient overview portlet - #679
Author: jacobb

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/trunk/web/WEB-INF/template/gutter.jsp

    r3191 r3980  
    11<ul id="navList"> 
    2         <li class="firstChild"> 
     2        <li id="homeNavLink" class="firstChild"> 
    33                <a href="${pageContext.request.contextPath}/"><spring:message code="Navigation.home"/></a> 
    44        </li> 
    55 
    6         <li
     6        <li id="findPatientNavLink"
    77                <a href="${pageContext.request.contextPath}/findPatient.htm"> 
    88                        <openmrs:hasPrivilege privilege="Add Patients"> 
     
    1616         
    1717        <openmrs:hasPrivilege privilege="View Concepts"> 
    18                 <li
     18                <li id="dictionaryNavLink"
    1919                        <a href="${pageContext.request.contextPath}/dictionary"><spring:message code="Navigation.dictionary"/></a> 
    2020                </li> 
     
    2222         
    2323        <openmrs:hasPrivilege privilege="View Patient Cohorts"> 
    24                 <li
     24                <li id="cohortBuilderNavLink"
    2525                        <a href="${pageContext.request.contextPath}/cohortBuilder.list"><spring:message code="Navigation.analysis"/></a> 
    2626                </li> 
     
    2828         
    2929        <openmrs:hasPrivilege privilege="View Administration Functions"> 
    30                 <li
     30                <li id="administrationNavLink"
    3131                        <a href="${pageContext.request.contextPath}/admin"><spring:message code="Navigation.administration"/></a> 
    3232                </li> 
  • openmrs/trunk/web/WEB-INF/view/portlets/patientOverview.jsp

    r3444 r3980  
    99<openmrs:globalProperty key="use_patient_attribute.healthCenter" defaultValue="false" var="showHealthCenter"/> 
    1010 
    11 <div class="boxHeader${model.patientVariation}"><spring:message code="Patient.actions" /></div> 
    12 <div class="box${model.patientVariation}"> 
     11<openmrs:extensionPoint pointId="org.openmrs.patientDashboard.overviewBox" type="html"> 
     12        <openmrs:hasPrivilege privilege="${extension.requiredPrivilege}"> 
     13                <div class="boxHeader${model.patientVariation}"><spring:message code="${extension.title}" /></div> 
     14                <div class="box${model.patientVariation}"><spring:message code="${extension.content}" /></div> 
     15                <br /> 
     16        </openmrs:hasPrivilege> 
     17</openmrs:extensionPoint> 
     18 
     19<div id="patientActionsBoxHeader" class="boxHeader${model.patientVariation}"><spring:message code="Patient.actions" /></div> 
     20<div id="patientActionsBox" class="box${model.patientVariation}"> 
    1321        <table id="patientActions"> 
    1422                <tr> 
     
    133141 
    134142<c:if test="${not empty importantIdentifiers}"> 
    135         <div class="boxHeader${model.patientVariation}"><spring:message code="Patient.identifiers" /></div> 
    136         <div class="box${model.patientVariation}"> 
     143        <div id="patientIdentifiersBoxHeader" class="boxHeader${model.patientVariation}"><spring:message code="Patient.identifiers" /></div> 
     144        <div id="patientIdentifiersBox" class="box${model.patientVariation}"> 
    137145                <openmrs:portlet url="patientIdentifiers" size="normal" patientId="${model.patientId}" parameters="showIfSet=true|showIfMissing=true|highlightIfMissing=false" /> 
    138146        </div> 
     
    140148</c:if> 
    141149 
    142 <div class="boxHeader${model.patientVariation}"><spring:message code="Program.title"/></div> 
    143 <div class="box${model.patientVariation}"> 
     150<div id="patientProgramsBoxHeader" class="boxHeader${model.patientVariation}"><spring:message code="Program.title"/></div> 
     151<div id="patientProgramsBox" class="box${model.patientVariation}"> 
    144152        <openmrs:portlet url="patientPrograms" id="patientPrograms" patientId="${patient.patientId}" parameters="allowEdits=true"/> 
    145153</div> 
     
    148156<openmrs:globalProperty var="conceptIdsToUse" key="dashboard.overview.showConcepts" /> 
    149157<c:if test="${not empty conceptIdsToUse}"> 
    150         <div class="boxHeader${model.patientVariation}"><spring:message code="patientDashboard.mostRecentObs"/></div> 
    151         <div class="box${model.patientVariation}"> 
     158        <div id="patientMostRecentObsBoxHeader" class="boxHeader${model.patientVariation}"><spring:message code="patientDashboard.mostRecentObs"/></div> 
     159        <div id="patientMostRecentObsBox" class="box${model.patientVariation}"> 
    152160                <openmrs:portlet url="customMostRecentObs" size="normal" patientId="${patient.patientId}" parameters="conceptIds=${conceptIdsToUse}|allowNew=true" /> 
    153161        </div> 
     
    156164</c:if> 
    157165 
    158 <div class="boxHeader${model.patientVariation}"><spring:message code="Relationship.relationships" /></div> 
    159 <div class="box${model.patientVariation}"> 
     166<div id="patientRelationshipsBoxHeader" class="boxHeader${model.patientVariation}"><spring:message code="Relationship.relationships" /></div> 
     167<div id="patientRelationshipsBox" class="box${model.patientVariation}"> 
    160168        <openmrs:portlet url="personRelationships" size="normal" patientId="${patient.patientId}" /> 
    161169</div>