summaryrefslogtreecommitdiff
path: root/arduino_blog/templates
diff options
context:
space:
mode:
Diffstat (limited to 'arduino_blog/templates')
-rw-r--r--arduino_blog/templates/activation-status.html64
-rw-r--r--arduino_blog/templates/base.html11
-rw-r--r--arduino_blog/templates/footer.html17
-rw-r--r--arduino_blog/templates/header.html24
-rw-r--r--arduino_blog/templates/home.html26
-rw-r--r--arduino_blog/templates/index.html5
-rw-r--r--arduino_blog/templates/login.html45
-rw-r--r--arduino_blog/templates/navbar.html54
-rw-r--r--arduino_blog/templates/submit-cfp.html68
-rw-r--r--arduino_blog/templates/user-register.html196
10 files changed, 510 insertions, 0 deletions
diff --git a/arduino_blog/templates/activation-status.html b/arduino_blog/templates/activation-status.html
new file mode 100644
index 0000000..a9764cb
--- /dev/null
+++ b/arduino_blog/templates/activation-status.html
@@ -0,0 +1,64 @@
+{% extends "base.html" %}
+
+{% block css%}
+ <link rel="stylesheet" href="{{ URL_ROOT }}/static/yaksh/css/dashboard.css" type="text/css" />
+{% endblock %}
+{% block content %}
+{% if success %}
+ <center>
+ <div class="alert alert-success" role="alert">
+ <strong> {{ msg }} </strong>
+ </div>
+ <!-- <a href="{{URL_ROOT}}/exam/"> Home </a> -->
+ </center>
+{% else %}
+ {% if msg %}
+ <center>
+ <div class="alert alert-warning" role="alert">
+ <strong> {{ msg }} </strong>
+ </div>
+ </center>
+ <form action="{% url 'arduino_blog:new_activation' %}" method="post">
+ {% csrf_token %}
+ <center>
+ Enter Email Address for verification: <input type="email" name="email" required><br><br>
+ <button class="btn" type="submit">Send Email</button>
+ </center>
+ </form>
+ {% endif %}
+{% endif %}
+<br/>
+{% if activation_msg %}
+ <center>
+ <div class="alert alert-info" role="alert">
+ <strong> {{ activation_msg }} </strong>
+ </div>
+ <!-- <a href="{{URL_ROOT}}"> Home </a> -->
+ </center>
+{% endif %}
+
+{% if email_err_msg %}
+ <center>
+ <div class="alert alert-warning" role="alert">
+ <strong> {{ email_err_msg }} </strong>
+ </div>
+ </center>
+ <form action="{{ URL_ROOT }}/exam/update_email/" method="post">
+ {% csrf_token %}
+ <center>
+ <table>
+ <tr>
+ <td>Enter Username:</td>
+ <td><input type="text" name="username" required></td>
+ </tr>
+ <tr>
+ <td>Enter New Email Address:</td>
+ <td><input type="email" name="email" required></td>
+ </tr>
+ </table>
+ <br>
+ <button class="btn" type="submit">Submit</button>
+ </center>
+ </form>
+{% endif %}
+{% endblock content %}
diff --git a/arduino_blog/templates/base.html b/arduino_blog/templates/base.html
new file mode 100644
index 0000000..253f3a2
--- /dev/null
+++ b/arduino_blog/templates/base.html
@@ -0,0 +1,11 @@
+{% load static %}
+<!DOCTYPE html>
+<html lang="en">
+ {% include 'header.html' %}
+ <body>
+ {% include 'navbar.html' %}
+ {% block content %}{% endblock content %}
+ {% include 'footer.html' %}
+ </body>
+</html>
+
diff --git a/arduino_blog/templates/footer.html b/arduino_blog/templates/footer.html
new file mode 100644
index 0000000..bff98bf
--- /dev/null
+++ b/arduino_blog/templates/footer.html
@@ -0,0 +1,17 @@
+
+{% load static %}
+<!-- Footer -->
+{% block footer %}
+
+ <footer class="site-footer">
+ <div class="container">
+ <div class="row">
+ <div class="col-md-12">
+ <center style="color:white;font-size: 10px;">
+ This work is licensed under a <a target="_blank" href="http://creativecommons.org/licenses/by-sa/4.0/" style="color:#ceab6a;">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
+ </center>
+ </div>
+ </div>
+ </div>
+ </footer>
+{% endblock %} \ No newline at end of file
diff --git a/arduino_blog/templates/header.html b/arduino_blog/templates/header.html
new file mode 100644
index 0000000..1e90191
--- /dev/null
+++ b/arduino_blog/templates/header.html
@@ -0,0 +1,24 @@
+{% load static %}
+<!-- Header-->
+{% block header %}
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="title" content="Arduino Projects">
+ <meta name="description" content="Arduino Projects">
+ <meta name="keywords" content="Arduino, projects, github">
+ <link rel="icon" href="{% static 'website/bootstrap-css/assets/images/logo.png' %}" type="icon">
+ <title>Arduino Projects</title>
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
+ <script>
+ function countChar(val) {
+ var len = val.value.length;
+ var count = $('#charNum').text(0 + len);
+ };
+ </script>
+</head>
+
+{% endblock %} \ No newline at end of file
diff --git a/arduino_blog/templates/home.html b/arduino_blog/templates/home.html
new file mode 100644
index 0000000..18b55c7
--- /dev/null
+++ b/arduino_blog/templates/home.html
@@ -0,0 +1,26 @@
+
+{% load widget_tweaks %}
+{% load static %}
+<!-- Navigation -->
+{% block home %}
+
+<div class="container-fluid text-center">
+ <div class="row content">
+ <br><br><br><br>
+ <div class="col-sm-2">
+
+ </div>
+ <div class="col-sm-8 text-left">
+ <h1>Welcome</h1>
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
+ <hr>
+ <h3>Test</h3>
+ <p>Lorem ipsum...</p>
+ </div>
+ <div class="col-sm-2 sidenav">
+
+ </div>
+ </div>
+</div>
+</div>
+{% endblock %} \ No newline at end of file
diff --git a/arduino_blog/templates/index.html b/arduino_blog/templates/index.html
new file mode 100644
index 0000000..cc7f0ab
--- /dev/null
+++ b/arduino_blog/templates/index.html
@@ -0,0 +1,5 @@
+{% extends "base.html" %}
+{% load static %}
+ {% block content %}
+ {% include 'home.html' %}
+ {% endblock %} \ No newline at end of file
diff --git a/arduino_blog/templates/login.html b/arduino_blog/templates/login.html
new file mode 100644
index 0000000..4010ec1
--- /dev/null
+++ b/arduino_blog/templates/login.html
@@ -0,0 +1,45 @@
+{% extends "base.html" %}
+
+{% load widget_tweaks %}
+{% load static %}
+{% block content %}
+ <section id="cfp" class="section cfp">
+ <div class="container">
+ <p>
+ <center>
+ {% if user and not user.is_anonymous %}
+ <h2>Submit Proposal </h2>
+ {% else %}
+ <h2>Login</h2>
+ {% endif %}
+ </center>
+ </p>
+ {% if registration_complete %}
+ <center>
+ <p>Thank You for your registration. You can now log in by clicking
+ <a href="{% url 'arduino_blog:user_login' %}">here!</a>
+ </p>
+ <br/>
+ <br/>
+ </center>
+ {% endif %}
+
+ <form action="" method="POST">
+ {% csrf_token %}
+ {{ form.as_p }}
+ <button class="button special" name ="login" type="submit">Login</button>
+ <br/>
+ <br/>
+ <a style="padding-right : 20px;" href="{% url 'arduino_blog:user_register' %}" class="btn btn btn-primary">Create an Account
+ </a>
+ <!-- <br><br>
+ <a href="/2019/forgotpassword/" class="btn btn-primary">Forgot Password?</a> -->
+ </form>
+ </p>
+ <br>
+ </div>
+
+ </section>
+ {% endblock %}
+
+
diff --git a/arduino_blog/templates/navbar.html b/arduino_blog/templates/navbar.html
new file mode 100644
index 0000000..a405e66
--- /dev/null
+++ b/arduino_blog/templates/navbar.html
@@ -0,0 +1,54 @@
+{% load static %}
+<!-- Navigation -->
+{% block nav %}
+ <nav id="site-nav" class="navbar navbar-fixed-top navbar-custom">
+ <div class="container">
+ <div class="navbar-header">
+ <!-- logo -->
+ <div class="site-branding">
+ <a class="logo" href="{{SITE_URL}}">
+ </a>
+ </div>
+
+ <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-items" aria-expanded="false">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+
+ </div><!-- /.navbar-header -->
+
+ <div class="collapse navbar-collapse" id="navbar-items">
+ <ul class="nav navbar-nav navbar-right">
+
+ <!-- navigation menu -->
+ <li class="active"><a data-scroll href="{{SITE_URL}}/#about">About</a></li>
+ <li><a data-scroll href="{{SITE_URL}}/#contact-us">Contact Us</a></li>
+ {% if user.is_authenticated %}
+ <li class="dropdown">
+ <a class="dropdown-toggle" data-toggle="dropdown" href="{% url 'auth:login' %}" >
+ <i class="fa fa-user" aria-hidden="true"></i>
+ {{ user.username }}!<span class="caret"></span>
+ </a>
+ {% if user.profile.is_email_verified %}
+ <ul class="dropdown-menu">
+ <li><a href="{% url 'arduino_blog:submitabstract' %}">Submit Abstract</a></li>
+ <li><a href="{% url 'arduino_blog:user_logout' %}"><i class="fa fa-sign-out"></i>&nbsp;Logout</a></li>
+ </ul>
+ {% else %}
+ <ul class="dropdown-menu">
+ <li><a href="{% url 'arduino_blog:user_logout' %}"><i class="fa fa-sign-out"></i>&nbsp;Logout</a></li>
+ </ul>
+ {% endif %}
+ </li>
+ {% else %}
+ <li><a href="{% url 'arduino_blog:user_login' %}">Login</a></li>
+ {% endif %}
+ </ul>
+
+ </div>
+ </div><!-- /.container -->
+ </nav>
+
+{% endblock %} \ No newline at end of file
diff --git a/arduino_blog/templates/submit-cfp.html b/arduino_blog/templates/submit-cfp.html
new file mode 100644
index 0000000..9d5c6f3
--- /dev/null
+++ b/arduino_blog/templates/submit-cfp.html
@@ -0,0 +1,68 @@
+{% extends "base.html" %}
+
+{% load widget_tweaks %}
+{% load static %}
+{% block content %}
+
+<section id="view_proposal" class="section view_proposal">
+ <div class="container">
+ <br>
+ <center>
+ <h1>Submit Proposal</h1>
+ </center>
+ <hr>
+ <div class="row">
+ <form action="" method=POST enctype="multipart/form-data">
+ <div class="form-group">
+ <label for="name_of_author">Name of the author
+ <span style="color:red;">*</span>:
+ </label>
+ <input class="form-control" id="your_name" type="text" name="your_name" value="{{ user.first_name }} {{ user.last_name }}" disabled>
+
+ </div>
+ <div class="form-group">
+ <label for="about_the_author">About the author
+ <span style="color:red;">*</span>:
+ </label>
+ {% render_field proposal_form.about_the_author %}
+ </div>
+ <div class="form-group">
+ <label for="title_of_the_project">Title of the Project
+ <span style="color:red;">*</span>:
+ </label>
+ {% render_field proposal_form.title_of_the_project %}
+ </div>
+ <div class="form-group">
+ <label for="abstract">Abstract (Min. 300 char.)
+
+ <span style="color:red;">*</span>:
+
+ </label>
+ {% render_field proposal_form.abstract %}
+ <label>Charater count:
+ <div id="charNum"></div>
+ </label>
+ </div>
+ <div class="form-group">
+ <label for="attachment">Attachments:</label>
+ {% render_field proposal_form.attachment %}
+ </div>
+ <div class="form-inline">
+ <div class="checkbox">
+ {% render_field proposal_form.terms_and_conditions %}
+ <label for="terms_and_conditions">I agree to the terms and conditions
+ <span style="color:red;">*</span>
+ </label>
+
+ </div>
+ </div>
+ {% csrf_token %}
+ <center>
+ <button id="subbtn" class="btn btn-info" type="submit" >Submit</button>
+ <a href="#" class="btn btn-info" role="button">Back</a>
+ </center>
+ </form>
+ </div>
+ </div>
+ </section>
+{% endblock %}
diff --git a/arduino_blog/templates/user-register.html b/arduino_blog/templates/user-register.html
new file mode 100644
index 0000000..cf3e38a
--- /dev/null
+++ b/arduino_blog/templates/user-register.html
@@ -0,0 +1,196 @@
+{% 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">
+ <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>
+ <div class="row">
+ <center>
+ <div class="col-sm-4"> <a class="btn btn-link btn-block" href="{% url 'arduino_blog:user_login' %}">I have an account</a></div>
+ <div class="col-sm-2"><button class="btn btn-primary btn-block" type="submit">Sign Up</button></div>
+ </center>
+ </div>
+ <!-- </div> -->
+ </form>
+ <br>
+ </div>
+ <!--</div>-->
+ </section>
+{% endblock %} \ No newline at end of file