Traceback (most recent call last):
File "/home/tridotscore/johnhenry/apps/frappe/frappe/utils/jinja.py", line 79, in render_template
return get_jenv().from_string(template).render(context)
File "/home/tridotscore/johnhenry/env/lib/python3.5/site-packages/jinja2/environment.py", line 1090, in render
self.environment.handle_exception()
File "/home/tridotscore/johnhenry/env/lib/python3.5/site-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/home/tridotscore/johnhenry/env/lib/python3.5/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "<template>", line 1, in top-level template code
File "/home/tridotscore/johnhenry/apps/cmswebsite/cmswebsite/./templates/pages/adminweb.html", line 90, in top-level template code
{% block body %}
File "/home/tridotscore/johnhenry/apps/cmswebsite/cmswebsite/./templates/pages/adminweb.html", line 145, in block "body"
{%- endif %} {%- endblock -%} {%- block navbar -%} {% include "templates/Layout/adminnavbar.html" %} {%- endblock -%}
File "/home/tridotscore/johnhenry/apps/cmswebsite/cmswebsite/./templates/pages/adminweb.html", line 145, in block "navbar"
{%- endif %} {%- endblock -%} {%- block navbar -%} {% include "templates/Layout/adminnavbar.html" %} {%- endblock -%}
jinja2.exceptions.TemplateNotFound: templates/Layout/adminnavbar.html
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/tridotscore/johnhenry/apps/frappe/frappe/website/render.py", line 47, in render
data = render_page_by_language(path)
File "/home/tridotscore/johnhenry/apps/frappe/frappe/website/render.py", line 151, in render_page_by_language
return render_page(path)
File "/home/tridotscore/johnhenry/apps/frappe/frappe/website/render.py", line 167, in render_page
return build(path)
File "/home/tridotscore/johnhenry/apps/frappe/frappe/website/render.py", line 174, in build
return build_page(path)
File "/home/tridotscore/johnhenry/apps/frappe/frappe/website/render.py", line 190, in build_page
html = frappe.render_template(context.source, context)
File "/home/tridotscore/johnhenry/apps/frappe/frappe/utils/jinja.py", line 81, in render_template
throw(title="Jinja Template Error", msg="<pre>{template}</pre><pre>{tb}</pre>".format(template=template, tb=get_traceback()))
File "/home/tridotscore/johnhenry/apps/frappe/frappe/__init__.py", line 364, in throw
msgprint(msg, raise_exception=exc, title=title, indicator='red')
File "/home/tridotscore/johnhenry/apps/frappe/frappe/__init__.py", line 350, in msgprint
_raise_exception()
File "/home/tridotscore/johnhenry/apps/frappe/frappe/__init__.py", line 316, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.ValidationError: <pre>{% extends "templates/pages/adminweb.html" %}
{% block title %}
{{MetaTitle}}
{% endblock %}
{% block meta_block %}
<meta name="description" content="{{MetaDescription}}">
<meta name="keywords" content="{{MetaKeywords}}">
{% endblock %}
{% block content %}
<!--Page header & Title-->
<!--Page header & Title-->
<section id="page_header">
<div class="page_title">
<div class="container">
<div class="row">
<div class="col-md-12">
<h2 class="title">Contact Us</h2>
<p class="text-r"><a href="homepage">Home</a> / Contact Us</p>
</div>
</div>
</div>
</div>
</section>
<!--Contact Form & Address-->
<section class="padding pos-rel">
<img src="/assets/frappe/images/news-left.png" class="h-new-left-img" style=" width: 140px;">
<img src="/assets/frappe/images/news-left.png" class="h-new-res-right-img">
<div class="container order-page">
<div class="row">
<div class="col-md-8 col-sm-8">
<h2 class="heading">Get in Touch</h2>
<hr class="heading_space">
<form class="callus" onSubmit="return false" id="contact_form">
<div class="row">
<div class="col-md-12">
<div id="result" class="text-center form-group"></div>
</div>
<div class="col-md-6">
<div class="form-group">
<input class="form-control" type="text" name="first_name" id="first_name" placeholder="First Name" required />
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<input class="form-control" type="text" name="last_name" id="last_name" placeholder="Last Name" required />
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<input class="form-control" type="email" name="email_id" id="email_id" placeholder="Email Address" required />
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<input class="form-control" type="text" name="phone" id="phone" required placeholder="Phone No">
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<textarea placeholder="Message" name="message" id="message"></textarea>
</div>
<div class="form-group">
<div class="btn-submit button3">
<input type="submit" title="Submit" value="Submit" name="Submit">
</div>
</div>
</div>
</div>
</form>
</div>
<div class="col-md-4 col-sm-4 bistro">
{% if RestName %}
<h2 class="heading">Haweli</h2>
<input type="hidden" name="hdnRestaurantId" id="hdnRestaurantId" value="{{RestName[0].name}}">
<hr class="half_space">
<p>{{RestName[0].restaurant_name}}</p>
<p class="address"><i class="fa fa-map-marker" style="margin-right: 10px;"></i>{% if RestName[0].business_address %}{{RestName[0].business_address}},{% endif %}{% if RestName[0].city %}{{RestName[0].city}}{% endif %},{% if RestName[0].state %}<br/>{{RestName[0].state}},{% endif %}{% if RestName[0].country %}{{RestName[0].country}}{% if RestName[0].zip_code %}-{{RestName[0].zip_code}}{% endif %}.{% endif %}</p>
<p class="address"><i class="fa fa-phone con-icon" style="margin-right: 10px;"></i>{{RestName[0].business_phone}}</p>
<p class="address"><i class="icon-dollar con-icon" style="margin-right: 10px;"></i><a href="mailto:{{RestName[0].contact_email}}">{{RestName[0].contact_email}}</a></p>
<!-- <hr class="half_space">
<p>Haweli Restaurant (South Common)</p>
<p class="address"><i class="icon-location con-icon"></i>2104 99 Street NW Edmonton, AB T6N 1L2</p>
<p class="address"><i class="fa fa-phone con-icon"></i>+1 (780) 469-7007</p>
<p class="address"><i class="icon-dollar con-icon"></i><a href="mailto:dinesouthcommon@hawelicanada.com">dinesouthcommon@hawelicanada.com</a></p> -->
<ul class="social_icon">
<li class="black"><a href="https://www.facebook.com/{{RestName[0].facebook}}" class="facebook"><i class="icon-facebook5"></i></a></li>
<li class="black"><a href="https://twitter.com/{{RestName[0].twitter}}" class="twitter"><i class="icon-twitter4"></i></a></li>
<li class="black"><a href="https://plus.google.com/{{RestName[0].youtube}}" class="google"><i class="icon-google"></i></a></li>
<li class="black"><a href="https://www.youtube.com/{{RestName[0].youtube}}" class="google"><i class="icon-youtube"></i></a></li>
</ul>
{% endif %}
</div>
</div>
</div>
</section>
<!--LOcation Map-->
<section class="padding bg_grey" id="location">
<div class="container">
<div class="row">
<div class="col-md-12">
<h2 class="heading mar-down">Downtown</h2>
<iframe src="https://www.google.com/maps/embed?pb=!1m22!1m8!1m3!1d18966.418056358572!2d-113.5086293!3d53.5434449!3m2!1i1024!2i768!4f13.1!4m11!3e6!4m3!3m2!1d53.5446684!2d-113.4975568!4m5!1s0x53a0224893d0514f%3A0xf0e6ee6f48a8223!2s109%2C+10220+103+St+NW%2C+Edmonton%2C+AB+T5J+0Y8%2C+Canada!3m2!1d53.543479999999995!2d-113.4977744!5e0!3m2!1sen!2sin!4v1538142634663" width="100%" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>
</div>
</div>
</div>
</section>
{% endblock %}
{% block script %}
<script type="text/javascript">
$(document).ready(function() {
try{
$("#contact_form").submit(function(e){
// console.log("sub")
e.preventDefault();
frappe.call({
method: "frappe.client.insert",
args: {
doc:{
"doctype":"Contact Enquiries",
"contact_name":$("#first_name").val()+' '+$('#last_name').val(),
"email":$("#email_id").val(),
"phone":$("#phone").val(),
"message":$("#message").val(),
"restaurant":$('#hdnRestaurantId').val()
}
},
callback: function(Responseresult) {
$('html, body').animate({
scrollTop: 0
}, 2000);
// $('.succ-box').show();
$('#first_name').val("")
$('#last_name').val("")
$('#email_id').val("")
$('#phone').val("")
$('#message').val("")
frappe.msgprint("Your enquiry has been submitted successfully.")
// setTimeout(function(){ $("#PaymentBackBtn").show();
// $('.succ-box').hide(); }, 5000);
}
});
});
}
catch(e){
var err = e.toString();
frappe.call({
method:'ecommerce_business_store.ecommerce_business_store.api.error_log',
args:{
'err':err,
'title':"cmswebsite.cmswebsite.templates.pages.contactus.ready(function()"
},
callback:function(data){
}
})
}
})
</script>
{% endblock %}</pre><pre>Traceback (most recent call last):
File "/home/tridotscore/johnhenry/apps/frappe/frappe/utils/jinja.py", line 79, in render_template
return get_jenv().from_string(template).render(context)
File "/home/tridotscore/johnhenry/env/lib/python3.5/site-packages/jinja2/environment.py", line 1090, in render
self.environment.handle_exception()
File "/home/tridotscore/johnhenry/env/lib/python3.5/site-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/home/tridotscore/johnhenry/env/lib/python3.5/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "<template>", line 1, in top-level template code
File "/home/tridotscore/johnhenry/apps/cmswebsite/cmswebsite/./templates/pages/adminweb.html", line 90, in top-level template code
{% block body %}
File "/home/tridotscore/johnhenry/apps/cmswebsite/cmswebsite/./templates/pages/adminweb.html", line 145, in block "body"
{%- endif %} {%- endblock -%} {%- block navbar -%} {% include "templates/Layout/adminnavbar.html" %} {%- endblock -%}
File "/home/tridotscore/johnhenry/apps/cmswebsite/cmswebsite/./templates/pages/adminweb.html", line 145, in block "navbar"
{%- endif %} {%- endblock -%} {%- block navbar -%} {% include "templates/Layout/adminnavbar.html" %} {%- endblock -%}
jinja2.exceptions.TemplateNotFound: templates/Layout/adminnavbar.html
</pre>