55 lines
2.0 KiB
Django/Jinja
55 lines
2.0 KiB
Django/Jinja
{% extends "layout.html.jinja" %}
|
|
{% set title = "Helix Calculator" %}
|
|
{% block contents %}
|
|
{% if 'sfdc_export_urls' in context %}
|
|
{% if context['sfdc_export_error'] %}
|
|
<div class="summary_warning" style="margin-top: 20px;">{{ context['sfdc_export_error'] }}</div>
|
|
{% else %}
|
|
<div class="msg-container">Documents exported to Salesforce successfully.</div>
|
|
{% endif %}
|
|
|
|
<ul class="msg-container">
|
|
{% if context['sfdc_export_urls']['dxfUrl'] %}
|
|
<li><a href="{{ context['sfdc_export_urls']['dxfUrl'] }}">DXF file</a> (uploaded on Helix)</li>
|
|
{% else %}
|
|
<li><a href="{{ context['sfdc_export_urls']['dxfUrlFromSF'] }}">DXF file</a> (uploaded on Salesforce)</li>
|
|
{% endif %}
|
|
<li><a href="{{ context['sfdc_export_urls']['documentationUrl'] }}">Documentation file</a></li>
|
|
<li><a href="{{ context['sfdc_export_urls']['bomCsvUrl'] }}">BOM CSV file</a></li>
|
|
<li><a href="{{ context['sfdc_export_urls']['bomJsonUrl'] }}">BOM JSON file</a></li>
|
|
</ul>
|
|
{% endif %}
|
|
|
|
<div class="form_section">
|
|
<h3>Download</h3>
|
|
</div>
|
|
{% if context['csv_available'] %}
|
|
<div class="download">
|
|
<a href="/result">
|
|
<button>Download AutoCAD import file (.txt)</button>
|
|
</a>
|
|
</div>
|
|
<div class="download">
|
|
<a href="/documentation">
|
|
<button>Download Project Report (.pdf)</button>
|
|
</a>
|
|
</div>
|
|
<div class="download">
|
|
<a href="/bom">
|
|
<button>Download BOM (.txt)</button>
|
|
</a>
|
|
</div>
|
|
|
|
{% if 'sf_session' in session %}
|
|
<div class="download">
|
|
<a href="/export-sfdc">
|
|
<button>Export documents to Salesforce</button>
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
{% else %}
|
|
Please complete previous steps first!
|
|
{% endif %}
|
|
{% include "navigation_buttons.html.jinja" %}
|
|
{% endblock %}
|