new: add a direct link toward article's admin edit form from the public article page
This commit is contained in:
@@ -50,7 +50,16 @@
|
|||||||
<div class="col-lg-3 col-xs-12">
|
<div class="col-lg-3 col-xs-12">
|
||||||
@if (auth('web')->check() && !empty($article['available_sale_channels']))
|
@if (auth('web')->check() && !empty($article['available_sale_channels']))
|
||||||
<div id="article-admin-offers" class="alert alert-info p-2 mb-3">
|
<div id="article-admin-offers" class="alert alert-info p-2 mb-3">
|
||||||
<strong class="d-block">Offres :</strong>
|
<div class="d-flex justify-content-between align-items-center">
|
||||||
|
<strong class="d-block mb-0">Offres :</strong>
|
||||||
|
<a href="{{ route('Admin.Shop.Articles.edit', $article['id']) }}" class="text-dark d-inline-flex align-items-center gap-1" style="font-size: 0.95rem;" title="Ouvrir la fiche article en admin" target="_blank" rel="noopener">
|
||||||
|
<svg aria-hidden="true" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||||
|
<path d="M12 20h9" />
|
||||||
|
<path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4Z" />
|
||||||
|
</svg>
|
||||||
|
<span class="sr-only">Éditer l'article</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
<ul class="list-unstyled mb-0 small">
|
<ul class="list-unstyled mb-0 small">
|
||||||
@php
|
@php
|
||||||
$currentSaleChannelId = $article['current_sale_channel']['id'] ?? null;
|
$currentSaleChannelId = $article['current_sale_channel']['id'] ?? null;
|
||||||
|
|||||||
Reference in New Issue
Block a user