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

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



Revision: 5970
          http://sourceforge.net/p/ledger-smb/code/5970
Author:   einhverfr
Date:     2013-08-24 10:57:28 +0000 (Sat, 24 Aug 2013)
Log Message:
-----------
Moving configuration template so it is clear it is new code

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

Added Paths:
-----------
    trunk/UI/Configuration/
    trunk/UI/Configuration/settings.html

Removed Paths:
-------------
    trunk/UI/am-defaults.html

Modified: trunk/LedgerSMB/Scripts/configuration.pm
===================================================================
--- trunk/LedgerSMB/Scripts/configuration.pm	2013-08-24 10:53:50 UTC (rev 5969)
+++ trunk/LedgerSMB/Scripts/configuration.pm	2013-08-24 10:57:28 UTC (rev 5970)
@@ -219,7 +219,7 @@
     my $template = LedgerSMB::Template->new_UI(
         user => $LedgerSMB::App_State::User, 
         locale => $locale,
-        template => 'am-defaults');
+        template => 'Configuration/settings');
     $template->render({
         form => $request,
 	# hiddens => \%hiddens,

Copied: trunk/UI/Configuration/settings.html (from rev 5966, trunk/UI/am-defaults.html)
===================================================================
--- trunk/UI/Configuration/settings.html	                        (rev 0)
+++ trunk/UI/Configuration/settings.html	2013-08-24 10:57:28 UTC (rev 5970)
@@ -0,0 +1,77 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
+		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+<head>
+	<title><?lsmb form.titlebar ?></title>
+	<meta http-equiv="Pragma" content="no-cache" />
+	<meta http-equiv="Expires" content="-1" />
+	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
+	<link rel="stylesheet" href="css/<?lsmb form.stylesheet ?>" type="text/css" title="LedgerSMB stylesheet" />
+
+	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+
+	<meta name="robots" content="noindex,nofollow" />
+        
+</head>
+<?lsmb PROCESS elements.html ?> 
+		 
+<body>
+<form method="post" action="<?lsmb form.script ?>">
+<table width="100%"><col width="25%" align="right"><col><col>
+  <tr><th colspan="2" class="listtop"><?lsmb text('System Defaults') ?></th>
+  <?lsmb FOREACH GROUP IN default_settings ?>
+  <tr><th colspan="2" class="listheading"><?lsmb GROUP.title ?></th></tr>
+    <?lsmb FOREACH ITEM IN GROUP.items ?>
+  <tr>
+    <th align="right"><?lsmb ITEM.label ?></th>
+       <td>
+       <?lsmb 
+       IF ITEM.type == 'YES_NO';
+           IF form.${ITEM.name};
+              YES="CHECKED";
+              NO=undef;
+           ELSE;
+              NO="CHECKED";
+              YES=undef;
+           END;
+           PROCESS input element_data = {
+              name = ITEM.name
+              type = 'radio'
+             label = text('Yes')
+             value = 1
+           checked = YES
+           };
+           PROCESS input element_data = {
+              name = ITEM.name
+              type = 'radio'
+             label = text('No')
+             value = 0
+           checked = NO
+           };
+       ELSIF ITEM.type == 'SELECT_ONE';
+           PROCESS select element_data= selects.${ITEM.name};
+       ELSE;
+           PROCESS input element_data = {
+                   name = ITEM.name
+                   type = 'text'
+                  value = form.${ITEM.name}
+           }; 
+        END; ?>
+    </td>
+  </tr>
+    <?lsmb END # FOREACH ITEM ?>
+  <?lsmb END # FOREACH GROUP ?> 
+</table>
+<hr size="3" noshade="noshade" />
+
+<?lsmb FOREACH hidden IN hiddens.keys;
+	PROCESS input element_data={
+		type => 'hidden',
+		name => hidden,
+		value => hiddens.item(hidden)
+		}; END;
+PROCESS button element_data={name => 'action', value => 'save_defaults' text => text('Save')} ?>
+  </form>
+
+</body>
+</html>

Deleted: trunk/UI/am-defaults.html
===================================================================
--- trunk/UI/am-defaults.html	2013-08-24 10:53:50 UTC (rev 5969)
+++ trunk/UI/am-defaults.html	2013-08-24 10:57:28 UTC (rev 5970)
@@ -1,77 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
-		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
-<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
-<head>
-	<title><?lsmb form.titlebar ?></title>
-	<meta http-equiv="Pragma" content="no-cache" />
-	<meta http-equiv="Expires" content="-1" />
-	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
-	<link rel="stylesheet" href="css/<?lsmb form.stylesheet ?>" type="text/css" title="LedgerSMB stylesheet" />
-
-	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-
-	<meta name="robots" content="noindex,nofollow" />
-        
-</head>
-<?lsmb PROCESS elements.html ?> 
-		 
-<body>
-<form method="post" action="<?lsmb form.script ?>">
-<table width="100%"><col width="25%" align="right"><col><col>
-  <tr><th colspan="2" class="listtop"><?lsmb text('System Defaults') ?></th>
-  <?lsmb FOREACH GROUP IN default_settings ?>
-  <tr><th colspan="2" class="listheading"><?lsmb GROUP.title ?></th></tr>
-    <?lsmb FOREACH ITEM IN GROUP.items ?>
-  <tr>
-    <th align="right"><?lsmb ITEM.label ?></th>
-       <td>
-       <?lsmb 
-       IF ITEM.type == 'YES_NO';
-           IF form.${ITEM.name};
-              YES="CHECKED";
-              NO=undef;
-           ELSE;
-              NO="CHECKED";
-              YES=undef;
-           END;
-           PROCESS input element_data = {
-              name = ITEM.name
-              type = 'radio'
-             label = text('Yes')
-             value = 1
-           checked = YES
-           };
-           PROCESS input element_data = {
-              name = ITEM.name
-              type = 'radio'
-             label = text('No')
-             value = 0
-           checked = NO
-           };
-       ELSIF ITEM.type == 'SELECT_ONE';
-           PROCESS select element_data= selects.${ITEM.name};
-       ELSE;
-           PROCESS input element_data = {
-                   name = ITEM.name
-                   type = 'text'
-                  value = form.${ITEM.name}
-           }; 
-        END; ?>
-    </td>
-  </tr>
-    <?lsmb END # FOREACH ITEM ?>
-  <?lsmb END # FOREACH GROUP ?> 
-</table>
-<hr size="3" noshade="noshade" />
-
-<?lsmb FOREACH hidden IN hiddens.keys;
-	PROCESS input element_data={
-		type => 'hidden',
-		name => hidden,
-		value => hiddens.item(hidden)
-		}; END;
-PROCESS button element_data={name => 'action', value => 'save_defaults' text => text('Save')} ?>
-  </form>
-
-</body>
-</html>

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


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits