Skip to content

Commit

Permalink
[ADD] Survey style
Browse files Browse the repository at this point in the history
  • Loading branch information
valentincastravete committed Nov 11, 2022
1 parent bef06b0 commit de5c375
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 0 deletions.
3 changes: 3 additions & 0 deletions survey_style/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
###############################################################################
# For copyright and license notices, see __manifest__.py file in root directory
###############################################################################
34 changes: 34 additions & 0 deletions survey_style/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
###############################################################################
#
# SDi Digital Group
# Copyright (C) 2021-Today SDi Digital Group <www.sdi.es>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
{
'name': 'Survey Style',
'summary': 'Style customization to surveys.',
'version': '12.0.1.0.0',
'category': 'Survey',
'website': 'https://www.sdi.es/odoo-cloud/',
'author': 'Valentín Georgian Castravete, SDi Digital Group',
'license': 'AGPL-3',
'depends': [
'survey',
],
'data': [
'views/assets.xml',
],
}
Binary file added survey_style/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions survey_style/static/src/css/survey.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.js_question-wrapper {
margin-bottom: 50px;
}

.js_question-wrapper>h2 {
font-size: 1.4rem;
}

.row {
margin-top: 15px;
row-gap: 10px;
}
8 changes: 8 additions & 0 deletions survey_style/views/assets.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<template id="assets_frontend" name="survey_style assets" inherit_id="web.assets_frontend">
<xpath expr="." position="inside">
<link href="/survey_style/static/src/css/survey.css" rel="stylesheet" type="text/css"/>
</xpath>
</template>
</odoo>

0 comments on commit de5c375

Please sign in to comment.