2021-05-03 17:54:03 +03:00
|
|
|
<form class="sitekey-form" action="<.= crate::V1_API_ROUTES.levels.add .>" method="post">
|
|
|
|
<h1 class="form__title">
|
|
|
|
<.= form_title .>
|
|
|
|
</h1>
|
|
|
|
<label class="sitekey-form__label" for="description">
|
|
|
|
Description
|
|
|
|
<input
|
|
|
|
class="sitekey-form__input"
|
|
|
|
type="text"
|
|
|
|
name="description"
|
|
|
|
id="description"
|
|
|
|
required
|
|
|
|
value="<.= form_description .>"
|
|
|
|
/>
|
|
|
|
</label>
|
2021-04-30 15:00:40 +03:00
|
|
|
|
2021-05-01 12:11:22 +03:00
|
|
|
<. for level in 1..=levels { .>
|
|
|
|
<. if level == levels { .>
|
2021-05-03 17:57:11 +03:00
|
|
|
<. include!("./add-level.html"); .>
|
2021-05-01 12:11:22 +03:00
|
|
|
<. } else { .>
|
|
|
|
<. include!("./existing-level.html"); .>
|
|
|
|
<. } .>
|
|
|
|
<. } .>
|
2021-04-30 15:00:40 +03:00
|
|
|
|
|
|
|
<button class="sitekey-form__submit" type="submit">Submit</button>
|
|
|
|
</form>
|