fix: cacher les champs Stripe Price ID de la page tarification
templates/admin/tarification/index.html.twig: - Champs Stripe Price ID (unique) et Stripe Price ID (abonnement) remplaces par des input hidden pour conserver les valeurs existantes sans les afficher dans le formulaire Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -63,18 +63,8 @@
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<label class="block text-xs font-bold uppercase tracking-wider mb-1 text-gray-600">Stripe Price ID (unique)</label>
|
||||
<input type="text" name="stripeId" value="{{ price.stripeId }}" placeholder="price_xxx" class="input-glass w-full px-3 py-2 text-sm font-medium font-mono">
|
||||
</div>
|
||||
{% if price.monthPrice != '0.00' %}
|
||||
<div>
|
||||
<label class="block text-xs font-bold uppercase tracking-wider mb-1 text-gray-600">Stripe Price ID (abonnement)</label>
|
||||
<input type="text" name="stripeAbonnementId" value="{{ price.stripeAbonnementId }}" placeholder="price_xxx" class="input-glass w-full px-3 py-2 text-sm font-medium font-mono">
|
||||
</div>
|
||||
{% else %}
|
||||
<input type="hidden" name="stripeAbonnementId" value="">
|
||||
{% endif %}
|
||||
<input type="hidden" name="stripeId" value="{{ price.stripeId }}">
|
||||
<input type="hidden" name="stripeAbonnementId" value="{{ price.stripeAbonnementId }}">
|
||||
<div class="md:col-span-2 lg:col-span-3">
|
||||
<label class="block text-xs font-bold uppercase tracking-wider mb-1 text-gray-600">Description</label>
|
||||
<textarea name="description" rows="2" class="input-glass w-full px-3 py-2 text-sm font-medium">{{ price.description }}</textarea>
|
||||
|
||||
Reference in New Issue
Block a user