diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-02-17 18:19:21 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-02-17 18:19:21 +0200 |
| commit | b6bba140654c18687e05874e822cccbef6fea4fa (patch) | |
| tree | 5af50be15c9d321d5e9d9cffb2cca0b589e76aa9 /browser/templates/frag_aside.html.j2 | |
| parent | 001b52fc1b6d2b30b371611f5a8b961e5c6945d3 (diff) | |
Improve templating
Diffstat (limited to 'browser/templates/frag_aside.html.j2')
| -rw-r--r-- | browser/templates/frag_aside.html.j2 | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/browser/templates/frag_aside.html.j2 b/browser/templates/frag_aside.html.j2 index 7ec10ad..6c5658f 100644 --- a/browser/templates/frag_aside.html.j2 +++ b/browser/templates/frag_aside.html.j2 @@ -1,13 +1,26 @@ +{# +Params + selected_form Form fragment to include +#} + <aside id="aside"> <h3>Read operations</h3> <ul> - <li><a href="/find" htmp replace=form_query>Find</a></li> - <li><a href="/range" htmp replace=form_query>Range</a></li> + {% with href="/find", text="Find" %} + <li>{% include "frag_aside_link.html.j2" %}</li> + {% endwith %} + {% with href="/range", text="Range" %} + <li>{% include "frag_aside_link.html.j2" %}</li> + {% endwith %} </ul> <h3>Write operations</h3> <ul> - <li><a href="/upsert">Upsert</a></li> - <li><a href="/delete">Delete</a></li> + {% with href="/upsert", text="Upsert" %} + <li>{% include "frag_aside_link.html.j2" %}</li> + {% endwith %} + {% with href="/delete", text="Delete" %} + <li>{% include "frag_aside_link.html.j2" %}</li> + {% endwith %} </ul> {% include selected_form %} |
