fix tests
This commit is contained in:
parent
c65c3ee794
commit
1ce89ed65c
@ -150,7 +150,7 @@ fn get_html_input_type<S: BuildHasher>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn get_tera() -> Tera {
|
fn get_tera() -> Tera {
|
||||||
let mut tera = Tera::new(concat!(env!("CARGO_MANIFEST_DIR"), "*")).unwrap();
|
let mut tera = Tera::new(concat!(env!("CARGO_MANIFEST_DIR"), "/src/templates/*.html")).unwrap();
|
||||||
tera.register_filter("get_html_input_type", get_html_input_type);
|
tera.register_filter("get_html_input_type", get_html_input_type);
|
||||||
tera.register_filter("get_html_input_class", get_html_input_class);
|
tera.register_filter("get_html_input_class", get_html_input_class);
|
||||||
tera.register_filter("get_icon", get_icon);
|
tera.register_filter("get_icon", get_icon);
|
||||||
|
@ -51,4 +51,6 @@ impl ActixAdminModelValidationTrait<ActiveModel> for Entity {
|
|||||||
}
|
}
|
||||||
errors
|
errors
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl ActixAdminModelFilterTrait<Entity> for Entity {}
|
@ -97,6 +97,7 @@ pub fn create_actix_admin_builder() -> ActixAdminBuilder {
|
|||||||
login_link: None,
|
login_link: None,
|
||||||
logout_link: None,
|
logout_link: None,
|
||||||
file_upload_directory: "./file_uploads",
|
file_upload_directory: "./file_uploads",
|
||||||
|
navbar_title: "test"
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut admin_builder = ActixAdminBuilder::new(configuration);
|
let mut admin_builder = ActixAdminBuilder::new(configuration);
|
||||||
|
@ -67,4 +67,6 @@ impl FromStr for Tea {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ActixAdminModelValidationTrait<ActiveModel> for Entity {}
|
impl ActixAdminModelValidationTrait<ActiveModel> for Entity {}
|
||||||
|
|
||||||
|
impl ActixAdminModelFilterTrait<Entity> for Entity {}
|
Loading…
Reference in New Issue
Block a user