chiark / gitweb /
Merge branch 'stable-5.x' into web
[ypp-sc-tools.db-live.git] / yarrg / web / qtextstring
index 93eb1249633499550bf763cb7c33ccd1c735115b..e046c56c3d4f90c7fe4b3034836015ca64e73879 100644 (file)
@@ -97,6 +97,7 @@ function <%$p%>Ready() {
 register_onload(<%$p%>Needed);
 </&script>
 
+% if (!printable($m)) {
 <input type="text" <% $m->content %>
  id="<% $thingstring %>" name="<% $thingstring %>"
  onchange="<%$p%>Needed();" onkeyup="<%$p%>Later();"
@@ -104,6 +105,11 @@ register_onload(<%$p%>Needed);
  ><% defined($helpref) ? "<a href=\"docs#$helpref\">[?]</a>" : '' %>
 <br>
 <div id="<%$p%>results">&nbsp;</div><br>
+% } else {
+<kbd><strong><% $stringval |h %></strong></kbd>
+<br>
+<br>
+% }
 
 <%perl>
 if ($significant_nonempty || length $thingstring) {