Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dejafait committed Jan 2, 2019
1 parent 831fb8f commit 9070457
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
6 changes: 1 addition & 5 deletions labonneboite/web/office/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,7 @@ def office_detail_html(office):
"""
Return the html corresponding to the office details.
"""
return render_template('office/pdf_detail.html', **{
'company': office,
'contact_mode': office.recommended_contact_mode, # FIXME simplify
'stages': office.recommended_contact_steps, # FIXME simplify
})
return render_template('office/pdf_detail.html', **{'office': office,})


@officeBlueprint.route('/events/toggle-details/<siret>', methods=['POST'])
Expand Down
16 changes: 8 additions & 8 deletions labonneboite/web/templates/includes/office/info_table.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<div class="company-block"><span class="company-name">{{ company.name }}</span> en un clin d'oeil</div>
<div class="company-block"><span class="company-name">{{ office.name }}</span> en un clin d'oeil</div>

<table class="company-info">
<tr>
<td style="vertical-align: top;">
<b>Secteur d'activités</b> {{ company.naf_text }}<br>
<b>Nombre de salariés</b> {{ company.headcount_text }}<br>
<b>Secteur d'activités</b> {{ office.naf_text }}<br>
<b>Nombre de salariés</b> {{ office.headcount_text }}<br>
</td>
<td style="vertical-align: top;">
{% if company.email %}<b><a href="mailto:{{ company.email }}">{{ company.email }}</a></b><br>{% endif %}
{% if company.website %}<b><a href="{{ company.website }}">{{ company.website }}</a></b><br>{% endif %}
{% if company.phone %}<b>Téléphone</b> : {{ company.phone }}<br>{% endif %}
{% if office.email %}<b><a href="mailto:{{ office.email }}">{{ office.email }}</a></b><br>{% endif %}
{% if office.website %}<b><a href="{{ office.website }}">{{ office.website }}</a></b><br>{% endif %}
{% if office.phone %}<b>Téléphone</b> : {{ office.phone }}<br>{% endif %}
<b>Adresse</b>
{% for field in company.address_fields %}
{% for field in office.address_fields %}
{{ field }}<br>
{% endfor %}
</td>
</tr>
</table>

<div class="contact-mode"><b>Mode de contact à privilégier :</b> {{ company.recommended_contact_mode_label }}</div>
<div class="contact-mode"><b>Mode de contact à privilégier :</b> {{ office.recommended_contact_mode_label }}</div>
8 changes: 4 additions & 4 deletions labonneboite/web/templates/office/pdf_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

{% include "includes/office/pdf_header.html" %}

<h1 class="headline">L'entreprise <span class="company-name">{{ company.name }}</span> est recommandée (*) par La Bonne Boite</h1>
<h1 class="headline">L'entreprise <span class="company-name">{{ office.name }}</span> est recommandée (*) par La Bonne Boite</h1>

{% include "includes/office/info_table.html" %}

<h2>La voie du succès pour travailler chez <span class="company-name">{{ company.name }}</span></h2>
<h2>La voie du succès pour travailler chez <span class="company-name">{{ office.name }}</span></h2>

<table class="planning">
<tr>
Expand All @@ -28,10 +28,10 @@ <h2>La voie du succès pour travailler chez <span class="company-name">{{ compan
<td class="done"></td>
<td class="done" style="color: #19c158;"><b>Bravo, vous avez déjà réussi la première étape !</b></td>
</tr>
{% for stage in stages %}
{% for contact_step in office.recommended_contact_steps %}
<tr>
<td class="bigcell">{{ loop.index + 1 }}</td>
<td>{{ stage }}</td>
<td>{{ contact_step }}</td>
<td>.................</td>
<td>.................</td>
</tr>
Expand Down

0 comments on commit 9070457

Please sign in to comment.