| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| {% extends "base.html" %} |
| {% load static %} |
| {% block head %} |
| <link rel="stylesheet" href="{% static "css/product.css" %}"> |
| {% endblock %} |
| |
| {% block body %} |
| <h1>Product Instructions</h1> |
| |
| <div id="content"> |
| <iframe id="iframe" width="100%" height="100%" frameborder="0" src="{{product.instructions}}"></iframe> |
| </div> |
| |
| <!-- OT menu for access to task questions --> |
| <div id="ot_menu" class="ot-show"> |
| <div class="open-close" onclick="toggle();"> |
| <span class="glyphicon glyphicon-chevron-down"></span> |
| Task Menu |
| </div> |
| |
| <div class="ot-container"> |
| <form id="product_inst_complete" method="get" action="{% url 'op_tasks:instruct' read='product' %}"> |
| {% csrf_token %} |
| <button id="product_instructions_complete_button" class="btn btn-danger ot-open-btn" type="submit"> |
| I have read and I understand this information |
| </button> |
| </form> |
| </div> |
| </div> |
| |
| <script src="{% static "javascript/draper.activity_logger-2.1.1.js" %}"></script> |
| <script> |
| // web worker url |
| var worker = "{% static "javascript/draper.activity_worker-2.1.1.js" %}" |
| var ac = new activityLogger(worker) |
| .testing(false) // simulate POST, won't send log |
| .echo(true) // log to console |
| .mute(['SYS']); // don't log SYSTEM actions |
| </script> |
| <script src="{% static "javascript/task_logging.js" %}"></script> |
| <script src="{% static "javascript/product.js" %}"></script> |
| {% endblock %} |