def quotation():
response.flash = T("PLEASE UNDERSTAND THAT ALL THE QUOTED ITEMS WILL BE ENTERED AND QUOTED ONE ITEM AT A TIME")
quotation=db.Client_Details(request.args(0, cast=int))
db.quotation.customer.default=quotation.id
return locals()
def quotationLoad():
form=SQLFORM(db.quotation)
if form.process().accepted:
response.flash=T('Client Quoted')
return locals()
{{=form}}
{{extend 'layout.html'}}
<script>
$(document).ready(function() {
var interval = setInterval(function() {
var momentNow = moment();
$('#date-part').html(momentNow.format('DD MMMM YYYY') + ' '+ momentNow.format('dddd').substring(0,3).toUpperCase());
$('#time-part').html(momentNow.format('hh:mm:ss A'));
}, 100);
});
</script>
{{block header}}
<div class="jumbotron jumbotron-fluid" style="background-color: #333; color:white; padding:30px;word-wrap:break-word;">
<div class="container center">
<div class="appLogo2">PIQ v1.0</div>
<div id="loginDetails">
<span id='date-part'></span> | <span id="time-part"></span> | <span id="user" >Logged In User: {{if auth.user:}}{{=auth.user.first_name}} {{=auth.user.last_name}}</span> <span id="logout" class="glyphicon glyphicon-log-out">{{=A('LOGOUT', _id="logingOut", _class="btn btn-info btn-lg", _href=URL('default', 'user', args='logout'))}}</span>
{{pass}}
</div>
</div>
</div>
{{end}}
<div id="bookings" style="border: solid 2px grey; border-radius: 10px; box-shadow: 10px 8px #888888; padding: 10px;">
<div id="quote" class="formTitle">QUOTE A CLIENT</div>
<div style="border: solid 1px red; border-radius: 10px; padding: 2px; font-style: italic; font-weight: bold;">
<center>You are advised to Quote up to a maximum of 20 items in a single Quotation for a clear and readable Quotation.</center>
</div>
<br />
{{=LOAD('default', 'quotationLoad.load', ajax=True)}}</div>
<button onclick="topFunction()" id="myBtn" title="Go to top">TOP</button>
def quotation():
response.flash = T("PLEASE UNDERSTAND THAT ALL THE QUOTED ITEMS WILL BE ENTERED AND QUOTED ONE ITEM AT A TIME")
session.quotation=db.Client_Details(request.args(0, cast=int))
return locals()
def quotationLoad():
db.quotation.customer.default=session.quotation.id
form=SQLFORM(db.quotation)
if form.process().accepted:
response.flash=T('Client Quoted')
return locals()
{{extend 'layout.html'}}
<script>
$(document).ready(function() {
var interval = setInterval(function() {
var momentNow = moment();
$('#date-part').html(momentNow.format('DD MMMM YYYY') + ' '+ momentNow.format('dddd').substring(0,3).toUpperCase());
$('#time-part').html(momentNow.format('hh:mm:ss A'));
}, 100);
});
</script>
{{block header}}
<div class="jumbotron jumbotron-fluid" style="background-color: #333; color:white; padding:30px;word-wrap:break-word;">
<div class="container center">
<div class="appLogo2">PIQ v1.0</div>
<div id="loginDetails">
<span id='date-part'></span> | <span id="time-part"></span> | <span id="user" >Logged In User: {{if auth.user:}}{{=auth.user.first_name}} {{=auth.user.last_name}}</span> <span id="logout" class="glyphicon glyphicon-log-out">{{=A('LOGOUT', _id="logingOut", _class="btn btn-info btn-lg", _href=URL('default', 'user', args='logout'))}}</span>
{{pass}}
</div>
</div>
<
/div>
{{end}}
<div id="bookings" style="border: solid 2px grey; border-radius: 10px; box-shadow: 10px 8px #888888; padding: 10px;">
<div id="viewQuotation">
{{=A('View Quotation', _href=URL('View_Quotation', args=session.quotation.id))}}
</div>
<div id="quote" class="formTitle">QUOTE A CLIENT</div>
<div style="border: solid 1px red; border-radius: 10px; padding: 2px; font-style: italic; font-weight: bold;">
<center>You are advised to Quote up to a maximum of 20 items in a single Quotation for a clear and readable Quotation.</center>
</div>
<br />
{{=LOAD('default', 'quotationLoad.load', ajax=True)}}</div>
</div>
<button onclick="topFunction()" id="myBtn" title="Go to top">TOP</button>
{{=form}}