Fix help text for ad and add confirmation to nuke

master
Mark Veidemanis 2 years ago
parent 96858da88a
commit 2c828080c2
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -164,7 +164,7 @@ class AdForm(RestrictedFormMixin, ModelForm):
"enabled",
)
help_texts = {
"name": "The name of the aggregator connection.",
"name": "The name of the ad.",
"text": "The content of the ad.",
"payment_details": "Shown before a user opens a trade.",
"payment_details_real": "Shown after a user opens a trade.",

@ -2,12 +2,7 @@ from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import render
from django.urls import reverse
from django.views import View
from mixins.views import (
ObjectCreate,
ObjectDelete,
ObjectList,
ObjectUpdate,
)
from mixins.views import ObjectCreate, ObjectDelete, ObjectList, ObjectUpdate
from two_factor.views.mixins import OTPRequiredMixin
from core.clients.platforms.agora import AgoraClient
@ -91,6 +86,7 @@ class AdList(LoginRequiredMixin, OTPRequiredMixin, ObjectList):
"method": "get",
"label": "Nuke ads",
"icon": "fa-solid fa-bomb",
"confirm": True,
},
]
return context

Loading…
Cancel
Save