Skip to content

Instantly share code, notes, and snippets.

View GunpreetAhuja's full-sized avatar

Gunpreet Ahuja GunpreetAhuja

View GitHub Profile
@GunpreetAhuja
GunpreetAhuja / list_post.html
Last active August 8, 2017 17:31
Add a pop up for delete
<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#myModal">Delete</button>
#modal
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<!DOCTYPE html>
{% load static %}
<html>
<head>
<link href="{% static "infohub/bootstrap-3.3.5-dist/css/bootstrap.min.css" %}" rel="stylesheet">
<link href="{% static "malaria/style.css" %}" rel="stylesheet">
<link href="{% static "malaria/sticky-footer.css" %}" rel="stylesheet">
</head>
<body>
import os
from infohub.config import *
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
SITE_ID = 1
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
<html>
<head>
<style>
#image {
position: fixed;
}
</style>
</head>
<body>
<body class= "transport">
<form action="/catalog/transport/" method="POST">{% csrf_token %}
<div id="frm">
{{TransportFormA.as_p}}
<div class="item" id="itm" style="display:none;">
{{TransportFormB.as_p}}
</div>
<html>
<head>
<style type="text/css">
span.s1{margin-left: 9%;}
span.s2{margin-left: 8%;}
span.s3{margin-left: 10%;}
span.sm{margin-left: 4%;}
</style>
<title>Transport</title>
<html>
<head>
<style type="text/css">
span.s1{margin-left: 9%;}
span.s2{margin-left: 8%;}
span.s3{margin-left: 10%;}
span.sm{margin-left: 4%;}
</style>
<title>Transport</title>
<html>
<head>
<style type="text/css">
span.s1{margin-left: 9%;}
span.s2{margin-left: 8%;}
span.s3{margin-left: 10%;}
span.sm{margin-left: 4%;}
</style>
<title>Transport</title>
<html>
<head>
<meta http-equiv="refresh" content="15">
<style type="text/css">
h1{margin-left: 30%;}
h1.as{margin-left: 35%;}
table{width: 60%; margin-left:15%;}
from django.shortcuts import render
from librehatti.bills.models import QuotedOrder, QuotedItem
from librehatti.catalog.models import *
from django.contrib.auth.models import User
import useraccounts
from django.db.models import Sum
def proforma(request):
QuotedItem_list = QuotedItem.objects.all()