Browse Source

[REM] survey_description

16.0
RemiFr82 1 week ago
parent
commit
82c88c4bf4
  1. 0
      survey_description/__init__.py
  2. 40
      survey_description/__manifest__.py
  3. 34
      survey_description/i18n/fr.po
  4. 19
      survey_description/views/survey_page.xml
  5. 29
      survey_description/views/survey_survey.xml

0
survey_description/__init__.py

40
survey_description/__manifest__.py

@ -1,40 +0,0 @@
# -*- coding: utf-8 -*-
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
{
"name": "Survey description",
"version": "1.0.0",
"summary": """
Edit description fields on surveys and pages
""",
"description": """
This module displays standard HTML fields \"Description\" and \"Thank you message\" on survey and survey pages.
""",
"author": "RemiFr82",
"contributors": "Sudokeys",
"website": "https://remifr82.me",
"license": "LGPL-3",
"category": "Marketing",
# "price": 0,
# "currency": "EUR",
"application": False,
"installable": False,
"auto_install": False,
"pre_init_hook": "",
"post_init_hook": "",
"uninstall_hook": "",
"excludes": [],
"external_dependencies": [],
"depends": [
"survey",
],
"data": [
"views/survey_page.xml",
"views/survey_survey.xml",
],
"css": [],
"images": [],
"js": [],
"test": [],
"demo": [],
"maintainer": "RemiFr82",
}

34
survey_description/i18n/fr.po

@ -1,34 +0,0 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * survey_description
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-28 18:18+0000\n"
"PO-Revision-Date: 2023-02-28 18:18+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: survey_description
#: model_terms:ir.ui.view,arch_db:survey_description.survey_survey_form
msgid "Description"
msgstr ""
#. module: survey_description
#: model_terms:ir.ui.view,arch_db:survey_description.survey_survey_form
msgid "Thank you page"
msgstr "Page de remerciement"
#. module: survey_description
#: model_terms:ir.ui.view,arch_db:survey_description.survey_survey_form
msgid "This content will be displayed between the title of the survey and the \"Start\" button, on the answer homepage.<br/>\n"
" You can also add a custom content on each page of the survey through the \"Description\" field on each page."
msgstr "Ce contenu sera affiché entre le titre du sondage et le bouton \"Commencer\", sur la page d'accueil des réponses aux sondages.<br/>\n"
" Vous pouvez également ajouter du contenu spécifique sur chacune des pages du sondage via le champ \"Description\" de chaque page."

19
survey_description/views/survey_page.xml

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="survey_page_form" model="ir.ui.view">
<field name="name">survey_description survey.page form</field>
<field name="model">survey.page</field>
<field name="inherit_id" ref="survey.survey_page_form"/>
<field name="priority">20</field>
<field name="arch" type="xml">
<h1 position="after">
<label for="description" class="oe_edit_only"/>
</h1>
<field name="question_ids" position="before">
<field name="description" nolabel="1" colspan="2"/>
</field>
</field>
</record>
</odoo>

29
survey_description/views/survey_survey.xml

@ -1,29 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="survey_survey_form" model="ir.ui.view">
<field name="name">survey_description survey.survey form</field>
<field name="model">survey.survey</field>
<field name="inherit_id" ref="survey.survey_form"/>
<field name="priority">20</field>
<field name="arch" type="xml">
<xpath expr="//notebook/page[descendant::field[@name='page_ids']]" position="after">
<page name="description" string="Description">
<group>
<p colspan="2" class="text-muted oe_edit_only">
This content will be displayed between the title of the survey and the "Start" button, on the answer homepage.<br/>
You can also add a custom content on each page of the survey through the "Description" field on each page.
</p>
<field name="description" nolabel="1" colspan="2"/>
</group>
</page>
<page name="thank_you" string="Thank you page">
<group class="o_label_nowrap">
<field name="thank_you_message"/>
</group>
</page>
</xpath>
</field>
</record>
</odoo>
Loading…
Cancel
Save