Split Print into Save / Save & Print -- saving no longer requires also printing
deploy / deploy (push) Successful in 9s
deploy / deploy (push) Successful in 9s
Name is now required (it's the only thing identifying what got saved), and printing is an explicit separate choice instead of an implicit side-effect of naming something.
This commit is contained in:
1 parent
148f7dc248
commit
abb4eb0edb
3 files changed
+34
-18
No files matched your search
+4
-3
@@ -37,11 +37,12 @@ GS V 0x00 # Full cut</code></pre>
|
||||
</div>
|
||||
<div class="row g-2 align-items-end">
|
||||
<div class="col-auto">
|
||||
<label for="save_as_escpos" class="form-label">Save as (optional)</label>
|
||||
<input name="save_as" class="form-control" type="text" id="save_as_escpos" placeholder="receipt name" />
|
||||
<label for="save_as_escpos" class="form-label">Name</label>
|
||||
<input name="save_as" class="form-control" type="text" id="save_as_escpos" placeholder="receipt name" required />
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<button class="btn btn-secondary" type="submit">Print</button>
|
||||
<button class="btn btn-outline-secondary" type="submit" name="commit" value="save">Save</button>
|
||||
<button class="btn btn-secondary" type="submit" name="commit" value="save_and_print">Save & Print</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
+4
-3
@@ -23,11 +23,12 @@
|
||||
</div>
|
||||
<div class="row g-2 align-items-end">
|
||||
<div class="col-auto">
|
||||
<label for="save_as_zpl" class="form-label">Save as (optional)</label>
|
||||
<input name="save_as" class="form-control" type="text" id="save_as_zpl" placeholder="label name" />
|
||||
<label for="save_as_zpl" class="form-label">Name</label>
|
||||
<input name="save_as" class="form-control" type="text" id="save_as_zpl" placeholder="label name" required />
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<button class="btn btn-secondary" type="submit">Print</button>
|
||||
<button class="btn btn-outline-secondary" type="submit" name="commit" value="save">Save</button>
|
||||
<button class="btn btn-secondary" type="submit" name="commit" value="save_and_print">Save & Print</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in new issue
Block a user