diff --git a/src/glicid_spawner/form.py b/src/glicid_spawner/form.py index 73c3ff7..15665b7 100644 --- a/src/glicid_spawner/form.py +++ b/src/glicid_spawner/form.py @@ -9,6 +9,7 @@ TEMPLATES = Environment( loader=PackageLoader('glicid_spawner'), autoescape=select_autoescape(), ) +TEMPLATE_FORM = TEMPLATES.get_template('spawner_form.html') def options_attrs(username: str) -> dict: @@ -24,8 +25,7 @@ def options_attrs(username: str) -> dict: def options_form(username: str) -> str: """Render default spawner form.""" - template = TEMPLATES.get_template('interactive.html') - return template.render(**options_attrs(username)) + return TEMPLATE_FORM.render(**options_attrs(username)) def options_from_form(formdata) -> dict: diff --git a/src/glicid_spawner/templates/interactive.html b/src/glicid_spawner/templates/spawner_form.html similarity index 100% rename from src/glicid_spawner/templates/interactive.html rename to src/glicid_spawner/templates/spawner_form.html