summaryrefslogtreecommitdiff
path: root/addons/website_form/static/src/xml
AgeCommit message (Collapse)Author
2020-09-04[FIX] website_form: have several date pickerNicolas Lempereur
When multiple date (or datetime) pickers are added to a website form, the uniqueId value is used to differenciate them thanks to 694af9a19a. It works well in a lot of case (eg. when adding several field at the same time, or by change because other code consume uniqueId) but in this scenario: - add a date field on a form - save - add a date field on a form it is possible have the second field targetting the first one because they have the same `'datepicket'+uniqueId()` ID. This happens because uniqueId is reset at each page opening. found when working on opw-2326882 closes #57092 closes odoo/odoo#57109 X-original-commit: 75ad994a628ef0d994b44cf6e25fd5340c3ecafd Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2020-06-18[IMP] website, *: redesign the contact us and the thank you pageBenjamin Vray
task-2266756 closes odoo/odoo#52162 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-06-08[IMP] website_form, *: add field type to formfja-odoo
*= website_hr_recruitment, website_sale, website_crm Adding 2 new types of fields: tel, url email, url and tel type can now be applied on existing char fields. task-2213083 closes odoo/odoo#50891 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-06-05[IMP] google_recaptcha, *: integrate recaptchaV3fja-odoo
* = base_setup, website_form, website_sale, website_crm, crm_iap_lead_website, website_hr_recruitment, website_mass_mailing Integrate reCaptchaV3 on website_form submit and website_mass_mailing subscription. You can now use ReCaptchaV3 to add reCaptcha verification in any module using google_recaptcha. Also added a better error management on the form with custom messages. task-2217980 closes odoo/odoo#48466 Related: odoo/enterprise#9649 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-04-27[IMP] website, *: warn user about outdated blocksfja-odoo
* = mass_mailing, web_editor, website_crm, website_event, website_form, website_forum, website_hr_recruitment, website_mail_channel, website_mass_mailing, website_sale, website_slides When an outdated snippet's option are activated we display a warning in the left panel that inform the user about the potential malfunctions. To do so the snippet's template key is added to the snippet as data-snippet. If a snippet is "t-call" inside another snippet, it will need to use t-snippet-call instead of t-call to have the key on himself. Those unique keys are used on snippet selection to retrieve the snippet's version in the left panel and compare it with the currently selected snippet's version. Versions are describe with data-vcss, data-vjs and data-vxml. If a snippet's key is not in the left panel we consider that snippet as outdated. Added some tests to ensure that t-snippet and t-snippet-call really have their template key as data-snippet Adapted the views to the data-snippet changes adding data-snippet="tmpl_key". Part of: https://github.com/odoo/odoo/pull/44569 task-2189669 closes odoo/odoo#50254 X-original-commit: 28a6cd49b6e87b75c2e70771e241c41778bf9e87 Related: odoo/enterprise#10236 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-06[IMP] website_form: add/rename form optionsfja-odoo
Add a height option on textarea Rename some fields Add margin on default form part of: https://github.com/odoo/odoo/pull/45397 task-2197008
2020-03-02[FIX] website_form,*: fix d-none field no optionsfja-odoo
* = website_hr_recruitment The hidden fields containing form infos have options activated on them because of the class s_website_form_field. When a saved snippet is dropped the snippet editor tries to activate them. They should not have any options. closes odoo/odoo#46660 X-original-commit: 14d2283e739282f82828e0ba3792f9f1126d0033 Related: odoo/enterprise#8956 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-02-07[FIX] website_form, *: fix new website formfja-odoo
* = website_crm, website_hr_recruitment, website_sale Changing label position on existing field was replacing the label with the default one. Redirection message was not updating the overlay Going from show message to redirect without hidding the mesage made the form d-none When a select field's label's position was changed the select was not editable anymore. Some other miscellaneous fixes task-2191409 closes odoo/odoo#44911 X-original-commit: 3cf87cc1cb179598cecb736728378e330d3b2e22 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-02-05[IMP] website_form, *: entirely review s_website_form snippetfja-odoo
*: web_editor, website_crm, website_form_project, website_hr_recruitment, website_sale The form builder is now using the left panel option system. Many new options are introduced to build better forms more quickly. The tests are now running with the new website_form implementation. Part of: https://github.com/odoo/odoo/pull/42189 task-2092425 closes odoo/odoo#42189 Related: odoo/enterprise#7365 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-12-17[IMP] website_form: add info on email_cc fieldKaushalya Mandaliya
In a website form, when "Email cc" field is added, an i icon will be displayed besides the field label to guide user about multiple email addresses support. task-2074045 closes odoo/odoo#37116 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-12-09[FIX] website_form: fix missing currency field in form builderJason Van Malder
Issue - Install CRM & Website - Edit the website contact form - Add "Expected revenue" field Traceback Cause Monetary fields are not handled by the form builder Solution Add the monetary field in the form builder core OPW-2150986 closes odoo/odoo#41558 X-original-commit: 6c27c3abf4907e1faac670ea8ef006992ec96063 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2019-12-09[REV] web: reverts update to fontawesome 5.11.2Kevin Baptiste
This reverts commit ff1c35513aecef5fbc30f7c2f3834450e719714e. closes odoo/odoo#41480 X-original-commit: 116057b26e71db4692280463669f3e80d813ddcc Related: odoo/enterprise#7110 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-11-28[IMP] web: update to fontawesome 4.7.0 to 5.11.2Kevin Baptiste
FontAwesome 5 introduced new names for some icons as described on https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#name-changes This commit replaces the old names to the new ones. closes odoo/odoo#35826 Taskid: 2050241 Related: odoo/enterprise#5180 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-11-06[IMP] website_form: apply layout to newly added fieldDharmraj Jhala
This commit copies design of the last form-field and automatically applies it on the newly added field to ease the designing. Part of https://github.com/odoo/odoo/pull/30595 task-1874350
2019-11-06[IMP] website_form: add new 'email' type of field in custom fieldsDharmraj Jhala
This commit adds possibility to add 'email' type of custom field using form builder. Part of https://github.com/odoo/odoo/pull/30595 task-1874350
2019-11-06[IMP] website_form: improve radio/checkbox behavior and layoutDharmraj Jhala
This commit implements following changes: - aligns radio / checkboxes with their label - adds an option on radio buttons and checkboxes to display them horizontally or vertically Part of https://github.com/odoo/odoo/pull/30595 task-1874350
2019-10-01[FIX] website_form: fix website form snippetfja-odoo
The modal of the website_form snippet was broken. Now it uses Dialog. Hidden inputs were not aligned with there labels. task-2078138 closes odoo/odoo#37545 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com> Co-authored-by: qsm-odoo <qsm@odoo.com>
2019-04-19[IMP] website_form: add default attributes for 'Send an E-mail' formJigar Patel
task-32212
2019-04-19[IMP] wesbite_form: add mechanism to allow default atttibutes to formJigar Patel
That way, it is possible to add the template, fields and success page to different type of form. Next commits will use what has been done in this commit. task-32212
2019-04-08[MRG] website_form[_editor]: merge modules togetherJeremy Kersten
closes odoo/odoo#32491 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2018-06-22[IMP] Improve compatibility with screen readers (accessibility) (#24574)kujiu
Today, Odoo is really tricky to use without seeing the screen, it must be improved to be usable. This PR forbid to use labels without a "for" attribute, add some title, rule and aria attributes in HTML. With that, Odoo will be fully usable with a screen reader. * [IMP] Labels must have a for attribute. Improve accessibility. * [IMP] Better error message when trying to read a missing cached value * [FIX] Add some aria-label and title attributes for screen readers. * [FIX] Template name is not included in the error message in case of SyntaxError in QWeb * [FIX] Improve the Tour failed at step error message to be more explicit. * [IMP] Add aria-labels * [FIX] Add missing aria-label on failing test * [IMP] aria-hidden means hidden. Fix all bad aria-hidden and hide aria-hidden for all. * [IMP] Color names on kanban views and many2many tags * [IMP] Add some checks on views for accessibility. * [IMP] Add `alt` attribute on `img` tags. * [IMP] Add aria-label and title on non-described icons * [IMP] Add button role to widgets with btn class * [IMP] Translate aria and formatted attributes. * [IMP] Remove wrong aria-labelledby * [IMP] Add menu role on dropdowns * [IMP] Buttons must be focusable * [IMP] Add aria attributes on progress bars * [IMP] Improve accessibility of basic widgets * [IMP] Change main layout to more semantic tags * [IMP] Add menuitem role when missing * [IMP] Remove wrong role='presentation' * [IMP] Improve accessibility of tab panels * [IMP] Add aria-invalid on invalid fields * [IMP] Add aria-sort on ordered columns * [IMP] Add role on alerts * [IMP] Use dialog role, header, main and footer tags for modals * [IMP] Add labels on o_status * [IMP] Improve accessibility of kanban view with feeds and articles * [IMP] Add alerts in case of new messages * [IMP] Add widget, navigation or img role to aria-labelled items
2015-08-26[ADD] website_form: generic form controllerDavid Monjoie
Contains a new ajax post function that comes from mdo's original code and that I was not able to get rid of.