add link to quote website
This commit is contained in:
@@ -31,10 +31,10 @@
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
{% if blog_id != '0' %}
|
{% if blog_id != '0' %}
|
||||||
Créé le : <strong>{{ entry.created.strftime("%d-%m-%Y - %H:%M") }}</strong>
|
Créé le : <strong>{{ entry.created.strftime("%d-%m-%Y - %H:%M") }}</strong>
|
||||||
<button class="btn btn-link" type="submit" name="form.update_created">[ Mettre à jour ]</button>
|
<button class="btn btn-link" type="submit" name="form.update_created">[ Mettre à jour ]</button>
|
||||||
<br>
|
<br>
|
||||||
Modifié le : <strong>{{ entry.edited.strftime("%d-%m-%Y - %H:%M") }}</strong>
|
Modifié le : <strong>{{ entry.edited.strftime("%d-%m-%Y - %H:%M") }}</strong>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,12 @@
|
|||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="required-field" for="website">{{form.website.label}}</label>
|
<label class="required-field" for="website">{{form.website.label}}</label>
|
||||||
{{form.website(class_='form-control')}}
|
<div class="input-group">
|
||||||
|
<div class="input-group-addon">
|
||||||
|
<a href="{{ item.website }}" target="_blank"><span class="glyphicon glyphicon-globe"></span></a>
|
||||||
|
</div>
|
||||||
|
{{form.website(class_='form-control')}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|||||||
@@ -46,17 +46,17 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Valorisation</td>
|
<td>Valorisation</td>
|
||||||
<td class="text-right">{{ '{0:0.2f} €'.format(total_valeur) }}</td>
|
<td class="text-right">{{ '{0:0.2f} €'.format(total_valeur).replace(',',' ') }}</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Plus value</td>
|
<td>Plus value</td>
|
||||||
<td class="text-right">{{ '{0:0.2f} €'.format(total_pv) }}</td>
|
<td class="text-right">{{ '{0:0,.0f} €'.format(total_pv).replace(',',' ') }}</td>
|
||||||
<td class="text-right">{{ '{0:0.1f} %'.format(total_pc_value) }}</td>
|
<td class="text-right">{{ '{0:0.1f} %'.format(total_pc_value) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Safe Withdrawal Rate</td>
|
<td>Safe Withdrawal Rate</td>
|
||||||
<td class="text-right text-success"><b>{{ '{0:0.1f} %'.format(swr_amount) }}</b></td>
|
<td class="text-right text-success"><b>{{ '{0:0,.0f} €'.format(swr_amount) }}</b></td>
|
||||||
<td class="text-right text-success"><b>{{ '{0:0.1f} %'.format(swr_rate) }}</b></td>
|
<td class="text-right text-success"><b>{{ '{0:0.1f} %'.format(swr_rate) }}</b></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ def portfolio(request):
|
|||||||
ticker = yf.Ticker(symbole)
|
ticker = yf.Ticker(symbole)
|
||||||
# ticker delisted ?
|
# ticker delisted ?
|
||||||
if symbole == 'SHLDQ':
|
if symbole == 'SHLDQ':
|
||||||
cours = 0
|
cours = 0.1
|
||||||
else:
|
else:
|
||||||
cours = round(ticker.fast_info.get('lastPrice'), 3)
|
cours = round(ticker.fast_info.get('lastPrice'), 3)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user