[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[2390] trunk



Revision: 2390
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2390&view=rev
Author:   einhverfr
Date:     2008-11-12 00:14:41 +0000 (Wed, 12 Nov 2008)

Log Message:
-----------
Adding contact description to contact list display.

Modified Paths:
--------------
    trunk/UI/Contact/contact.html
    trunk/t/04-template-handling.t

Modified: trunk/UI/Contact/contact.html
===================================================================
--- trunk/UI/Contact/contact.html	2008-11-11 01:09:23 UTC (rev 2389)
+++ trunk/UI/Contact/contact.html	2008-11-12 00:14:41 UTC (rev 2390)
@@ -616,12 +616,14 @@
 	<table width="100%">
 	<tr class="listheading">
 		<th class="contact_class"><?lsmb text('Type:') ?></th>
+		<th class="description"><?lsmb text('Description:') ?></th>
 		<th class="contact"><?lsmb text('Contact Info:') ?></th>
 		<th class="contact_actions"><?lsmb text('Actions:') ?></th>
 	</tr>
 	<?lsmb FOREACH ct = contacts ?>
 	<tr>
 		<td class="contact_class"><?lsmb ct.class ?></td>
+		<td class="description"><?lsmb ct.description ?></td>
 		<td class="contact"><?lsmb ct.contact ?></td>
 		<td class="contact_actions">
 			<a href="<?lsmb tt_url(script) 

Modified: trunk/t/04-template-handling.t
===================================================================
--- trunk/t/04-template-handling.t	2008-11-11 01:09:23 UTC (rev 2389)
+++ trunk/t/04-template-handling.t	2008-11-12 00:14:41 UTC (rev 2390)
@@ -393,10 +393,14 @@
         entity_id    => 1,
         control_code => 'test1',
         meta_number  => 'test1',
+	credit_id    => '1',
         entity_class => 1,
         credit_list  => [{ entity_class => 1,
                            meta_number => 'test1',
                         }],
+	contacts     => [{contact     => 'ctest1', 
+			description   => 'dtest1', 
+			contact_class => '1'}],
         business_id  => 1000,
         business_types => [{ id => 1,    description => 'test1' },
                            { id => 1000, description => 'test2' }],
@@ -415,6 +419,7 @@
 my @output =  get_output_line_array($contact_template);
 is(grep (/value="1" selected/, @output), 0, 'Select box Value 1 unselected');
 is(grep (/value="1000" selected/, @output), 1, 'Select box Value 1000 selected');
+is(grep (/<td class="description">dtest1/, @output), 1, 'Contact description shows');
 
 
 # Functions


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.