Project

General

Profile

« Previous | Next » 

Revision 7988

View differences:

lib/style/skins/metacatui/eml-2/eml-party.xsl
40 40

  
41 41
  <xsl:template name="party">
42 42
      <xsl:param name="partyfirstColStyle"/>
43
      <table class="{$tabledefaultStyle}">
43
      <div class="row-fluid">
44 44
        <xsl:choose>
45 45
         <xsl:when test="references!=''">
46 46
          <xsl:variable name="ref_id" select="references"/>
......
57 57
          </xsl:apply-templates>
58 58
        </xsl:otherwise>
59 59
      </xsl:choose>
60
      </table>
60
      </div>
61 61
  </xsl:template>
62 62

  
63 63
  <!-- *********************************************************************** -->
......
66 66
  <xsl:template match="individualName" mode="party">
67 67
      <xsl:param name="partyfirstColStyle"/>
68 68
      <xsl:if test="normalize-space(.)!=''">
69
        <tr><td class="{$partyfirstColStyle}" >
70
            Individual:</td><td class="{$secondColStyle}" >
71
           <b><xsl:value-of select="./salutation"/><xsl:text> </xsl:text>
72
           <xsl:value-of select="./givenName"/><xsl:text> </xsl:text>
73
           <xsl:value-of select="./surName"/></b>
74
        </td></tr>
69
        <div class="control-group">
70
        	<label class="control-label">Individual:</label>
71
        	<div class="controls" >
72
	           <b><xsl:value-of select="./salutation"/><xsl:text> </xsl:text>
73
	           <xsl:value-of select="./givenName"/><xsl:text> </xsl:text>
74
	           <xsl:value-of select="./surName"/></b>
75
        	</div>
76
        </div>	
75 77
      </xsl:if>
76 78
  </xsl:template>
77 79

  
......
79 81
  <xsl:template match="organizationName" mode="party">
80 82
      <xsl:param name="partyfirstColStyle"/>
81 83
      <xsl:if test="normalize-space(.)!=''">
82
        <tr><td class="{$partyfirstColStyle}" >
83
        Organization:</td><td class="{$secondColStyle}">
84
        <b><xsl:value-of select="."/></b>
85
        </td></tr>
84
        <div class="control-group">
85
        	<label class="control-label">Organization:</label>
86
        	<div class="controls">
87
        		<b><xsl:value-of select="."/></b>
88
        	</div>
89
        </div>
86 90
      </xsl:if>
87 91
  </xsl:template>
88 92

  
......
90 94
  <xsl:template match="positionName" mode="party">
91 95
      <xsl:param name="partyfirstColStyle"/>
92 96
      <xsl:if test="normalize-space(.)!=''">
93
      <tr><td class="{$partyfirstColStyle}">
94
        Position:</td><td class="{$secondColStyle}">
95
        <xsl:value-of select="."/></td></tr>
97
      <div class="control-group">
98
        	<label class="control-label">Position:</label>
99
        	<div class="controls">
100
        		<xsl:value-of select="."/>
101
        	</div>
102
       </div>
96 103
      </xsl:if>
97 104
  </xsl:template>
98 105

  
......
109 116
   <!-- This template will be call by other place-->
110 117
   <xsl:template name="address">
111 118
      <xsl:param name="partyfirstColStyle"/>
112
      <table class="{$tablepartyStyle}">
113 119
        <xsl:choose>
114 120
         <xsl:when test="references!=''">
115 121
          <xsl:variable name="ref_id" select="references"/>
......
126 132
          </xsl:call-template>
127 133
        </xsl:otherwise>
128 134
      </xsl:choose>
129
      </table>
130 135
  </xsl:template>
131 136

  
132 137
   <xsl:template name="addressCommon">
133 138
    <xsl:param name="partyfirstColStyle"/>
134 139
    <xsl:if test="normalize-space(.)!=''">
135
    <tr><td class="{$partyfirstColStyle}">
136
        Address:</td><td>
137
    <table class="{$tablepartyStyle}">
138
    <xsl:for-each select="deliveryPoint">
139
    <tr><td class="{$secondColStyle}"><xsl:value-of select="."/><xsl:text>, </xsl:text></td></tr>
140
    </xsl:for-each>
141
    <!-- only include comma if city exists... -->
142
    <tr><td class="{$secondColStyle}" >
143
    <xsl:if test="normalize-space(city)!=''">
144
        <xsl:value-of select="city"/><xsl:text>, </xsl:text>
140
    <div class="control-group">
141
    	<label class="control-label">Address:</label>
142
    	<div class="controls">
143
    		<address>
144
			    <xsl:for-each select="deliveryPoint">
145
			    	<xsl:value-of select="."/><xsl:text>, </xsl:text>
146
			    </xsl:for-each>
147
			    <br/>
148
			    <!-- only include comma if city exists... -->
149
			    <xsl:if test="normalize-space(city)!=''">
150
			        <xsl:value-of select="city"/><xsl:text>, </xsl:text>
151
			    </xsl:if>
152
			    <xsl:if test="normalize-space(administrativeArea)!='' or normalize-space(postalCode)!=''">
153
			        <xsl:value-of select="administrativeArea"/><xsl:text> </xsl:text><xsl:value-of select="postalCode"/><xsl:text> </xsl:text>
154
			    </xsl:if>
155
			    <xsl:if test="normalize-space(country)!=''">
156
			      <xsl:value-of select="country"/>
157
			    </xsl:if>
158
    		</address>
159
		</div> 
160
	</div>
145 161
    </xsl:if>
146
    <xsl:if test="normalize-space(administrativeArea)!='' or normalize-space(postalCode)!=''">
147
        <xsl:value-of select="administrativeArea"/><xsl:text> </xsl:text><xsl:value-of select="postalCode"/><xsl:text> </xsl:text>
148
    </xsl:if>
149
    <xsl:if test="normalize-space(country)!=''">
150
      <xsl:value-of select="country"/>
151
    </xsl:if></td></tr>
152
    </table></td></tr>
153
    </xsl:if>
154 162
   </xsl:template>
155 163

  
156 164
  <xsl:template match="phone" mode="party">
157 165
      <xsl:param name="partyfirstColStyle"/>
158
      <tr><td class="{$partyfirstColStyle}" >
159
             Phone:
160
          </td>
161
          <td>
162
            <table class="{$tablepartyStyle}">
163
              <tr><td class="{$secondColStyle}">
164
                     <xsl:value-of select="."/>
165
                     <xsl:if test="normalize-space(./@phonetype)!=''">
166
                       <xsl:text> (</xsl:text><xsl:value-of select="./@phonetype"/><xsl:text>)</xsl:text>
167
                     </xsl:if>
168
                   </td>
169
               </tr>
170
             </table>
171
          </td>
172
      </tr>
166
      <div class="control-group">
167
      	<label class="control-label">Phone</label>
168
          <div class="controls">
169
             <xsl:value-of select="."/>
170
             <xsl:if test="normalize-space(./@phonetype)!=''">
171
               <xsl:text> (</xsl:text><xsl:value-of select="./@phonetype"/><xsl:text>)</xsl:text>
172
             </xsl:if>
173
          </div>
174
      </div>
173 175
  </xsl:template>
174 176

  
175 177

  
176 178
  <xsl:template match="electronicMailAddress" mode="party">
177 179
      <xsl:param name="partyfirstColStyle"/>
178 180
      <xsl:if test="normalize-space(.)!=''">
179
       <tr><td class="{$partyfirstColStyle}" >
180
            Email Address:
181
          </td>
182
          <td>
183
            <table class="{$tablepartyStyle}">
184
              <tr><td class="{$secondColStyle}">
185
                    <a><xsl:attribute name="href">mailto:<xsl:value-of select="."/></xsl:attribute>
181
       <div class="control-group">
182
       	<label class="control-label" >
183
            Email Address
184
          </label>
185
          <div class="controls">
186
            <a><xsl:attribute name="href">mailto:<xsl:value-of select="."/></xsl:attribute>
186 187
                    <xsl:value-of select="."/></a>
187
                   </td>
188
              </tr>
189
            </table>
190
          </td>
191
        </tr>
188
          </div>
189
       </div>
190

  
192 191
      </xsl:if>
193 192
  </xsl:template>
194 193

  
......
196 195
  <xsl:template match="onlineUrl" mode="party">
197 196
      <xsl:param name="partyfirstColStyle"/>
198 197
      <xsl:if test="normalize-space(.)!=''">
199
      <tr><td class="{$partyfirstColStyle}" >
200
            Web Address:
201
          </td>
202
          <td>
203
             <table class="{$tablepartyStyle}">
204
               <tr><td class="{$secondColStyle}">
205
                     <a><xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
206
                     <xsl:value-of select="."/></a>
207
                    </td>
208
               </tr>
209
             </table>
210
           </td>
211
        </tr>
212
      </xsl:if>
198
      <div class="control-group">
199
      	<label class="control-label">Web Address</label>
200
        <div>
201
            <a><xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
202
            <xsl:value-of select="."/></a>
203
       	</div>
204
      </div>
205
    </xsl:if>
213 206
  </xsl:template>
214 207

  
215 208

  
216 209
  <xsl:template match="userId" mode="party">
217 210
      <xsl:param name="partyfirstColStyle"/>
218 211
      <xsl:if test="normalize-space(.)!=''">
219
      <tr><td class="{$partyfirstColStyle}" >
220
        Id:</td><td class="{$secondColStyle}">
221
        <xsl:value-of select="."/></td></tr>
212
      <div class="control-group">
213
      	<label class="control-label">Id:</label>
214
      	<div class="controls">
215
        	<xsl:value-of select="."/>
216
        </div>
217
       </div>
222 218
      </xsl:if>
223 219
  </xsl:template>
224 220
  <xsl:template match="text()" mode="party" />

Also available in: Unified diff