forked from ScoDoc/ScoDoc
correction
This commit is contained in:
parent
a7ef5d81c5
commit
38d4746f74
@ -204,7 +204,7 @@ def add_offre(id):
|
|||||||
file = form.fichier.data
|
file = form.fichier.data
|
||||||
filename = secure_filename(file.filename)
|
filename = secure_filename(file.filename)
|
||||||
file.save(os.path.join(path, filename))
|
file.save(os.path.join(path, filename))
|
||||||
offre.offre_filename = f"{filename}"
|
offre.filename = f"{filename}"
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
log = EntrepriseLog(
|
log = EntrepriseLog(
|
||||||
authenticated_user = current_user.user_name,
|
authenticated_user = current_user.user_name,
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
Type de l'offre : {{ offre.type_offre }}<br>
|
Type de l'offre : {{ offre.type_offre }}<br>
|
||||||
Missions : {{ offre.missions }}<br>
|
Missions : {{ offre.missions }}<br>
|
||||||
Durée : {{ offre.duree }}<br>
|
Durée : {{ offre.duree }}<br>
|
||||||
{% if offre.offre_filename %}
|
{% if offre.filename %}
|
||||||
<a href="{{ url_for('entreprises.download_offre', entreprise_id=entreprise.id, offre_id=offre.id, filename=offre.filename) }}">Téléchargez le fichier de l'offre</a>
|
<a href="{{ url_for('entreprises.download_offre', entreprise_id=entreprise.id, offre_id=offre.id, filename=offre.filename) }}">{{ offre.filename }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user