deploy / deploy (push) Successful in 8s
Custom ReceiptBuilder instead of the escpos gem -- its diacritics handling needed the same manual UTF-8->CP852 encode call anyway, based on earlier experiments in ~/test/epson/.
16 lines
746 B
ERB
16 lines
746 B
ERB
<form action="/epson/print" method="POST">
|
|
<div class="mb-3">
|
|
<label for="title" class="form-label">Title (bold, centered)</label>
|
|
<input name="title" class="form-control" type="text" id="title" />
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="body" class="form-label">Body text</label>
|
|
<textarea name="body" class="form-control" id="body" rows="8"></textarea>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="qr" class="form-label">QR code content (optional)</label>
|
|
<input name="qr" class="form-control" type="text" id="qr" />
|
|
</div>
|
|
<button class="btn btn-secondary" type="submit">Print</button>
|
|
</form>
|