summaryrefslogtreecommitdiff
path: root/templates/inventory/signup.html
blob: 87c4b63e340cee144d3eebe1380afa5d153edb7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100

<!-- 
This file is part of the Taler Codeless Merchant.
(C) 2018 GNUnet e.V.

The Taler Codeless Merchant is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or (at your
option) any later version.

The Taler Codeless Merchant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License
for more details.

You should have received a copy of the GNU Affero General Public License along
with the Taler Codeless Merchant.  If not, see <https://www.gnu.org/licenses/>.

@author Shivam Kohli
 -->
{% extends "inventory/base1.html" %}

{% block headermsg %}
  <center><h1 class="nav">Register</h1></center>
  <p>Register as a Merchant. If you already registered, please login <a href="/accounts/login">here</a>.</p>
{% endblock headermsg %}

{% block content %}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
  <div class="main" style="overflow-x: hidden;">
    <section id="contact">
        <div class="container">
          <form method="post" enctype="multipart/form-data">
          <form method="post" enctype="multipart/form-data">
          {% csrf_token %}
          <!-- {{ form.as_p }} -->
          {% for field in form %}
                  {% if field.label == 'Enter the Plain PaytoURI' %}
                  {% elif field.label == 'Account' %}
                  {% elif field.label == 'Payment Address type' %}
                     <br><br><label class="tooltip">{{ field.label }}<font size="1"><span class="tooltiptext">Choose the type of payment method from the list.</span></font></label>
                     {% for error in field.errors %}
                        <p style="color: red">{{ error }}</p>
                      {% endfor %}
                      {{ field }}
                    </br></br></br>

                  {% else %}
                    <label class="mylabel">{{ field.label }}</label>
                    {% for error in field.errors %}
                        <p style="color: red">{{ error }}</p>
                      {% endfor %}
                      {{ field }}
                  {% endif %}
          {% endfor %}
          <!--Topic: other-->
          <div id="other" style="display:none">
              <label class="tooltip">{{ form.pay_url.label }}<font size="1"><span class="tooltiptext">Enter the payto URI. This will be the link to which money will be transferred.</span></font></label>
             {% for error in field.errors %}
                <p style="color: red">{{ error }}</p>
              {% endfor %}
              {{ form.pay_url }}
          </div>

          <!--Topic: default-->
          <div id="account" style="display:none">
            <label class="tooltip">{{ form.account.label }}<font size="1"><span class="tooltiptext">Enter the account to which money has to be transferred.</span></font></label>
             {% for error in field.errors %}
                <p style="color: red">{{ error }}</p>
              {% endfor %}
              {{ form.account }}
          </div>
          <button name="add_product" type="submit" class="submit">Sign up</button>
          </form>
      </div>
    </section>
</div>
</div>
<script type="text/javascript">
  $(document).ready(function(){
  $('#id_address').change(function(){
    selection = $(this).val();    
    switch(selection)
    { 
      case 'other':
        $('#other').show();
        $('#account').hide();
        break;
      case '':
        $('#other').hide();
        $('#account').hide();
        break;
      default:
        $('#other').hide();
        $('#account').show();
        break;
    }
  });
});</script>
{% endblock content %}