summaryrefslogtreecommitdiff
path: root/UI
diff options
context:
space:
mode:
Diffstat (limited to 'UI')
-rw-r--r--UI/am-taxes.html47
-rw-r--r--UI/ui-header.html14
2 files changed, 61 insertions, 0 deletions
diff --git a/UI/am-taxes.html b/UI/am-taxes.html
new file mode 100644
index 00000000..58bdb114
--- /dev/null
+++ b/UI/am-taxes.html
@@ -0,0 +1,47 @@
+<?lsmb INCLUDE 'ui-header.html' ?>
+<?lsmb PROCESS elements.html ?>
+<body>
+<form method="post" action="<?lsmb form.script ?>">
+<table width="100%">
+ <tr><th class="listtop"><?lsmb form.title ?></th></tr>
+ <tr>
+ <td>
+ <table>
+ <tr>
+ <th></th>
+ <th><?lsmb text('Rate (%)') ?></th>
+ <th><?lsmb text('Number') ?></th>
+ <th><?lsmb text('Valid To') ?></th>
+ <th><?lsmb text('Ordering') ?></th>
+ <th><?lsmb text('Tax Rules') ?></th>
+ </tr>
+<?lsmb FOREACH row IN rows; i = loop.count ?>
+ <tr>
+ <th align="right"><?lsmb row.0 ?></th>
+ <td><input name="taxrate_<?lsmb i ?>" size="6" value="<?lsmb form.item("taxrate_$i") ?>" /></td>
+ <td><input name="taxnumber_<?lsmb i ?>" value="<?lsmb form.item("taxnumber_$i") ?>" /></td>
+ <td><input class="date" name="validto_<?lsmb i ?>" size="11" value="<?lsmb form.item("validto_$i") ?>" title="<?lsmb user.dateformat ?>" /></td>
+ <td><input name="pass_<?lsmb i ?>" size="6" value="<?lsmb form.item("pass_$i") ?>" /></td>
+ <td><?lsmb PROCESS select element_data=row.1 ?></td>
+ </tr>
+<?lsmb END ?>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td><hr size="3" noshade="noshade" /></td>
+ </tr>
+</table>
+
+<?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 => 'update', text => text('Update')};
+PROCESS button element_data={name => 'action', value => 'save_taxes', text => text('Save')} ?>
+ </form>
+
+</body>
+</html>
diff --git a/UI/ui-header.html b/UI/ui-header.html
new file mode 100644
index 00000000..5a429866
--- /dev/null
+++ b/UI/ui-header.html
@@ -0,0 +1,14 @@
+<!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>