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

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



Revision: 4448
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4448&view=rev
Author:   ehuelsmann
Date:     2012-03-12 12:01:16 +0000 (Mon, 12 Mar 2012)
Log Message:
-----------
Merge import_csv components from the addons directory.

Modified Paths:
--------------
    trunk/LedgerSMB/Scripts/import_csv.pm

Added Paths:
-----------
    trunk/UI/import_csv/
    trunk/UI/import_csv/import_csv.html

Modified: trunk/LedgerSMB/Scripts/import_csv.pm
===================================================================
--- trunk/LedgerSMB/Scripts/import_csv.pm	2012-03-12 06:48:42 UTC (rev 4447)
+++ trunk/LedgerSMB/Scripts/import_csv.pm	2012-03-12 12:01:16 UTC (rev 4448)
@@ -161,8 +161,8 @@
     my $template = LedgerSMB::Template->new(
         user =>$request->{_user}, 
         locale => $request->{_locale},
-        path => 'UI/import_trans',
-        template => 'import_trans',
+        path => 'UI/import_csv',
+        template => 'import_csv',
         format => 'HTML'
     );
     $template->render($request);

Added: trunk/UI/import_csv/import_csv.html
===================================================================
--- trunk/UI/import_csv/import_csv.html	                        (rev 0)
+++ trunk/UI/import_csv/import_csv.html	2012-03-12 12:01:16 UTC (rev 4448)
@@ -0,0 +1,71 @@
+<?lsmb INCLUDE 'ui-header.html' 
+      include_stylesheet = ["UI/asset/asset.css"] 
+      include_script = ["UI/asset/asset.js"] 
+?>
+<?lsmb PROCESS 'elements.html' ?>
+<body onLoad="init()">
+<div class="listtop"><?lsmb title ?></div>
+<div class="info"><?lsmb info ?></div>
+<form action="<?lsmb script ?>" method="post" enctype="multipart/form-data">
+<?lsmb PROCESS input element_data = {
+    type = "hidden"
+    class = "hidden"
+    name = "type"
+    value = type
+} ?>
+<?lsmb IF multi ?>
+<div class="listtop"><?lsmb text('Batch Information') ?></div>
+<?lsmb END ?>
+<div class="inputrow" id = "referencerow">
+<?lsmb PROCESS input element_data = {
+    type  = "text"
+    class = "reference"
+    name  = "reference"
+    label = text('Reference')
+    value = reference
+    size  = 15
+} ?>
+</div>
+<div class="inputrow" id = "descriptionrow">
+<?lsmb PROCESS input element_data = {
+    type  = "text"
+    class = "description"
+    name  = "description"
+    label = text('Description')
+    value = description
+} ?>
+</div>
+<div class="inputrow" id="daterow">
+<?lsmb PROCESS input element_data = {
+     type = "text"
+     class = "date"
+     label = text("Transaction Date") #" 
+     name = "transdate"
+     value = transdate
+     size = 12
+} ?>
+<div class="inputrow" id="filerow">
+<?lsmb PROCESS input element_data = {
+       name = "import_file"
+       type = "file"
+       label = text('From File') #'
+       class = "file"
+} ?>
+</div>
+<div class="inputrow" id="buttonrow">
+<?lsmb PROCESS input element_data = {
+       type = "hidden"
+       name = "trans_type"
+       value = trans_type
+} ?>
+<?lsmb PROCESS button element_data = {
+	text = text("Save")
+	type = "submit"
+	class = "submit"
+	name = "action"
+	value = "run_import"
+} ?>
+</div>
+</form>
+</body>
+</html>

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