Modifica InContext por PageContext y PageOp

This commit is contained in:
Manuel Cillero 2022-07-30 06:11:30 +02:00
parent de0785c29f
commit 31daf11faa
30 changed files with 149 additions and 133 deletions

View file

@ -65,11 +65,11 @@ impl ComponentTrait for Input {
self.weight
}
fn is_renderable(&self, context: &InContext) -> bool {
fn is_renderable(&self, context: &PageContext) -> bool {
(self.renderable)(context)
}
fn default_render(&self, _: &mut InContext) -> Markup {
fn default_render(&self, _: &mut PageContext) -> Markup {
let type_input = match self.input_type() {
InputType::Email => "email",
InputType::Password => "password",