Files
Romhack-Plaza---WordPress-T…/views/pieces/submissions/fields/release-date.twig

15 lines
465 B
Twig
Raw Normal View History

2026-01-29 19:10:03 +01:00
<label for="releaseDate">
{{ __( "Last updated:", "romhackplaza" ) }}
</label>
<span class="field-helper">{{ __( "If only initial release exist, the release date.", "romhackplaza" ) }}</span>
<input
type="date"
id="releaseDate"
name="release_date"
value="{{ value_release_date }}"
required
>
<script>
const today = new Date().toISOString().split("T")[0];
document.getElementById("releaseDate").setAttribute( "max", today );
</script>