Start Theme Repo
This commit is contained in:
15
views/pieces/submissions/fields/release-date.twig
Normal file
15
views/pieces/submissions/fields/release-date.twig
Normal file
@@ -0,0 +1,15 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user