feat: set default expiration in select #28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "tapiron/coller:feat/display_default_expiration_in_form"
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?
No default value in select could be interpreted as ever lasting note.
Default value in the select makes that clearer.
@ -37,3 +37,3 @@
<div class="col">
<select class="form-select" aria-label="Expiration" id="expiration" name="expiration">
<option selected="selected" disabled>Expiration</option>
<option selected="selected" disabled>{{HumanDuration .Expiration}}</option>
Expiration is included in Expirations resulting in a duplicate entry in the list.
Wouldn't it be better to use a
selected="selected"
attribute when the expiration is the default one instead?Something like:
I'm not sure about the scope of the variables here but that should be doable. That way, we'll still see it's an expiration thanks to the disabled option but it would automatically select the default value set on the server.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.