[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[3830] addons/1.3/budgetting/trunk
- Subject: SF.net SVN: ledger-smb:[3830] addons/1.3/budgetting/trunk
- From: ..hidden..
- Date: Sun, 09 Oct 2011 22:51:49 +0000
Revision: 3830
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3830&view=rev
Author: einhverfr
Date: 2011-10-09 22:51:49 +0000 (Sun, 09 Oct 2011)
Log Message:
-----------
Beginnings of budget entry template
Added Paths:
-----------
addons/1.3/budgetting/trunk/UI/
addons/1.3/budgetting/trunk/UI/budgetting/
addons/1.3/budgetting/trunk/UI/budgetting/budget_entry.html
Added: addons/1.3/budgetting/trunk/UI/budgetting/budget_entry.html
===================================================================
--- addons/1.3/budgetting/trunk/UI/budgetting/budget_entry.html (rev 0)
+++ addons/1.3/budgetting/trunk/UI/budgetting/budget_entry.html 2011-10-09 22:51:49 UTC (rev 3830)
@@ -0,0 +1,262 @@
+<?lsmb INCLUDE 'ui-header.html'
+ include_script = [
+ "UI/ajax/scriptaculous/lib/prototype.js",
+ "UI/ajax/scriptaculous/src/scriptaculous.js?load=builder,effects,dragdrop,controls",
+ "UI/ajax/helpers.js"]
+ stylesheet=form.stylesheet ?>
+<?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 align="right"><?lsmb text('Reference') ?></th>
+ <td>
+ <?lsmb INCLUDE input element_data = {
+ name = "reference",
+ value = form.reference,
+ type = "text",
+ size = "20",
+ class = 'reference'
+ id = "ref_1"
+ } ?>
+
+ </td>
+ <th align="right"><?lsmb text('Date') ?></th>
+ <td>
+ <?lsmb INCLUDE input element_data = {
+ name = "transdate"
+ value = form.transdate
+ type = "text"
+ size = "11"
+ class = 'date'
+ id = "tra_1"
+ } ?>
+ </td>
+ </tr>
+ <?lsmb IF form.departmentset == 1 ?>
+ <tr>
+ <th align="right" ><?lsmb text('Department') ?></th>
+ <td>
+ <?lsmb INCLUDE select element_data = {
+ text_attr = "description"
+ value_attr = "departmentstyle"
+ default_values = [form.department]
+ options = form.all_department
+ name = "department"
+ id = "dep_1"
+ } ?>
+
+ </td>
+ </tr>
+ <?lsmb END ?>
+ <?lsmb IF form.projects.length ?>
+ <tr>
+ <th align="right" ><?lsmb text('Project') ?></th>
+ <td>
+ <?lsmb INCLUDE select element_data = {
+ text_attr = "description"
+ value_attr = "id"
+ default_values = [form.projects]
+ options = form.projects
+ name = "project"
+ } ?>
+
+ </td>
+ </tr>
+
+ <tr>
+ <th align="right"><?lsmb text('Description') ?></th>
+ <td colspan="3">
+ <?lsmb IF form.colrowdesc ==1 ?>
+ <?lsmb INCLUDE textarea element_data={
+ name = "description"
+ rows = form.rowsdesc
+ cols = form.colsdesc
+ value = form.description
+ id = "des_1"
+ }
+ ?>
+ <?lsmb ELSE ?>
+ <?lsmb INCLUDE input element_data = {
+ name = "description",
+ value = form.description,
+ type = "text",
+ size = "50",
+ class = 'description'
+ id = "des_1"
+ }
+ ?>
+
+ <?lsmb END ?>
+ </td>
+ </tr>
+ <tr>
+ <th align="right"><?lsmb text('Notes') ?></th>
+ <td colspan="3">
+ <?lsmb IF form.colrownotes ==1 ?>
+ <?lsmb INCLUDE textarea element_data={
+ name = "notes"
+ rows = form.rowsnotes
+ cols = form.colsnotes
+ value = form.notes
+ id = "not_1"
+ }
+ ?>
+ <?lsmb ELSE ?>
+ <?lsmb INCLUDE input element_data = {
+ name = "notes",
+ value = form.notes,
+ type = "text",
+ size = "50",
+ class = 'notes'
+ id = "not_1"
+ }
+ ?>
+
+ <?lsmb END ?>
+
+
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+<tr>
+ <td>
+ <table width="100%">
+ <tr class="listheading">
+ <th class="listheading"><?lsmb text('Account') ?></th>
+ <?lsmb IF form.transfer == 1 ?>
+ <th class="listheading"><?lsmb text('FX') ?></th>
+ <?lsmb END ?>
+ <th class="listheading"><?lsmb text('Debit') ?></th>
+ <th class="listheading"><?lsmb text('Credit') ?></th>
+ <th class="listheading"><?lsmb text('Source') ?></th>
+ <th class="listheading"><?lsmb text('Memo') ?></th>
+ <?lsmb IF form.projectset == 1 ?>
+ <th class="listheading"><?lsmb text('Project') ?></th>
+ <?lsmb END ?>
+ </tr>
+ <?lsmb FOREACH displayrow IN displayrows ?>
+ <tr>
+ <?lsmb INDEX=displayrow.index ?>
+ <td>
+ <?lsmb IF displayrow.accnoset == 0 ?>
+ <?lsmb PROCESS ajaxselect element_data = {
+ name = "accno_$INDEX"
+ initial_value = ${"accno_$INDEX"}
+ text_attr = 'accno'
+ value_attr = 'id'
+ ajax_target = 'journal.pl'
+ } ?>
+
+ <?lsmb ELSE ?>
+
+ <?lsmb PROCESS label element_data = {
+ text = displayrow.accno
+ align = 'right'
+ id = "acc_$INDEX"
+ } ?>
+
+
+ <?lsmb END ?>
+
+ </td>
+
+ <td>
+ <?lsmb PROCESS input element_data = {
+ value = displayrow.debit
+ name = "debit_$INDEX"
+ type = "text"
+ size = 12
+ accesskey = displayrow.index
+ id = "deb_$INDEX"
+ } ?>
+
+ </td>
+
+ <td>
+ <?lsmb PROCESS input element_data = {
+ value = displayrow.credit
+ name = "credit_$INDEX"
+ type = "text"
+ size = 12
+ id = "cre_$INDEX"
+ } ?>
+
+ </td>
+
+ <td>
+ <?lsmb PROCESS input element_data = {
+ value = displayrow.source
+ name = "source_$INDEX"
+ type = "text"
+ size = 10
+ id = "sou_$INDEX"
+
+ } ?>
+
+ </td>
+
+ <td>
+ <?lsmb PROCESS input element_data = {
+ value = displayrow.memo
+ name = "memo_$INDEX"
+ type = "text"
+ size = 30
+ id = "mem_$INDEX"
+ } ?>
+
+ </td>
+ </tr>
+ <?lsmb END ?>
+ <tr class="listtotal">
+ <th> </th>
+ <?lsmb IF form.transfer == 1 ?>
+ <th class="listheading"> </th>
+ <?lsmb END ?>
+ <th class="listtotal" align="right">
+ <?lsmb form.totaldebit ?>
+ </th>
+
+ <th class="listtotal" align="right">
+ <?lsmb form.totalcredit ?>
+ </th>
+ <th> </th>
+ <th> </th>
+ <?lsmb IF form.projectset == 1 ?>
+ <th class="listheading"> </th>
+ <?lsmb END ?>
+ </tr>
+
+ </table>
+ </td>
+</tr>
+ <tr>
+ <td><hr size="3"></hr></td>
+ </tr>
+</table>
+
+<?lsmb FOREACH hidden IN hiddens.keys;
+ PROCESS input element_data={
+ type => 'hidden',
+ name => hidden,
+ value => hiddens.item(hidden)
+ }; END ?>
+
+<?lsmb FOREACH button IN buttons; PROCESS button element_data=button; END ?>
+<?lsmb END ?>
+</form>
+</body>
+</html>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.