Author: sevein
Date: Fri Aug 19 14:13:13 2011
New Revision: 9556

Log:
Add primaryContact column to relatedContactInformation table

Modified:
   trunk/apps/qubit/modules/contactinformation/templates/_edit.php

Modified: trunk/apps/qubit/modules/contactinformation/templates/_edit.php
==============================================================================
--- trunk/apps/qubit/modules/contactinformation/templates/_edit.php     Fri Aug 
19 14:12:26 2011        (r9555)
+++ trunk/apps/qubit/modules/contactinformation/templates/_edit.php     Fri Aug 
19 14:13:13 2011        (r9556)
@@ -17,8 +17,10 @@
       <?php echo __('Related contact informations') ?>
     </caption><thead>
       <tr>
-        <th style="width: 25%">
+        <th style="width: 60%">
           <?php echo __('Contact person') ?>
+        </th><th style="width: 15%">
+          <?php echo __('Primary') ?>
         </th><th style="text-align: center; width: 10%">
           <?php echo image_tag('delete', array('align' => 'top', 'class' => 
'deleteIcon')) ?>
         </th>
@@ -28,6 +30,8 @@
         <tr class="<?php echo 0 == ++$row % 2 ? 'even' : 'odd' ?> 
related_obj_<?php echo $item->id ?>" id="<?php echo url_for(array($item, 
'module' => 'contactinformation')) ?>">
           <td>
             <?php echo $item->contactPerson ?>
+          </td><td>
+            <input type="checkbox"<?php echo $item->primaryContact ? " 
checked=\"checked\"" : "" ?> disabled="disabled" />
           </td><td style="text-align: center">
             <input class="multiDelete" name="deleteContactInformations[]" 
type="checkbox" value="<?php echo $item->id ?>"/>
           </td>
@@ -45,6 +49,9 @@
 <tr id="{{$form->getWidgetSchema()->generateName('id')}}">
   <td>
     {{$form->contactPerson->renderName()}}
+  </td>
+  <td>
+    {{$form->primaryContact->renderName()}}
   </td><td style="text-align: right">
     $editHtml <button class="delete-small" name="delete" type="button"/>
   </td>

-- 
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