Add help texts to AssetRule

This commit is contained in:
Mark Veidemanis 2023-02-14 07:20:47 +00:00
parent 74fdd8a735
commit 7a593b902b
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 10 additions and 0 deletions

View File

@ -351,3 +351,13 @@ class AssetRuleForm(RestrictedFormMixin, ModelForm):
"trigger_below",
"trigger_above",
)
help_texts = {
"asset": "The asset to apply the rule to.",
"aggregation": "Aggregation of the callback",
"value": "Value of the aggregation",
"original_status": "The original status of the asset.",
"status": "The status of the asset, following rules configured on the Asset Group.",
"trigger_below": "Trigger Bearish when value is below this.",
"trigger_above": "Trigger Bullish when value is above this.",
}