summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorshivam kohli <kohlishivam5522@gmail.com>2018-07-25 19:12:43 +0530
committershivam kohli <kohlishivam5522@gmail.com>2018-07-25 19:12:43 +0530
commitcc56d2a73f1a58ccc40062bc95153843195ee055 (patch)
treef7f74d045da92b84dcaf3c94b20a7ca91c02d45f /templates
parent066a5deda6c7f7103c24b2dfaf5d084678e99d5e (diff)
downloadcodeless-cc56d2a73f1a58ccc40062bc95153843195ee055.tar.gz
codeless-cc56d2a73f1a58ccc40062bc95153843195ee055.tar.bz2
codeless-cc56d2a73f1a58ccc40062bc95153843195ee055.zip
added dropdown for merchant address type
Diffstat (limited to 'templates')
-rw-r--r--templates/inventory/home.html1
-rw-r--r--templates/inventory/signup.html53
2 files changed, 53 insertions, 1 deletions
diff --git a/templates/inventory/home.html b/templates/inventory/home.html
index a64be0d..68d1b6a 100644
--- a/templates/inventory/home.html
+++ b/templates/inventory/home.html
@@ -21,6 +21,7 @@ with the Taler Codeless Merchant. If not, see <https://www.gnu.org/licenses/>.
<html>
<head>
<title>Home</title>
+ <!-- https://taler.net/images/logo-2018-dold.svg -->
<style type="text/css">
*,
*::before,
diff --git a/templates/inventory/signup.html b/templates/inventory/signup.html
index 098336f..d39cec9 100644
--- a/templates/inventory/signup.html
+++ b/templates/inventory/signup.html
@@ -136,6 +136,45 @@ with the Taler Codeless Merchant. If not, see <https://www.gnu.org/licenses/>.
margin: 0;
padding: 0;}
</style>
+ <style>
+ .tooltip {
+ position: relative;
+ display: inline-block;
+ }
+
+ .tooltip .tooltiptext {
+ visibility: hidden;
+ width: 300px;
+ background-color: #555;
+ color: #fff;
+ text-align: center;
+ border-radius: 6px;
+ padding: 5px 0;
+ position: absolute;
+ z-index: 1;
+ bottom: 125%;
+ left: 50%;
+ margin-left: -60px;
+ opacity: 0;
+ transition: opacity 0.3s;
+ }
+
+ .tooltip .tooltiptext::after {
+ content: "";
+ position: absolute;
+ top: 100%;
+ left: 50%;
+ margin-left: -5px;
+ border-width: 5px;
+ border-style: solid;
+ border-color: #555 transparent transparent transparent;
+ }
+
+ .tooltip:hover .tooltiptext {
+ visibility: visible;
+ opacity: 1;
+ }
+ </style>
</head>
<body>
<div class="sidenav">
@@ -153,7 +192,19 @@ with the Taler Codeless Merchant. If not, see <https://www.gnu.org/licenses/>.
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
- {{ form.as_p }}
+ <!-- {{ form.as_p }} -->
+
+ {% for field in form %}
+ {% if field.label == 'Directly enter the Plain PaytoURI' %}
+ <br><br><label class="tooltip">{{ field.label }}<font size="1"><span class="tooltiptext">This field is not necessary, if you have choosen the address type.</span></font></label>
+ {{ field }}
+ {% else %}
+ <label class="mylabel">{{ field.label }}</label>
+ {{ field }}
+ {% endif %}
+ {% endfor %}
+
+
<button name="add_product" type="submit" class="submit">Sign up</button>
</form>
</div>