Browse Source

[FIX] beesdoo_portal_shift: change name

Change name from beesdoo_portal_shift to beesdoo_website_shift.
pull/24/head
Rémy Taymans 7 years ago
parent
commit
8979cf2a43
  1. 0
      beesdoo_website_shift/__init__.py
  2. 4
      beesdoo_website_shift/__openerp__.py
  3. 0
      beesdoo_website_shift/controllers/__init__.py
  4. 4
      beesdoo_website_shift/controllers/main.py
  5. 0
      beesdoo_website_shift/data/config_data.xml
  6. 2
      beesdoo_website_shift/i18n/fr_BE.po
  7. 0
      beesdoo_website_shift/static/src/css/design.css
  8. 6
      beesdoo_website_shift/views/shift_website_templates.xml

0
beesdoo_portal_shift/__init__.py → beesdoo_website_shift/__init__.py

4
beesdoo_portal_shift/__openerp__.py → beesdoo_website_shift/__openerp__.py

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
{ {
'name': 'Beescoop Shift Portal',
'name': 'Beescoop Shift Website',
'summary': """ 'summary': """
Show available shifts for regular and irregular workers in Show available shifts for regular and irregular workers in
@ -18,7 +18,7 @@
'depends': ['website', 'beesdoo_shift'], 'depends': ['website', 'beesdoo_shift'],
'data': [ 'data': [
'views/shift_portal_templates.xml',
'views/shift_website_templates.xml',
'data/config_data.xml', 'data/config_data.xml',
] ]
} }

0
beesdoo_portal_shift/controllers/__init__.py → beesdoo_website_shift/controllers/__init__.py

4
beesdoo_portal_shift/controllers/main.py → beesdoo_website_shift/controllers/main.py

@ -23,7 +23,7 @@ class ShiftPortalController(http.Controller):
s = [v for v in val] s = [v for v in val]
shifts_and_count.append([len(s), s[0]]) shifts_and_count.append([len(s), s[0]])
return request.render('beesdoo_portal_shift.shift_template',
return request.render('beesdoo_website_shift.shift_template',
{'shift_templates': shifts_and_count} {'shift_templates': shifts_and_count}
) )
@ -33,7 +33,7 @@ class ShiftPortalController(http.Controller):
template = request.env['beesdoo.shift.template'] template = request.env['beesdoo.shift.template']
task_templates = template.sudo().search([], order="planning_id, day_nb_id, start_time") task_templates = template.sudo().search([], order="planning_id, day_nb_id, start_time")
return request.render('beesdoo_portal_shift.task_template',
return request.render('beesdoo_website_shift.task_template',
{ {
'task_templates': task_templates, 'task_templates': task_templates,
'float_to_time': float_to_time 'float_to_time': float_to_time

0
beesdoo_portal_shift/data/config_data.xml → beesdoo_website_shift/data/config_data.xml

2
beesdoo_portal_shift/i18n/fr_BE.po → beesdoo_website_shift/i18n/fr_BE.po

@ -26,7 +26,7 @@ msgstr "Créneaux disponibles pour les travailleurs réguliers"
#. module: beesdoo_portal_shift #. module: beesdoo_portal_shift
#: model:ir.ui.view,arch_db:beesdoo_portal_shift.shift_template #: model:ir.ui.view,arch_db:beesdoo_portal_shift.shift_template
msgid "Availables Shifts for Irregular Workers"
msgid "Available Shifts for Irregular Workers"
msgstr "Shifts disponibles pour les travailleurs volants" msgstr "Shifts disponibles pour les travailleurs volants"
#. module: beesdoo_portal_shift #. module: beesdoo_portal_shift

0
beesdoo_portal_shift/static/src/css/design.css → beesdoo_website_shift/static/src/css/design.css

6
beesdoo_portal_shift/views/shift_portal_templates.xml → beesdoo_website_shift/views/shift_website_templates.xml

@ -1,10 +1,10 @@
<openerp> <openerp>
<!-- We add the css stylesheet --> <!-- We add the css stylesheet -->
<template id="assets_frontend" name="beesdoo_portal_shift_website_assets"
<template id="assets_frontend" name="beesdoo_website_shift_website_assets"
inherit_id="website.assets_frontend"> inherit_id="website.assets_frontend">
<xpath expr="." position="inside"> <xpath expr="." position="inside">
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="/beesdoo_portal_shift/static/src/css/design.css"/>
href="/beesdoo_website_shift/static/src/css/design.css"/>
</xpath> </xpath>
</template> </template>
@ -74,7 +74,7 @@
<template id="shift_template" name="Shift for irregular worker"> <template id="shift_template" name="Shift for irregular worker">
<t t-call="website.layout"> <t t-call="website.layout">
<div class="container"> <div class="container">
<h1>Availables Shifts for Irregular Workers</h1>
<h1>Available Shifts for Irregular Workers</h1>
<p class="text-center"> <p class="text-center">
Subscribe via <a href="mailto:volant@bees-coop.be">volant@bees-coop.be</a> Subscribe via <a href="mailto:volant@bees-coop.be">volant@bees-coop.be</a>
Loading…
Cancel
Save