Lines
0 %
Functions
Branches
100 %
use askama::Template;
use axum::{extract::Query, response::IntoResponse};
use serde::Deserialize;
use crate::pages::HtmlTemplate;
#[derive(Deserialize)]
pub struct SplitCreateParams {
display_index: usize,
}
#[derive(Template)]
#[template(path = "components/transaction/split_entry.html")]
struct SplitEntryTemplate {
tags: Option<Vec<finance::tag::Tag>>,
pub async fn split_create_handler(Query(params): Query<SplitCreateParams>) -> impl IntoResponse {
HtmlTemplate(SplitEntryTemplate {
display_index: params.display_index,
tags: None,
})