Commit a9a912d2 by Damien Moulard

INS: display button to go to prepa odoo

parent 86e0f826
Pipeline #2137 passed with stage
in 1 minute 29 seconds
......@@ -115,6 +115,7 @@ ENTRANCE_EASY_SHIFT_VALIDATE_MSG = """Si vous faites un service dans un comité,
valider votre présence en cherchant<br/>
votre nom ou numéro ci-dessous
"""
PREPA_ODOO_URL = '[...]'
# Members space / shifts
UNSUBSCRIBED_FORM_LINK = 'https://docs.google.com/forms/d/e/1FAIpQLScWcpls-ruYIp7HdrjRF1B1TyuzdqhvlUIcUWynbEujfj3dTg/viewform'
......
.nav .fr {margin-left:10px;}
.nav .fl {margin-right:10px;}
.nav #process_state_container{
min-height: 36px;
}
.nav #process_state{
min-height: 36px;
display: flex;
align-items: center;
gap: 3px;
}
.nav #goto_prepa_odoo_button,
.nav #goto_prepa_odoo_button:hover {
text-decoration: none;
}
#shift_choice > div, #new_coop, #coop_list_view,#coop_registration_details {display:none;}
......
......@@ -102,7 +102,8 @@ def inscriptions(request, type=1):
'max_chq_nb': getattr(settings, 'MAX_CHQ_NB', 12),
'show_ftop_button': getattr(settings, 'SHOW_FTOP_BUTTON', True),
'db': settings.COUCHDB['dbs']['member'],
'ASSOCIATE_MEMBER_SHIFT' : getattr(settings, 'ASSOCIATE_MEMBER_SHIFT', '')
'ASSOCIATE_MEMBER_SHIFT' : getattr(settings, 'ASSOCIATE_MEMBER_SHIFT', ''),
'prepa_odoo_url' : getattr(settings, 'PREPA_ODOO_URL', ''),
}
response = HttpResponse(template.render(context, request))
......
......@@ -135,6 +135,9 @@
Id number of the associate shift template
- PREPA_ODOO_URL = ''
URL of the "prepa_odoo" page
### Scales and labels files generation
- DAV_PATH = '/data/dav/cagette'
......
......@@ -26,13 +26,20 @@
{% endblock %}
{% block content %}
<nav class="col-6 clearfix nav">
<div id="process_state" class="fl"></div>
<button id="create_new_coop" class="btn--primary fr">Nouvelle inscription</button>
<button id="coop_list_btn" class="btn--info fr" style="display:none;">Liste</button>
<button id="shift_calendar" class="btn--inverse fr">Vue créneaux</button>
<div class="left-nav">
{% if prepa_odoo_url != '' %}
<div id="goto_prepa_odoo" class="fl">
<a class="btn--info" id="goto_prepa_odoo_button" href='{{prepa_odoo_url}}' target='_blank'>Prepa Odoo</a>
</div>
{% endif %}
<div id="process_state_container" class="fl">
<div id="process_state"></div>
</div>
</div>
<button id="create_new_coop" class="btn--primary fr">Nouvelle inscription</button>
<button id="coop_list_btn" class="btn--info fr" style="display:none;">Liste</button>
<button id="shift_calendar" class="btn--inverse fr">Vue créneaux</button>
</nav>
<section class="center" id="new_coop">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment