add fittopage checkbox + custom print options
All checks were successful
Go / build (push) Successful in 16m26s

This commit is contained in:
2025-12-12 19:51:05 +01:00
parent 7fa932e378
commit faf07704d2
4 changed files with 70 additions and 34 deletions

View File

@@ -77,6 +77,20 @@
<option value="TriFold">Tri-Fold (Flyer)</option>
</select>
<label class="flex text-sm/6 items-center">
<input type="checkbox" {{ if .data.shopItem.FitToPage }} checked {{ else }} {{ end }} class="form-checkbox h-4 w-4 text-gray-900"
value="true" name="fit-to-page">
<span class="ml-2 text-sm/6 text-gray-900">Fit to Page</span>
</label>
<div>
<label for="custom-print-options" class="block text-sm/6 font-medium text-gray-900">Custom Print Options:</label>
<textarea id="custom-print-options" name="custom-print-options" type="textarea" class="block w-full px-4 py-2
mt-2 text-gray-900 bg-white border border-gray-300 rounded-md focus:border-blue-500 focus:outline-none
focus:ring">{{ .data.shopItem.CustomPrintOptions}}</textarea>
</div>
<div class="mb-4">
<label class="block text-sm/6 text-gray-900">Select Categories</label>