diff options
| author | Jeremy Kersten <jke@odoo.com> | 2015-12-18 17:36:42 +0100 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2015-12-18 17:38:02 +0100 |
| commit | 73c4c727d20a9743a8261ba29d61c345d6421e80 (patch) | |
| tree | 24527fe3760446c3231dc6ccb3d237691fe399f0 | |
| parent | 34e3c66c7c61f609281feefb9857ec53e00d0162 (diff) | |
[FIX] website_crm: allow to prefill data from get params
Allow to arrive on the form with fields prefilled with params in url
| -rw-r--r-- | addons/website_crm/views/website_crm.xml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/addons/website_crm/views/website_crm.xml b/addons/website_crm/views/website_crm.xml index e6c9b460ff6..db2086b07a1 100644 --- a/addons/website_crm/views/website_crm.xml +++ b/addons/website_crm/views/website_crm.xml @@ -9,37 +9,37 @@ <div class="form-group form-field o_website_form_required_custom"> <label class="col-md-3 col-sm-4 control-label" for="contact_name">Your Name</label> <div class="col-md-7 col-sm-8"> - <input type="text" class="form-control o_website_form_input" name="contact_name" required=""/> + <input type="text" class="form-control o_website_form_input" name="contact_name" t-att-value="request.params.get('contact_name', '')" required=""/> </div> </div> <div class="form-group form-field"> <label class="col-md-3 col-sm-4 control-label" for="phone">Phone Number</label> <div class="col-md-7 col-sm-8"> - <input type="text" class="form-control o_website_form_input" placeholder="e.g. (+32).81.81.37.00" name="phone"/> + <input type="text" class="form-control o_website_form_input" name="phone" t-att-value="request.params.get('phone', '')" /> </div> </div> <div class="form-group form-field o_website_form_required_custom"> <label class="col-md-3 col-sm-4 control-label" for="email_from">Email</label> <div class="col-md-7 col-sm-8"> - <input type="text" class="form-control o_website_form_input" name="email_from" required=""/> + <input type="text" class="form-control o_website_form_input" name="email_from" required="" t-att-value="request.params.get('email_from', '')" /> </div> </div> <div class="form-group form-field o_website_form_required_custom"> <label class="col-md-3 col-sm-4 control-label" for="partner_name">Your Company</label> <div class="col-md-7 col-sm-8"> - <input type="text" class="form-control o_website_form_input" name="partner_name" required=""/> + <input type="text" class="form-control o_website_form_input" name="partner_name" required="" t-att-value="request.params.get('partner_name', '')" /> </div> </div> <div class="form-group form-field o_website_form_required"> <label class="col-md-3 col-sm-4 control-label" for="name">Subject</label> <div class="col-md-7 col-sm-8"> - <input type="text" class="form-control o_website_form_input" name="name" required=""/> + <input type="text" class="form-control o_website_form_input" name="name" required="" t-att-value="request.params.get('name', '')" /> </div> </div> <div class="form-group form-field o_website_form_required_custom"> <label class="col-md-3 col-sm-4 control-label" for="description">Your Question</label> <div class="col-md-7 col-sm-8"> - <textarea class="form-control o_website_form_input" name="description" required=""></textarea> + <textarea class="form-control o_website_form_input" name="description" required=""><t t-esc="request.params.get('description', '')"/></textarea> </div> </div> <div class="form-group"> |
