summaryrefslogtreecommitdiff
path: root/arduino_blog/templates/user-register.html
blob: a5282d6d5501a09bf3adec2cf14fcc82fb91a93e (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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
{% extends "base.html" %}

{% load widget_tweaks %}
{% load static %}

{% block content %}
    <section id="register" class="section register">
        <div class="container">
            <center>
                <h2>Sign Up</h2>
            </center>
{% if form.errors %}
    {% for field in form %}
        {% for error in field.errors %}
            <div class="alert alert-danger">
                <strong>{{ error|escape }}</strong>
            </div>
        {% endfor %}
    {% endfor %}
{% endif %}
                <form action="" method=POST>
                {% csrf_token %}
                 <!-- <a style="color:red; ">{{ render_field.errors }}</a>-->
                <div class="row">
                <div class="col-12">
                  <table class="table table-bordered table-responsive table-striped">
                    <tr>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          <label for="username">Username:</label>
                            <span style="color:red;">*</span>
                          </div>
                    </td>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          {% render_field form.username %}
                          </div>
                    </td>
                    </tr>
                    <tr>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          <label for="username">Email:</label>
                            <span style="color:red;">*</span>
                          </div>
                    </td>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          {% render_field form.email %}
                          </div>
                    </td>
                    </tr>
                    <tr>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          <label for="pwd">Password:</label><span style="color:red;">*</span>
                          </div>
                    </td>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          {% render_field form.password %}
                          </div>
                    </td>
                    </tr>
                    <tr>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          <label for="cnfpwd">Confirm Password:</label><span style="color:red;">*</span>
                          </div>
                    </td>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          {% render_field form.confirm_password %}
                          </div>
                    </td>
                    </tr>
                    <tr>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          <label for="name">Full Name:</label><span style="color:red;">*</span>
                          </div>
                    </td>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          {% render_field form.title %}{% render_field form.first_name %} {% render_field form.last_name %}
                          </div>
                    </td>
                    </tr>
                    <tr>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          <label for="contact">Contact:</label><span style="color:red;">*</span>
                          </div>
                    </td>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          {% render_field form.phone %}
                          </div>
                    </td>
                    </tr>
                    <tr>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline" style="word-wrap: break-word;">
                          <label for="institute">Institue/ Organization/ Company:</label><span style="color:red;">*</span>
                          </div>
                    </td>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline" style="word-wrap: break-word;">
                          {% render_field form.institute %}<br><span style="font-size: 12px;">Enter your institute/ organisation/ company</span>
                          </div>
                    </td>
                    </tr>
                    <tr>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline" style="word-wrap: break-word;">
                          <label for="position">Position:</label><span style="color:red;">*</span>
                          </div>
                    </td>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline" style="word-wrap: break-word;">
                          {% render_field form.position %}<br><span style="font-size: 12px;"></span>
                          </div>
                    </td>
                    </tr>
                    <tr>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          <label for="state" style="word-wrap: break-word;">State:</label><span style="color:red;">*</span>
                          </div>
                    </td>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          {% render_field form.state %}
                          </div>
                    </tr>
                     <tr>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          <label for="state" style="word-wrap: break-word;">City:</label><span style="color:red;">*</span>
                          </div>
                    </td>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          {% render_field form.city %}
                          </div>
                    </tr>
                     <tr>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          <label for="state" style="word-wrap: break-word;">Pincode:</label><span style="color:red;">*</span>
                          </div>
                    </td>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          {% render_field form.pincode %}
                          </div>
                    </tr>
                    <tr> 
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          <label for="how_did_you_hear_about_us" style="word-wrap: break-word;">How did you hear about us:</label><span style="color:red;">*</span>
                          </div>
                    </td>
                    <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          {% render_field form.how_did_you_hear_about_us %}
                          </div>
                    </td>
                    </tr>
                    <tr>
                   <!-- <td style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          </div>
                    </td> -->
                    <td colspan="2" style="vertical-align:bottom;border-top:none;!important">
                          <div class="align-baseline">
                          <span style="color:red;">*</span> marked fields are mandatory. Please enter the correct information. It will help us to solve your issues in short timespan.
                          </div>
                    </td>
                    </tr>
                    </table>
                    </div>
                    </div>
                    <center>
                    <div class="btn-group" role="group" aria-label="Third group">
                        <button class="btn btn btn-success" type="submit">Sign Up</button>
                  </div>
                  <div class="btn-group" role="group" aria-label="Third group">
                        <a class="btn btn btn-warning" href="{% url 'arduino_blog:user_login' %}">I have an account</a>
                  </div>
                  </center>
                <!-- </div> -->
            </form>
            <br>
            </div>
        <!--</div>-->
       </section>
{% endblock %}