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

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



Revision: 4312
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4312&view=rev
Author:   einhverfr
Date:     2012-02-14 14:22:59 +0000 (Tue, 14 Feb 2012)
Log Message:
-----------
beginning of business unit (project, department, fund, etc) user interface

Modified Paths:
--------------
    trunk/sql/modules/Business_Unit.sql

Added Paths:
-----------
    trunk/UI/business_units/
    trunk/UI/business_units/edit.html
    trunk/UI/business_units/filter.html

Added: trunk/UI/business_units/edit.html
===================================================================
--- trunk/UI/business_units/edit.html	                        (rev 0)
+++ trunk/UI/business_units/edit.html	2012-02-14 14:22:59 UTC (rev 4312)
@@ -0,0 +1,89 @@
+<?lsmb INCLUDE 'ui-header.html' 
+      include_stylesheet = ["UI/business_unit/edit.css"] 
+?>
+<?lsmb PROCESS 'elements.html' ?>
+<body onLoad="init()">
+<div class="listtop"><?lsmb title ?></div>
+<form action="<?lsmb script ?>" method="post">
+<!-- These are for Javascript automation of defaults -CT -->
+<?lsmb PROCESS input element_data = {
+	type = "hidden"
+	name = "id"
+	value = id
+} ?>
+<div class="inputrow" id="tagrow">
+<?lsmb PROCESS input element_data = {
+	type = "text"
+	class = "control_code"
+	name = "control_code"
+	value = control_code
+	label = text('Control Code') #'
+	size = 32
+} ?>
+<?lsmb PROCESS select element_data = {
+        label = text('Parent')
+        class = "parent"
+      options = parent_options
+    text_attr = 'text'
+   value_attr = 'id'
+default_values= [parent]
+} ?>
+</div>
+<div class="inputrow" id="daterow">
+<?lsmb PROCESS input element_data = {
+	name = "start_date"
+	class = "date"
+	label = text("Start Date") #"
+         type = "text"
+        value = start_date
+} ?>
+<?lsmb PROCESS input element_data = {
+	name = "end_date"
+	class = "date"
+	label = text("End Date") #"
+         type = "text"
+        value = end_date
+} ?>
+</div>
+</div>
+<div class="inputrow" id="descrow">
+<?lsmb PROCESS input element_data = {
+	label = text("Description:")
+	name = "description"
+	class = "description"
+	value = description
+	type = "text"
+} ?>
+</div>
+<div class="inputrow" id="customer_row">
+<span class="inputgroup" id="startdepgroup">
+<?lsmb PROCESS input element_data = {
+	label = text("Customer")
+	name = "customer"
+	value = customer
+	type = "text"
+	size = 12
+        class = "search customer"
+} ?>
+</span>
+</div>
+<div class="inputrow" id="buttonrow">
+<?lsmb PROCESS button element_data = {
+	text = text("Save")
+	type = "submit"
+	class = "submit"
+	name = "action"
+	value = "asset_save"
+} ?>
+</div>
+<?lsmb PROCESS inout element_data = {
+     type = "hidden"
+     name = "class_id"
+    value = class_id
+} ?>
+</form>
+<div id="children">
+<!-- TODO:  Show and link to children here -->
+</div>
+</body>
+</html>

Added: trunk/UI/business_units/filter.html
===================================================================
--- trunk/UI/business_units/filter.html	                        (rev 0)
+++ trunk/UI/business_units/filter.html	2012-02-14 14:22:59 UTC (rev 4312)
@@ -0,0 +1,54 @@
+<?lsmb INCLUDE 'ui-header.html' 
+      include_stylesheet = ["UI/businbusiness_unit/filter.css"] 
+?>
+<?lsmb PROCESS 'elements.html' ?>
+<body>
+<div class="listtop"><?lsmb title ?></div>
+<form action="<?lsmb script ?>" method="post">
+<?lsmb PROCESS inout element_data = {
+     type = "hidden"
+     name = "class_id"
+    value = class_id
+} ?>
+<div class="inputrow" id="tagrow">
+<?lsmb PROCESS input element_data = {
+	type = "text"
+	class = "control_code"
+	name = "tag"
+	value = tag
+	label = text('Control Code') #'
+	size = 32
+} ?>
+</div>
+</div>
+<div class="inputrow" id="descrow">
+<?lsmb PROCESS input element_data = {
+	label = text("Description:")
+	name = "description"
+	class = "description"
+	value = description
+	type = "text"
+} ?>
+</div>
+<div class="inputrow" id="daterow">
+<?lsmb PROCESS input element_data = {
+	label = text("Active On") #"
+	name = "active_on"
+	class = "date"
+	value = active_on
+	type = "text"
+	size = 12
+} ?>
+</div>
+<div class="inputrow" id="buttonrow">
+<?lsmb PROCESS button element_data = {
+	text = text("Search")
+	type = "submit"
+	class = "submit"
+	name = "action"
+	value = "asset_results"
+} ?>
+</div>
+</form>
+</body>
+</html>

Modified: trunk/sql/modules/Business_Unit.sql
===================================================================
--- trunk/sql/modules/Business_Unit.sql	2012-02-14 13:52:46 UTC (rev 4311)
+++ trunk/sql/modules/Business_Unit.sql	2012-02-14 14:22:59 UTC (rev 4312)
@@ -111,8 +111,8 @@
 $$LANGUAGE PLPGSQL;
 
 CREATE OR REPLACE FUNCTION business_unit__save
-(in_id int, in_class_id int, in_control_code text, in_descriptin text,
-in_star_date date, in_end_date date, in_parent_id int, in_credit_id int)
+(in_id int, in_class_id int, in_control_code text, in_description text,
+in_start_date date, in_end_date date, in_parent_id int, in_credit_id int)
 RETURNS business_unit AS
 $$
 DECLARE retval business_unit;

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