-
{"Condición del Proyecto"}
-
options={vec![ProjectCondition::Resale, ProjectCondition::New]} selected={project_condition} onchange={onselect_cb3} />
-
+ match props.edittype.clone() {
+ EditType::New => html! {
+
+
{"Condición del Proyecto"}
+
options={vec![ProjectCondition::Resale, ProjectCondition::New]} selected={project_condition} onchange={onselect_cb3} />
+
+ },
+ EditType::Existing(_) => if *user_typed {
+ html! {
+
+
{"Condición del Proyecto"}
+
options={vec![ProjectCondition::Resale, ProjectCondition::New]} selected={project_condition} onchange={onselect_cb3} />
+
+ }
+ } else {
+ html! {}
+ }
}
} else {
html! {
@@ -364,11 +389,23 @@ pub fn generate_fields_for_project(props: &ProjectFieldsProps) -> Html {
}
}
{if (*project_type).clone().is_none() {
- html! {
-