Use uniqid for wishes and users
This commit is contained in:
parent
ee063cd439
commit
946b30b486
10 changed files with 77 additions and 9 deletions
|
@ -41,7 +41,7 @@
|
|||
</div>
|
||||
</a>
|
||||
<div class="card-footer offer-footer">
|
||||
<a class="user-link" href="{{ path('user_public', { 'id': offer.byuser.id }) }}">
|
||||
<a class="user-link" href="{{ path('user_public', { 'urlId': offer.byuser.urlId }) }}">
|
||||
<p class="username"><i class="fas fa-user mt-3"></i> {{ offer.byUser }}</p>
|
||||
</a>
|
||||
<p class="zip"><i class="fas fa-map-marker-alt mt-3"></i> {{ offer.zipCode }}</p>
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
</div>
|
||||
</a>
|
||||
<div class="card-footer offer-footer">
|
||||
<a class="user-link" href="{{ path('user_public', { 'id': offer.byuser.id }) }}">
|
||||
<a class="user-link" href="{{ path('user_public', { 'urlId': offer.byuser.id }) }}">
|
||||
<p class="username"><i class="fas fa-user mt-3"></i> {{ offer.byUser }}</p>
|
||||
</a>
|
||||
<p class="zip"><i class="fas fa-map-marker-alt mt-3"></i> {{ offer.zipCode }}</p>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<h1>{{ user.username }} wants to trade!</h1>
|
||||
|
||||
<p>Checkout {{ user.username}}'s offers:</p>
|
||||
<a href="{{ url('user_public', {'id': id}) }}">Link</a>
|
||||
<a href="{{ url('user_public', {'urlId': urlId}) }}">Link</a>
|
||||
<p>Reply to this email to start trading.</p>
|
|
@ -28,7 +28,7 @@
|
|||
{% for wish in wishes %}
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center"> {{ wish.title }}
|
||||
<span>
|
||||
<a href="{{ path('delete_wish', {'id': wish.id}) }}" class="btn btn-danger" aria-label="Delete"><i class="fas fa-trash-alt" aria-hidden="true" title="Delete"></i></a>
|
||||
<a href="{{ path('delete_wish', {'urlId': wish.id}) }}" class="btn btn-danger" aria-label="Delete"><i class="fas fa-trash-alt" aria-hidden="true" title="Delete"></i></a>
|
||||
</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
|
Reference in a new issue