+
+
+
+ isOpen = true"
+ @onkeydown="HandleKeyDown"
+ placeholder="e.g. Weekly Update"
+ autocomplete="off"/>
+
+
+ @if (isOpen && filteredTemplates.Any())
+ {
+
+ @foreach (var (template, index) in filteredTemplates.Select((t, i) => (t, i)))
+ {
+
SelectTemplate(template)"
+ @onmouseenter="() => selectedIndex = index"
+ style="cursor: pointer;">
+ @template.Name
+
+
+ }
+
+ }
+
+ @if (IsOverwriting)
+ {
+
+ Warning: A template with this name already exists. Saving will overwrite it.
+
+ }
+
+
+
+