🔥 Remove template usage in base components
This commit is contained in:
parent
7cd056d7a9
commit
6ec9287113
4 changed files with 0 additions and 44 deletions
|
|
@ -17,7 +17,6 @@ pub struct Date {
|
|||
readonly : OptionString,
|
||||
required : OptionString,
|
||||
help_text : OptionString,
|
||||
template : String,
|
||||
}
|
||||
|
||||
impl ComponentTrait for Date {
|
||||
|
|
@ -157,12 +156,6 @@ impl Date {
|
|||
self
|
||||
}
|
||||
|
||||
#[fn_with]
|
||||
pub fn alter_template(&mut self, template: &str) -> &mut Self {
|
||||
self.template = template.to_owned();
|
||||
self
|
||||
}
|
||||
|
||||
// Date GETTERS.
|
||||
|
||||
pub fn name(&self) -> &OptionString {
|
||||
|
|
@ -204,8 +197,4 @@ impl Date {
|
|||
pub fn help_text(&self) -> &OptionString {
|
||||
&self.help_text
|
||||
}
|
||||
|
||||
pub fn template(&self) -> &str {
|
||||
self.template.as_str()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ pub struct Form {
|
|||
charset : OptionString,
|
||||
method : FormMethod,
|
||||
stuff : AnyComponents,
|
||||
template : String,
|
||||
}
|
||||
|
||||
impl ComponentTrait for Form {
|
||||
|
|
@ -111,12 +110,6 @@ impl Form {
|
|||
self
|
||||
}
|
||||
|
||||
#[fn_with]
|
||||
pub fn alter_template(&mut self, template: &str) -> &mut Self {
|
||||
self.template = template.to_owned();
|
||||
self
|
||||
}
|
||||
|
||||
// Form GETTERS.
|
||||
|
||||
pub fn action(&self) -> &OptionString {
|
||||
|
|
@ -134,8 +127,4 @@ impl Form {
|
|||
pub fn elements(&self) -> &AnyComponents {
|
||||
&self.stuff
|
||||
}
|
||||
|
||||
pub fn template(&self) -> &str {
|
||||
self.template.as_str()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ pub struct Input {
|
|||
readonly : OptionString,
|
||||
required : OptionString,
|
||||
help_text : OptionTranslated,
|
||||
template : String,
|
||||
}
|
||||
|
||||
impl ComponentTrait for Input {
|
||||
|
|
@ -258,12 +257,6 @@ impl Input {
|
|||
self
|
||||
}
|
||||
|
||||
#[fn_with]
|
||||
pub fn alter_template(&mut self, template: &str) -> &mut Self {
|
||||
self.template = template.to_owned();
|
||||
self
|
||||
}
|
||||
|
||||
// Input GETTERS.
|
||||
|
||||
pub fn input_type(&self) -> &InputType {
|
||||
|
|
@ -321,8 +314,4 @@ impl Input {
|
|||
pub fn help_text(&self) -> &OptionTranslated {
|
||||
&self.help_text
|
||||
}
|
||||
|
||||
pub fn template(&self) -> &str {
|
||||
self.template.as_str()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ pub struct Wrapper {
|
|||
inner_classes: OptionClasses,
|
||||
wrapper_type : WrapperType,
|
||||
stuff : AnyComponents,
|
||||
template : String,
|
||||
}
|
||||
|
||||
impl ComponentTrait for Wrapper {
|
||||
|
|
@ -153,12 +152,6 @@ impl Wrapper {
|
|||
self
|
||||
}
|
||||
|
||||
#[fn_with]
|
||||
pub fn alter_template(&mut self, template: &str) -> &mut Self {
|
||||
self.template = template.to_owned();
|
||||
self
|
||||
}
|
||||
|
||||
// Wrapper GETTERS.
|
||||
|
||||
pub fn inner_classes(&self) -> &OptionClasses {
|
||||
|
|
@ -172,8 +165,4 @@ impl Wrapper {
|
|||
pub fn components(&self) -> &AnyComponents {
|
||||
&self.stuff
|
||||
}
|
||||
|
||||
pub fn template(&self) -> &str {
|
||||
self.template.as_str()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue