2017-07-14 20:30:00 -05:00
|
|
|
## -*- coding: utf-8; -*-
|
2015-08-12 00:46:39 -05:00
|
|
|
<%inherit file="/master/view.mako" />
|
|
|
|
|
|
|
|
<%def name="head_tags()">
|
|
|
|
${parent.head_tags()}
|
|
|
|
<style type="text/css">
|
|
|
|
|
|
|
|
div.form div.field-wrapper.format textarea {
|
|
|
|
font-size: 120%;
|
|
|
|
font-family: monospace;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
</%def>
|
|
|
|
|
|
|
|
<%def name="context_menu_items()">
|
|
|
|
${parent.context_menu_items()}
|
|
|
|
% if request.has_perm('labelprofiles.edit'):
|
|
|
|
<% printer = instance.get_printer(request.rattail_config) %>
|
|
|
|
% if printer and printer.required_settings:
|
|
|
|
<li>${h.link_to("Edit Printer Settings", url('labelprofiles.printer_settings', uuid=instance.uuid))}</li>
|
|
|
|
% endif
|
|
|
|
% endif
|
|
|
|
</%def>
|
|
|
|
|
|
|
|
${parent.body()}
|
|
|
|
|
|
|
|
<% printer = instance.get_printer(request.rattail_config) %>
|
|
|
|
% if printer and printer.required_settings:
|
|
|
|
<h2>Printer Settings</h2>
|
|
|
|
|
|
|
|
<div class="form">
|
2018-02-12 14:41:40 -06:00
|
|
|
% for name, display in printer.required_settings.items():
|
2015-08-12 00:46:39 -05:00
|
|
|
<div class="field-wrapper">
|
|
|
|
<label>${display}</label>
|
|
|
|
<div class="field">${instance.get_printer_setting(name) or ''}</div>
|
|
|
|
</div>
|
|
|
|
% endfor
|
|
|
|
</div>
|
|
|
|
|
|
|
|
% endif
|