mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 15:47:01 +00:00
copying templates
This commit is contained in:
parent
6db2e0de84
commit
d9dac8ded8
@ -76,9 +76,9 @@ class Boot {
|
||||
Menu.i("TESOBE") / "accounts" / "tesobe" submenus(
|
||||
Menu.i("Anonymous") / "accounts" / "tesobe" / "anonymous",
|
||||
Menu.i("Our Network") / "accounts" / "tesobe" / "our-network",
|
||||
Menu.i("Authorities") / "accounts" / "tesobe" / "authorities",
|
||||
Menu.i("Team") / "accounts" / "tesobe" / "team",
|
||||
Menu.i("Board") / "accounts" / "tesobe" / "board"
|
||||
Menu.i("Board") / "accounts" / "tesobe" / "board",
|
||||
Menu.i("Authorities") / "accounts" / "tesobe" / "authorities"
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
@ -46,7 +46,24 @@ class OBPTransactionSnippet extends StatefulSnippet with PaginatorSnippet[OBPTra
|
||||
value.toString
|
||||
else if(consumer == "board")
|
||||
value.toString
|
||||
else if(consumer == "tax_office")
|
||||
else if(consumer == "authorities")
|
||||
value.toString
|
||||
else if(consumer == "anonymous")
|
||||
(if (value < 0) "-" else "+")
|
||||
else
|
||||
"---"
|
||||
show
|
||||
}
|
||||
|
||||
def present_obp_transaction_amount(value: Double, consumer: String): String = {
|
||||
// How the other account is presented to others
|
||||
// Use an alias if shy wins
|
||||
val show: String =
|
||||
if(consumer == "team")
|
||||
value.toString
|
||||
else if(consumer == "board")
|
||||
value.toString
|
||||
else if(consumer == "authorities")
|
||||
value.toString
|
||||
else if(consumer == "anonymous")
|
||||
(if (value < 0) "-" else "+")
|
||||
@ -58,10 +75,15 @@ class OBPTransactionSnippet extends StatefulSnippet with PaginatorSnippet[OBPTra
|
||||
def present_obp_transaction_other_account(value: String, consumer: String): String = {
|
||||
// How the other account is presented to others
|
||||
// Use an alias if shy wins
|
||||
|
||||
val outsiders: List[String] = List("anonymous")
|
||||
|
||||
|
||||
if (other_account_is_shy(value, consumer)) other_account_alias(value) else value
|
||||
}
|
||||
|
||||
|
||||
|
||||
def other_account_is_a_client(value: String): Boolean = {
|
||||
// A list of clients
|
||||
val clients: List[String] = List("TXTR GMBH")
|
||||
@ -84,7 +106,7 @@ class OBPTransactionSnippet extends StatefulSnippet with PaginatorSnippet[OBPTra
|
||||
// A list of the financially shy (or just plain private)
|
||||
val the_shy: List[String] = List("Tim Kleinschmidt", "Jan Slabiak")
|
||||
// A list of those that can look anyway
|
||||
val the_gods: List[String] = List("team", "board", "tax_office")
|
||||
val the_gods: List[String] = List("team", "board", "authorities")
|
||||
// No one can be shy in front of the gods
|
||||
(the_shy.contains(value) && !(the_gods.contains(value)))
|
||||
}
|
||||
@ -128,7 +150,7 @@ class OBPTransactionSnippet extends StatefulSnippet with PaginatorSnippet[OBPTra
|
||||
".obp_transaction_type_de *" #> obp_transaction.obp_transaction_type_de &
|
||||
".obp_transaction_data_blob *" #> present_obp_transaction_other_account(obp_transaction.obp_transaction_data_blob.value, consumer) &
|
||||
".obp_transaction_new_balance *" #> present_obp_transaction_new_balance(obp_transaction.obp_transaction_new_balance.value, consumer) &
|
||||
".obp_transaction_amount *" #> obp_transaction.obp_transaction_amount &
|
||||
".obp_transaction_amount *" #> present_obp_transaction_amount(obp_transaction.obp_transaction_amount.value, consumer) &
|
||||
".obp_transaction_currency *" #> obp_transaction.obp_transaction_currency &
|
||||
".obp_transaction_date_start *" #> (formatter format obp_transaction.obp_transaction_date_start.is.getTime()) &
|
||||
".obp_transaction_date_complete *" #> (formatter format obp_transaction.obp_transaction_date_complete.is.getTime()) &
|
||||
|
||||
52
MavLift/src/main/webapp/accounts/tesobe/authorities.html
Normal file
52
MavLift/src/main/webapp/accounts/tesobe/authorities.html
Normal file
@ -0,0 +1,52 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
|
||||
<title>For the tax Authorities</title>
|
||||
</head>
|
||||
<body class="lift:content_id=main">
|
||||
<div id="main" class="lift:surround?with=default;at=content">
|
||||
<h2>For the tax Authorities</h2>
|
||||
<p>
|
||||
<span class="lift:helloWorld.howdy">
|
||||
Welcome. The time is <span id="time">Time goes here</span>
|
||||
</span>
|
||||
</p>
|
||||
<div>
|
||||
<h3>Transactions</h3>
|
||||
|
||||
<br>
|
||||
</div>
|
||||
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span-1">Account</th>
|
||||
<th class="span-1">Posted</th>
|
||||
<th class="span-1">Cleared</th>
|
||||
<th class="span-1">Amount</th>
|
||||
<th class="span-1">Currency</th>
|
||||
<!-- <th class="span-1">Type</th> -->
|
||||
<th class="span-1">Info</th>
|
||||
<th class="span-1">Balance</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="lift:OBPTransactionSnippet.showAll?consumer=authorities">
|
||||
<td class="opb_transaction_other_account">other account</td>
|
||||
<td class="obp_transaction_date_start">start date</td>
|
||||
<td class="obp_transaction_date_complete">completed date</td>
|
||||
<td class="obp_transaction_amount">obp_transaction_amount</td>
|
||||
<td class="obp_transaction_currency">obp_transaction_currency</td>
|
||||
<!-- <td class="obp_transaction_type_en">obp_transaction_type_en</td> -->
|
||||
<!-- <td class="obp_transaction_type_de">obp_transaction_type_de</td> -->
|
||||
<td class="obp_transaction_data_blob">obp_transaction_data_blob</td>
|
||||
<td class="obp_transaction_new_balance">obp_transaction_new_balance</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -12,6 +12,41 @@
|
||||
Welcome. The time is <span id="time">Time goes here</span>
|
||||
</span>
|
||||
</p>
|
||||
<div>
|
||||
<h3>Transactions</h3>
|
||||
|
||||
<br>
|
||||
</div>
|
||||
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span-1">Account</th>
|
||||
<th class="span-1">Posted</th>
|
||||
<th class="span-1">Cleared</th>
|
||||
<th class="span-1">Amount</th>
|
||||
<th class="span-1">Currency</th>
|
||||
<!-- <th class="span-1">Type</th> -->
|
||||
<th class="span-1">Info</th>
|
||||
<th class="span-1">Balance</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="lift:OBPTransactionSnippet.showAll?consumer=board">
|
||||
<td class="opb_transaction_other_account">other account</td>
|
||||
<td class="obp_transaction_date_start">start date</td>
|
||||
<td class="obp_transaction_date_complete">completed date</td>
|
||||
<td class="obp_transaction_amount">obp_transaction_amount</td>
|
||||
<td class="obp_transaction_currency">obp_transaction_currency</td>
|
||||
<!-- <td class="obp_transaction_type_en">obp_transaction_type_en</td> -->
|
||||
<!-- <td class="obp_transaction_type_de">obp_transaction_type_de</td> -->
|
||||
<td class="obp_transaction_data_blob">obp_transaction_data_blob</td>
|
||||
<td class="obp_transaction_new_balance">obp_transaction_new_balance</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -12,6 +12,41 @@
|
||||
Welcome. The time is <span id="time">Time goes here</span>
|
||||
</span>
|
||||
</p>
|
||||
<div>
|
||||
<h3>Transactions</h3>
|
||||
|
||||
<br>
|
||||
</div>
|
||||
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span-1">Account</th>
|
||||
<th class="span-1">Posted</th>
|
||||
<th class="span-1">Cleared</th>
|
||||
<th class="span-1">Amount</th>
|
||||
<th class="span-1">Currency</th>
|
||||
<!-- <th class="span-1">Type</th> -->
|
||||
<th class="span-1">Info</th>
|
||||
<th class="span-1">Balance</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="lift:OBPTransactionSnippet.showAll?consumer=our_network">
|
||||
<td class="opb_transaction_other_account">other account</td>
|
||||
<td class="obp_transaction_date_start">start date</td>
|
||||
<td class="obp_transaction_date_complete">completed date</td>
|
||||
<td class="obp_transaction_amount">obp_transaction_amount</td>
|
||||
<td class="obp_transaction_currency">obp_transaction_currency</td>
|
||||
<!-- <td class="obp_transaction_type_en">obp_transaction_type_en</td> -->
|
||||
<!-- <td class="obp_transaction_type_de">obp_transaction_type_de</td> -->
|
||||
<td class="obp_transaction_data_blob">obp_transaction_data_blob</td>
|
||||
<td class="obp_transaction_new_balance">obp_transaction_new_balance</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,17 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
|
||||
<title>For the tax Authorities</title>
|
||||
</head>
|
||||
<body class="lift:content_id=main">
|
||||
<div id="main" class="lift:surround?with=default;at=content">
|
||||
<h2>For the tax Authorities</h2>
|
||||
<p>
|
||||
<span class="lift:helloWorld.howdy">
|
||||
Welcome. The time is <span id="time">Time goes here</span>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -12,6 +12,41 @@
|
||||
Welcome. The time is <span id="time">Time goes here</span>
|
||||
</span>
|
||||
</p>
|
||||
<div>
|
||||
<h3>Transactions</h3>
|
||||
|
||||
<br>
|
||||
</div>
|
||||
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span-1">Account</th>
|
||||
<th class="span-1">Posted</th>
|
||||
<th class="span-1">Cleared</th>
|
||||
<th class="span-1">Amount</th>
|
||||
<th class="span-1">Currency</th>
|
||||
<!-- <th class="span-1">Type</th> -->
|
||||
<th class="span-1">Info</th>
|
||||
<th class="span-1">Balance</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="lift:OBPTransactionSnippet.showAll?consumer=anonymous">
|
||||
<td class="opb_transaction_other_account">other account</td>
|
||||
<td class="obp_transaction_date_start">start date</td>
|
||||
<td class="obp_transaction_date_complete">completed date</td>
|
||||
<td class="obp_transaction_amount">obp_transaction_amount</td>
|
||||
<td class="obp_transaction_currency">obp_transaction_currency</td>
|
||||
<!-- <td class="obp_transaction_type_en">obp_transaction_type_en</td> -->
|
||||
<!-- <td class="obp_transaction_type_de">obp_transaction_type_de</td> -->
|
||||
<td class="obp_transaction_data_blob">obp_transaction_data_blob</td>
|
||||
<td class="obp_transaction_new_balance">obp_transaction_new_balance</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
BIN
MavLift/src/main/webapp/images/OBP_logo_simple.png
Normal file
BIN
MavLift/src/main/webapp/images/OBP_logo_simple.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Loading…
Reference in New Issue
Block a user