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

SF.net SVN: ledger-smb:[2235] trunk/UI/Contact/contact.html



Revision: 2235
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2235&view=rev
Author:   einhverfr
Date:     2008-08-06 21:25:44 +0000 (Wed, 06 Aug 2008)

Log Message:
-----------
Adding entity note options

Modified Paths:
--------------
    trunk/UI/Contact/contact.html

Modified: trunk/UI/Contact/contact.html
===================================================================
--- trunk/UI/Contact/contact.html	2008-08-06 21:25:23 UTC (rev 2234)
+++ trunk/UI/Contact/contact.html	2008-08-06 21:25:44 UTC (rev 2235)
@@ -48,6 +48,7 @@
 		name = "entity_id"
 		value = entity_id
 	} ?>
+
 <div class="input" id="person_name_div"><?lsmb text('Name:')?>&nbsp;
 <!-- TODO:  Add Saluatation -->
 <?lsmb PROCESS input element_data = {
@@ -143,9 +144,6 @@
 	?><?lsmb CASE 2 ?><?lsmb entity_classname = "Customer" 
 	?><?lsmb END ?>
 	<div class="listtop"><strong><?lsmb text("$operation $entity_classname") ?></strong></div>
-<?lsmb FOREACH n = notes ?>
-<div class="entity_note"><?lsmb n.note ?></div>
-<?lsmb END ?>
 <form name="customer" method="POST" action="<?lsmb script ?>">
 	<?lsmb PROCESS input element_data = {
 		type = "hidden"
@@ -163,6 +161,13 @@
 		value = account_class
 	} ?>	
 	<?lsmb PROCESS input element_data = {
+		label = text('Control Code:'), #'
+		type= "text",
+		name = "control_code",
+		value = control_code,
+		size = "20"
+	} ?><br/>
+	<?lsmb PROCESS input element_data = {
 		label = text('Name:'),
 		type= "text",
 		name = "name",
@@ -205,6 +210,9 @@
 			title="Save [Alt-S]"
 		} ?>
     </form>
+<?lsmb FOREACH n = notes ?>
+<div class="entity_note"><?lsmb n.note ?></div>
+<?lsmb END ?>
 </div>
 <?lsmb IF entity_id ?>
 <div id="credit_div">
@@ -447,6 +455,11 @@
 	} ?>
 	<?lsmb PROCESS input element_data = {
 		type="hidden" 
+		name="credit_id" 
+		value=credit_id
+	} ?>
+	<?lsmb PROCESS input element_data = {
+		type="hidden" 
 		name="location_id" 
 		value=location_id
 	} ?>
@@ -470,10 +483,12 @@
 	<td class="country"><?lsmb loc.country ?></td>
 	<td class="actions">
 		<!--  TODO:  Automate links with AJAX -->
-		<a href="<?lsmb script ?>?action=edit&entity_id=<?lsmb id 
-			?>&location_id=<?lsmb loc.id ?>">[edit]</a> 
+		<a href="<?lsmb script ?>?action=edit&entity_id=<?lsmb entity_id 
+			?>&location_id=<?lsmb loc.id ?>&credit_id=<?lsmb 
+			credit_id ?>">[edit]</a> 
 		<a href="<?lsmb script ?>?action=delete_location&entity_id=<?lsmb
-			id ?>&location_id=<?lmb loc.id ?>">[delete]</a>
+			entity_id ?>&location_id=<?lsmb loc.id 
+			?>&credit_id = <?lsmb credit_id ?>">[delete]</a>
 	</td>
     </tr>
 	<?lsmb END ?>
@@ -573,11 +588,13 @@
 		<td class="contact_actions">
 			<a href="<?lsmb script ?>?entity_id=<?lsmb entity_id 
 				?>&contact_id=<?lsmb ct.id 
-				?>&action=edit_contact"
+				?>&action=edit&credit_id=<?lsmb 
+				credit_id ?>"
 			>[<?lsmb text('Edit'); ?>]</a>&nbsp;&nbsp;
 			<a href="<?lsmb script ?>?entity_id=<?lsmb entity_id 
 				?>&contact_id=<?lsmb ct.id 
-				?>&action=delete_contact"
+				?>&action=delete_contact&credit_id=<?lsmb 
+				credit_id ?>"
 			>[<?lsmb text('Delete'); ?>]</a>
 		</td>
 	</tr>
@@ -591,6 +608,11 @@
 	} ?>
 	<?lsmb PROCESS input element_data = {
 		type="hidden" 
+		name="credit_id" 
+		value=credit_id
+	} ?>
+	<?lsmb PROCESS input element_data = {
+		type="hidden" 
 		name="contact_id" 
 		value=contact_id
 	} ?>
@@ -661,6 +683,11 @@
 	} ?>
 	<?lsmb PROCESS input element_data = {
 		type="hidden" 
+		name="credit_id" 
+		value=credit_id
+	} ?>
+	<?lsmb PROCESS input element_data = {
+		type="hidden" 
 		name="bank_account_id" 
 		value=bank_account_id
 	} ?>
@@ -697,6 +724,7 @@
 <div class="note">
 <div class="timestamp"><?lsmb text('Entered at: [_1]', n.created) ?></div>
 <div class="contents"><?lsmb n.note ?></div>
+</div>
 <?lsmb END ?>
 <form action="<?lsmb script ?>" method="post">
 	<?lsmb PROCESS input element_data = {
@@ -704,6 +732,22 @@
 		name="entity_id" 
 		value=entity_id
 	} ?>
+	<?lsmb PROCESS input element_data = {
+		type="hidden" 
+		name="credit_id" 
+		value=credit_id
+	} ?>
+<?lsmb IF credit_id -?>
+<div class="input"><?lsmb PROCESS select element_data = {
+			name = "note_class"
+			default_values = [note_class]
+			options = note_class_options
+			label = text("Note Class") #"
+			text_attr = "label"
+			value_attr = "value"
+	} ?>
+</div>
+<?lsmb END # IF credit_id -?>
 <div class="input"><?lsmb PROCESS textarea element_data = {
 	label = text('Notes:<br />')
 	name = 'note'


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