]> git.parisson.com Git - teleforma.git/commitdiff
Change fields help text
authorYoan Le Clanche <yoanl@pilotsystems.net>
Thu, 1 Oct 2020 14:49:02 +0000 (16:49 +0200)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Thu, 1 Oct 2020 14:49:02 +0000 (16:49 +0200)
teleforma/models/core.py
teleforma/models/pro.py

index b6a373f228bbf1499571d771206c08e71409bfd9..93006c6ee45b8804e9b88e96248e02a5986a2cc7 100755 (executable)
@@ -676,6 +676,7 @@ class WebclassMixin(Model):
     #     if self.start_date > self.end_date::
     #         raise ValidationError("Dates are incorrect")
 
+
 class Conference(Displayable, WebclassMixin):
 
     sub_title       = models.CharField(_('sub title'), max_length=1024, blank=True)
@@ -718,14 +719,18 @@ class Conference(Displayable, WebclassMixin):
     suggested_conferences = models.ManyToManyField('Conference', related_name="conference_suggested_conferences",
                                                    verbose_name=_('suggested conferences'),
                                                    blank=True, null=True)
-    additional_info = tinymce.models.HTMLField(_('additional info'),
-                                               null=True,
-                                               blank=True)
-    banner_image = models.ImageField(verbose_name=_("banner image"),
+    additional_info         = tinymce.models.HTMLField(
+                                    "Informations complémentaires", 
+                                    help_text="Affiché sur la page formation du shop",
+                                    null=True, 
+                                    blank=True) 
+    banner_image            = models.ImageField(verbose_name="Bannière",
+                                    help_text="Environ 1200x255 (l'important est de respecter le ratio)",
                                     upload_to="seminars",
                                     null=True,
                                     blank=True)
-    vignette_image = models.ImageField(verbose_name=_("vignette Image"),
+    vignette_image          = models.ImageField(verbose_name="Vignette",
+                                     help_text="Environ 270x170 (l'important est de respecter le ratio)",
                                      upload_to="seminars",
                                      null=True,
                                      blank=True)
index ee53f2f8ef86667cf0f4f1bb3dbf790fbb6eb4b2..9d4a45220ac342f0aabf054b047c04f563db63d2 100644 (file)
@@ -113,15 +113,22 @@ class Seminar(ClonableMixin, Displayable):
     suggested_conferences = models.ManyToManyField('Conference', related_name="seminar_suggested_conferences",
                                                 verbose_name=_('suggested conferences'),
                                                 blank=True, null=True)
-    additional_info           = tinymce.models.HTMLField(_('additional info'), null=True, blank=True)
-    banner_image = models.ImageField(verbose_name=_("banner image"),
-                                    upload_to="conferences",
+    additional_info           = tinymce.models.HTMLField(
+                                    "Informations complémentaires", 
+                                    help_text="Affiché sur la page formation du shop",
+                                    null=True, 
+                                    blank=True)
+    banner_image = models.ImageField(verbose_name="Bannière",
+                                    help_text="Environ 1200x255 (l'important est de respecter le ratio)",
+                                    upload_to="seminars",
                                     null=True,
                                     blank=True)
-    vignette_image = models.ImageField(verbose_name=_("vignette Image"),
-                                     upload_to="conferences",
+    vignette_image = models.ImageField(verbose_name="Vignette",
+                                     help_text="Environ 270x170 (l'important est de respecter le ratio)",
+                                     upload_to="seminars",
                                      null=True,
                                      blank=True)
+                                     
 
 
     objects = DisplayableManager()