aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2015-07-07 10:08:27 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2015-07-07 10:08:27 +0200
commitec1479097ab7f58a0bf9ba43a50af2bee0e15a40 (patch)
tree0291915e3690d1e614282384e8c4fde28652c440
parente915d79ef1a61d00e83c21802a7eb1d905a237a1 (diff)
downloadmerchant-ec1479097ab7f58a0bf9ba43a50af2bee0e15a40.tar.gz
merchant-ec1479097ab7f58a0bf9ba43a50af2bee0e15a40.tar.bz2
merchant-ec1479097ab7f58a0bf9ba43a50af2bee0e15a40.zip
adding currency selection
-rw-r--r--src/website/new/create-reserve-form.html13
-rw-r--r--src/website/new/merchant.js4
2 files changed, 13 insertions, 4 deletions
diff --git a/src/website/new/create-reserve-form.html b/src/website/new/create-reserve-form.html
index b7a14039..77191f3d 100644
--- a/src/website/new/create-reserve-form.html
+++ b/src/website/new/create-reserve-form.html
@@ -1,11 +1,18 @@
<form id="reserve-form" name="tform" action="never_used" onsubmit="return MERCHtrigSubmission()" method="POST">
Which mint? Indicate mint's URL below :<br><input id="mint-url" type="text" name="pbk">demo.taler.net</input><br>
- Your Public Key Here :<br><input type="text" name="pbk">X6CK1DWTT895YK5RAJP77H6K673FBGR1KJ3ZGXFD2N67TJDE7VBG</input><br>
- How many Kudos? :<br>
- <select id="taler-amount" name="kudos">
+ Your Public Key Here :<br><input type="text" name="pbk"></input><br>
+ Amount :<br>
+ <select id="taler-amount" name="kudos-amount">
<option value="1">1</option>
<option value="5">5</option>
<option value="10">10</option>
</select><br><br>
+ Currency :<br>
+ <select id="taler-amount-currency" name="kudos-currency">
+ <option value="1">Kudos</option>
+ <option value="5">Euro</option>
+ <option value="10">Yemen</option>
+ </select><br><br>
+
<input type="submit" value="Submit"></input><br>
</form>
diff --git a/src/website/new/merchant.js b/src/website/new/merchant.js
index 1c5480df..f1bd2a45 100644
--- a/src/website/new/merchant.js
+++ b/src/website/new/merchant.js
@@ -60,7 +60,8 @@ document.body.addEventListener("taler-wallet-installed", MERCHfirstStep, false,
/*
notify the extension about the submission. That way it will be possible to retrieve
-the mint's URL and/or other info. from the filled form
+the mint's URL and/or other info. from the filled form. Actually, the extension will
+accomplish the POST too.
*/
function MERCHtrigSubmission(){
@@ -76,4 +77,5 @@ document.body.dispatchEvent(subEvent);
// always return false so that the post is actually done by the extension
return false;
+
}