mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-05-09 08:25:29 +02:00
[GH-ISSUE #19] Configure type of voucher #1
Labels
No labels
bug
enhancement
pull-request
question
question
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/unifi-voucher-site#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @irqnet on GitHub (Nov 11, 2022).
Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/19
Originally assigned to: @glenndehaan on GitHub.
Just out of curiosity, is it somehow possible to change the type of voucher that is created?
Currently it is a multi use 8h voucher that is created.
Any way to adapt that setting?
@glenndehaan commented on GitHub (Nov 11, 2022):
Currently this is hardcoded. I could look into creating an extra variable if you want this feature?
@irqnet commented on GitHub (Nov 11, 2022):
If you are able to spend some effort on this, it would really appreciate it.
Would be nice to have multiple voucher selections, like the controller offers:
@glenndehaan commented on GitHub (Nov 14, 2022):
Hey sorry for the late reponse but a new release is now available that allows you to create pre-defined voucher types that a user then can select within the portal. The configuration for it can be found here: https://github.com/glenndehaan/unifi-voucher-site#docker
I hope this help.
Kind regards,
Glenn
@irqnet commented on GitHub (Nov 15, 2022):
looks very good, thx a lot!
Would it be difficult to map the minute indicator to 1 day 2 days, when 1440, or 2880 is configured instead of showing 1440, 2880 in the selection?
What I don't know is how the controller behaves when using e.g. 1,5 days like 2160 minutes. Normally it's not foreseen by Ubiquiti.
@glenndehaan commented on GitHub (Nov 15, 2022):
Hey, I just pushed an update and it should now be remapped inside the dropdown. In terms of the controller I have no idea if that works but according to the API it should
@irqnet commented on GitHub (Nov 17, 2022):
works for me! thx :)