Insurance Management Synopsis Akash Negii
Insurance Management Synopsis Akash Negii
Insurance Management Synopsis Akash Negii
SYNOPSIS’ CODE
{% extends 'customer/customerbase.html' %}
{% block content %}
{%load static%}
<head>
<link
href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.cs
s" rel="stylesheet" id="bootstrap-css">
<script
src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js">
</script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<style media="screen">
a:link {
text-decoration: none;
}
h6 {
text-align: center;
}
.row {
margin: 100px;
}
label #sidebar_btn {
z-index: 1;
color: #fff;
position: fixed;
cursor: pointer;
left: 300px;
padding-left: 60px;
margin-top:15px;
font-size: 20px;
transition: 0.5s;
transition-property: color;
}
</style>
</head>
<br><br>
<div class="container">
<div class="panel panel-primary">
<div class="panel-heading">
<h6 class="panel-title">Available Policies</h6>
</div>
<table class="table table-hover" id="dev-table">
<thead>
<tr>
<th>Serial No.</th>
<th>Policy Name</th>
<th> Category</th>
<th> Sum Assurance</th>
<th> Premium</th>
<th> Tenure</th>
<th> Creation Date</th>
<th> Apply</th>
</tr>
</thead>
{% for t in policies %}
<tr>
<td> {{ forloop.counter }}</td>
<td> {{t.policy_name}}</td>
<td> {{t.category}}</td>
<td> {{t.sum_assurance}}</td>
<td> {{t.premium}}</td>
<td> {{t.tenure}}</td>
<td>{{t.creation_date}}</td>
<td><a class="btn btn-danger btn-xs" href="{% url 'apply'
t.id %}">Apply</a></td>
</tr>
{% endfor %}
</table>
</div>
</div>
<br><br><br><br><br><br>
{% endblock content %}
{% extends 'customer/customerbase.html' %}
{% load widget_tweaks %}
{% block content %}
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,
shrink-to-fit=no">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></
script>
<link
href="http://netdna.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.
css" rel="stylesheet">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css
">
<link
href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-
awesome.min.css" rel="stylesheet">
<style type="text/css">
a:link {
text-decoration: none;
}
.order-card {
color: rgb(255, 255, 255);
}
.bg-c-blue {
background: #04868f;
}
.bg-c-green {
background:#4C51BF;
}
.bg-c-yellow {
background: #F56565;
}
.bg-c-pink {
background: #663a30;
}
.card {
-webkit-box-shadow: 0 1px 2.94px 0.06px rgba(4, 26, 55, 0.16);
box-shadow: 0 1px 2.94px 0.06px rgba(4, 26, 55, 0.16);
border: 1px solid black;
margin-bottom: 30px;
-webkit-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.card .card-block {
padding: 25px;
}
.order-card i {
font-size: 26px;
}
.f-left {
float: left;
}
.f-right {
float: right;
}
header {
left: 0px;
right: 0px;
}
</style>
</head>
<div class="container">
<div class="row">
<div class="col-md-4 col-xl-3">
<div class="card bg-success order-card">
<div class="card-block">
<h6 class="m-b-20"> <a href="apply-policy" style="text-decoration:
none;color:white;">Available Policy</a> </h6>
<h2 class="text-right"><i class="fab fa-product-hunt f-
left"></i><span>{{available_policy}}</span></h2>
</div>
</div>
</div>
<div class="col-md-4 col-xl-3">
<div class="card bg-primary order-card">
<div class="card-block">
<h6 class="m-b-20"><a href="history" style="text-decoration:
none;color:white;">Applied Policy</a> </h6>
<h2 class="text-right"><i class="fab fa-product-hunt f-
left"></i><span>{{applied_policy}}</span></h2>
</div>
</div>
</div>
<div class="col-md-4 col-xl-3">
<div class="card bg-danger order-card">
<div class="card-block">
<h6 class="m-b-20"><a href="/" style="text-decoration:
none;color:white;">Policy Categories</a></h6>
<h2 class="text-right"><i class="fas fa-list-alt f-
left"></i><span>{{total_category}}</span></h2>
</div>
</div>
</div>
<div class="col-md-4 col-xl-3">
<div class="card bg-warning order-card">
<div class="card-block">
<h6 class="m-b-20"><a href="question-history" style="text-
decoration: none;color:white;">Total Question Asked</a></h6>
<h2 class="text-right"><i class="fas fa-question-circle f-
left"></i><span>{{total_question}}</span></h2>
</div>
</div>
</div>
</div>
</div>
<br><br><br><br><br><br><br><br><br><br>
<script
src="http://netdna.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
></script>
{% endblock content %}
<!DOCTYPE html>
{% load widget_tweaks %}
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<style>
form{
margin: 50px;
}
</style>
</head>
<body>
{% include "insurance/navbar.html" %}
<br><br><br>
<h3 style="text-align: center;color: red;">CUSTOMER SIGNUP</h3>
<form method="POST" autocomplete="off" enctype="multipart/form-
data">
{% csrf_token %}
<div class="form-row">
<div class="form-group col-md-6">
<label for="username">Username</label>
{% render_field userForm.username|attr:'required:true' class="form-
control" placeholder="username" %}
</div>
<div class="form-group col-md-6">
<label for="inputPassword4">Password</label>
{% render_field userForm.password|attr:'required:true' class="form-
control" placeholder="password" %}
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="first_name">First Name</label>
{% render_field userForm.first_name|attr:'required:true' class="form-
control" placeholder="First Name" %}
</div>
<div class="form-group col-md-6">
<label for="last_name">Last Name</label>
{% render_field userForm.last_name|attr:'required:true' class="form-
control" placeholder="Last Name" %}
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="mobile">Mobile</label>
{% render_field customerForm.mobile|
attr:'required:true' class="form-control" placeholder="Mobile" %}
</div>
<div class="form-group col-md-6">
<label for="address">Address</label>
{% render_field customerForm.address|
attr:'required:true' class="form-control" placeholder="Address" %}
</div>
</div>
<div class="form-row">
<div class="form-group col-md-12">
<label for="profile_pic">Profile Picture</label>
{% render_field customerForm.profile_pic|attr:'required:true'
class="form-control" placeholder="" %}
</div>
</div>
<button type="submit" class="btn btn-primary">Sign Up</button>
</form>
<br><br>
{% include "insurance/footer.html" %}
</body></html>