Vorlage:TopNewsInput
Aus Geoportal
<form id="topNewsForm">
<label for="title">Title:</label> <input type="text" id="title" name="title" required>
<label for="date">Date:</label> <input type="text" id="date" name="date" required>
<label for="teaser">Teaser:</label> <textarea id="teaser" name="teaser" required></textarea>
<input type="button" value="Generate Template" onclick="generateTemplate()">
</form>
<script type="text/javascript">
function generateTemplate() { var title = document.getElementById('title').value; var date = document.getElementById('date').value; var teaser = document.getElementById('teaser').value;
// Collect values for other parameters here
// Construct the template call var templateCall = `
${title}
${date}
${articleBody}
`;
// Display the generated template document.getElementById('generatedTemplate').innerHTML = templateCall; }
</script>