Skip to content
Snippets Groups Projects
Commit 12d80409 authored by cis_ck's avatar cis_ck Committed by Rob Mumford
Browse files

Issue #3384899: Set the redirect path on opencrm forms

parent da5a256d
No related branches found
No related tags found
1 merge request!1Issue #3384899: Set the redirect path on opencrm forms
......@@ -13,7 +13,8 @@
"instance" : {
"default_value" : [ { "hat_name" : "party_indiv" } ],
"use_default_value_function" : 0,
"default_value_function" : ""
"default_value_function" : "",
"widget" : { "weight" : "0" }
},
"field" : []
},
......@@ -25,27 +26,30 @@
"display_options" : [],
"type" : "field",
"field_name" : "party_indiv_name",
"field" : []
"field" : [],
"instance" : { "widget" : { "weight" : "2" } }
},
"party_indiv:field:party_indiv_email" : {
"entity_namespace" : "party_indiv",
"element_name" : "field:party_indiv_email",
"weight" : "3",
"label" : "Email",
"label" : "Email (OCRM)",
"display_options" : [],
"type" : "field",
"field_name" : "party_indiv_email",
"field" : []
"field" : [],
"instance" : { "widget" : { "weight" : "3" } }
},
"party_indiv:field:party_indiv_address" : {
"entity_namespace" : "party_indiv",
"element_name" : "field:party_indiv_address",
"weight" : "4",
"label" : "Address",
"label" : "Physical Address",
"display_options" : [],
"type" : "field",
"field_name" : "party_indiv_address",
"field" : []
"field" : [],
"instance" : { "widget" : { "weight" : "4" } }
},
"base_entity:custom:html" : {
"entity_namespace" : "base_entity",
......@@ -66,7 +70,8 @@
"display_options" : [],
"type" : "field",
"field_name" : "party_notes_text",
"field" : []
"field" : [],
"instance" : { "widget" : { "weight" : "5" } }
}
},
"entities" : {
......@@ -99,19 +104,30 @@
"parameters" : { "party" : "base_entity" }
}
},
"displays" : {
"FlexiformDisplayCreatePage" : {
"displays" : { "FlexiformDisplayCreatePage" : {
"enabled" : 1,
"title" : "Add Individual",
"path" : "admin\/party\/add\/individual",
"type" : 388,
"menu_name" : "management"
"type" : "0",
"menu_name" : "menu-ck-menu-by-components",
"weight" : "0",
"access" : { "permission" : "create parties" }
}
},
"settings" : {
"ck_contact" : { "enabled" : 0 },
"flexiform_multistep" : { "enabled" : 0, "form_info" : [], "save_entities" : 0, "redirect" : "" },
"redirect" : { "path" : "\/admin\/party\/%base_entity:pid" },
"buttons" : { "submit_text" : "Save" },
"ajax" : { "submit" : 0, "response" : "refresh", "redirect" : "" },
"honeypot" : { "honeypot" : 0, "time_restriction" : 0 }
},
"access" : { "FlexiformDisplayCreatePage" : { "settings" : { "logic" : "and" } } },
"form_group" : "general",
"builder" : "FlexiformBuilderFlexiform",
"base_entity" : "party",
"base_entity_bundle" : "party",
"advanced" : "0",
"weight" : "0"
"weight" : "0",
"tags" : []
}
......@@ -13,7 +13,8 @@
"instance" : {
"required" : true,
"default_value" : [ { "hat_name" : "party_org" } ],
"use_default_value_function" : 0
"use_default_value_function" : 0,
"widget" : { "weight" : "6" }
},
"field" : []
},
......@@ -25,7 +26,11 @@
"display_options" : { "css" : "", "hide_label" : 0, "hide_element" : 1 },
"type" : "field",
"field_name" : "group_group",
"instance" : { "use_default_value_function" : 0, "default_value_function" : "" },
"instance" : {
"use_default_value_function" : 0,
"default_value_function" : "",
"widget" : { "weight" : "5" }
},
"field" : []
},
"party_org:field:party_org_name" : {
......@@ -36,7 +41,8 @@
"display_options" : [],
"type" : "field",
"field_name" : "party_org_name",
"field" : []
"field" : [],
"instance" : { "widget" : { "weight" : "1" } }
},
"party_org:field:party_org_email" : {
"entity_namespace" : "party_org",
......@@ -46,7 +52,8 @@
"display_options" : [],
"type" : "field",
"field_name" : "party_org_email",
"field" : []
"field" : [],
"instance" : { "widget" : { "weight" : "2" } }
},
"party_org:field:party_org_address" : {
"entity_namespace" : "party_org",
......@@ -56,7 +63,8 @@
"display_options" : [],
"type" : "field",
"field_name" : "party_org_address",
"field" : []
"field" : [],
"instance" : { "widget" : { "weight" : "3" } }
},
"party_notes:field:party_notes_text" : {
"entity_namespace" : "party_notes",
......@@ -66,12 +74,13 @@
"display_options" : [],
"type" : "field",
"field_name" : "party_notes_text",
"field" : []
"field" : [],
"instance" : { "widget" : { "weight" : "4" } }
},
"base_entity:custom:html" : {
"entity_namespace" : "base_entity",
"element_name" : "custom:html",
"weight" : 0,
"weight" : "0",
"label" : "Help",
"display_options" : { "css" : "", "hide_label" : 1, "hide_element" : 0 },
"custom_html" : {
......@@ -110,8 +119,7 @@
"parameters" : { "party" : "base_entity" }
}
},
"displays" : {
"FlexiformDisplayCreatePage" : {
"displays" : { "FlexiformDisplayCreatePage" : {
"enabled" : 1,
"title" : "Add Organisation",
"path" : "admin\/party\/add\/organisation",
......@@ -119,10 +127,19 @@
"menu_name" : "management"
}
},
"settings" : {
"flexiform_multistep" : { "enabled" : 0, "form_info" : [], "save_entities" : 0, "redirect" : "" },
"redirect" : { "path" : "\/admin\/party\/%base_entity:pid" },
"buttons" : { "submit_text" : "Save" },
"ajax" : { "submit" : 0, "response" : "refresh", "redirect" : "" },
"honeypot" : { "honeypot" : 0, "time_restriction" : 0 }
},
"access" : [],
"form_group" : "general",
"builder" : "FlexiformBuilderFlexiform",
"base_entity" : "party",
"base_entity_bundle" : "party",
"advanced" : "0",
"weight" : "0"
"weight" : "0",
"tags" : []
}
{ "rules_opencrm__redirect_to_indiv_page" : {
"LABEL" : "Redirect to Party Page",
"PLUGIN" : "reaction rule",
"REQUIRES" : [ "rules", "flexiform" ],
"ON" : [ "flexiform_submit_opencrm_add_party_indiv" ],
"DO" : [ { "redirect" : { "url" : "admin\/party\/[base-entity:pid]" } } ]
}
}
\ No newline at end of file
{ "rules_opencrm__redirect_to_org_page" : {
"LABEL" : "Redirect to Organisation Page",
"PLUGIN" : "reaction rule",
"REQUIRES" : [ "rules", "flexiform" ],
"ON" : [ "flexiform_submit_opencrm_add_party_org" ],
"DO" : [ { "redirect" : { "url" : "admin\/party\/[base-entity:pid]" } } ]
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment