Author: jablko
Date: Sun Oct 24 15:24:24 2010
New Revision: 8445

Log:
Use .field for easier styling, wrap name and value in block

Modified:
   trunk/apps/qubit/modules/term/templates/indexSuccess.php

Modified: trunk/apps/qubit/modules/term/templates/indexSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/term/templates/indexSuccess.php    Sun Oct 24 
15:12:34 2010        (r8444)
+++ trunk/apps/qubit/modules/term/templates/indexSuccess.php    Sun Oct 24 
15:24:24 2010        (r8445)
@@ -57,18 +57,16 @@
       <?php echo render_show(render_title($resource), __('BT %1%', array('%1%' 
=> link_to(render_title($resource->parent), array($resource->parent, 'module' 
=> 'term'))))) ?>
     <?php endif; ?>
 
-    <?php if (0 < count($children)): ?>
-      <dl>
-        <dt>
-          <?php echo render_title($resource) ?>
-        </dt>
-        <?php foreach ($children as $item): ?>
-          <dd>
-            <?php echo __('NT %1%', array('%1%' => 
link_to(render_title($item), array($item, 'module' => 'term')))) ?>
-          </dd>
-        <?php endforeach; ?>
-      </dl>
-    <?php endif; ?>
+    <div class="field">
+      <h3><?php echo render_title($resource) ?></h3>
+      <div>
+        <ul>
+          <?php foreach ($children as $item): ?>
+            <li><?php echo __('NT %1%', array('%1%' => 
link_to(render_title($item), array($item, 'module' => 'term')))) ?></li>
+          <?php endforeach; ?>
+        </ul>
+      </div>
+    </div>
 
   </div>
 </div>
@@ -77,18 +75,16 @@
   <h3><?php echo __('Equivalent terms') ?></h3>
   <div>
 
-    <?php if (0 < count($resource->otherNames)): ?>
-      <dl>
-        <dt>
-          <?php echo render_title($resource) ?>
-        </dt>
-        <?php foreach ($resource->otherNames as $item): ?>
-          <dd>
-            <?php echo __('UF %1%', array('%1%' => 
render_title($item->getName(array('cultureFallback' => true))))) ?>
-          </dd>
-        <?php endforeach; ?>
-      </dl>
-    <?php endif; ?>
+    <div class="field">
+      <h3><?php echo render_title($resource) ?></h3>
+      <div>
+        <ul>
+          <?php foreach ($resource->otherNames as $item): ?>
+            <li><?php echo __('UF %1%', array('%1%' => 
render_title($item->getName(array('cultureFallback' => true))))) ?></li>
+          <?php endforeach; ?>
+        </ul>
+      </div>
+    </div>
 
   </div>
 </div>
@@ -96,18 +92,18 @@
 <div class="field">
   <h3><?php echo __('Associated terms') ?></h3>
   <div>
-    <?php if (0 < count($associateRelations)): ?>
-    <dl>
-      <dt>
-        <?php echo render_title($resource) ?>
-      </dt>
-      <?php foreach ($associateRelations as $item): ?>
-        <dd>
-          <?php echo __('RT %1%', array('%1%' => 
link_to(render_title($item->getOpposedObject($resource->id)), 
array($item->getOpposedObject($resource->id), 'module' => 'term')))) ?>
-        </dd>
-      <?php endforeach; ?>
-    </dl>
-    <?php endif; ?>
+
+    <div class="field">
+      <h3><?php echo render_title($resource) ?></h3>
+      <div>
+        <ul>
+          <?php foreach ($associateRelations as $item): ?>
+            <li><?php echo __('RT %1%', array('%1%' => 
link_to(render_title($item->getOpposedObject($resource->id)), 
array($item->getOpposedObject($resource->id), 'module' => 'term')))) ?></li>
+          <?php endforeach; ?>
+        </ul>
+      </div>
+    </div>
+
   </div>
 </div>
 

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to