Fix help text for ad and add confirmation to nuke

This commit is contained in:
Mark Veidemanis 2023-03-10 20:18:17 +00:00
parent 96858da88a
commit 2c828080c2
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 3 additions and 7 deletions

View File

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

View File

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