<br><br><div class="gmail_quote">On 10 December 2012 13:38, Michael Sweet <span dir="ltr"><<a href="mailto:msweet@apple.com" target="_blank">msweet@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word">Alex,<div><br><div><div class="im"><div>On 2012-12-07, at 2:28 PM, Alex Korobkin <<a href="mailto:korobkin+cups@gmail.com" target="_blank">korobkin+cups@gmail.com</a>> wrote:</div>
<blockquote type="cite">
Hi all, <div><br></div><div>I want to see the checkbox "Share This Printer" to be checked by default, when adding a new printer to CUPS 1.5.4 via web interface. </div><div><br></div><div><div>add-printer.tmpl has this snippet:</div>



<div><br></div><div><font face="courier new, monospace"><TD><INPUT TYPE="CHECKBOX" NAME="PRINTER_IS_SHARED" {PRINTER_IS_SHARED=1?CHECKED:}></font></div></div><div><br></div><div>However, I don't see any examples of a checked box in other tmpl files. How to modify it to have this option checked by default? </div>

</blockquote><div><br></div></div>Just replace with:</div><div><br></div><div>    <TD><INPUT TYPE="CHECKBOX" NAME="PRINTER_IS_SHARED" CHECKED></div><div class="im"><div><br></div><div><blockquote type="cite">



<div>Also, why do printers that are certainly shared (and were created as shared) have "(Idle, Accepting Jobs, Not Shared)" displayed in the header when you open them in web interface?</div></blockquote></div><div>

<br></div></div><div>The value shown depends on whether printer sharing is enabled on the server (a printer might be shared but if sharing is not enabled then it will still not be sharable, if that makes sense?)</div><div>

<br></div></div></div></blockquote><div><br></div><div>That's cupsctl --share-printers --remote-any, it seems. </div><div>Thanks for the hints, Michael!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word"><div><div></div><div>
<span style="border-collapse:separate;font-family:Helvetica;border-spacing:0px"><div>__________________________________________________</div><div>Michael Sweet, Senior Printing System Engineer, PWG Chair<br></div></span>

</div>
<br></div></div>
<br>_______________________________________________<br>
cups mailing list<br>
<a href="mailto:cups@easysw.com">cups@easysw.com</a><br>
<a href="http://lists.easysw.com/mailman/listinfo/cups" target="_blank">http://lists.easysw.com/mailman/listinfo/cups</a><br>
<br></blockquote></div><br>