diff --git a/avisstage/models.py b/avisstage/models.py index e4d75ea..ff13c4e 100644 --- a/avisstage/models.py +++ b/avisstage/models.py @@ -31,6 +31,9 @@ class Normalien(models.Model): promotion = models.CharField(u"Promotion", max_length=40, blank=True) mail = models.EmailField(u"Adresse e-mail permanente", max_length=200, blank=True) + contactez_moi = models.BooleanField(u"Inviter les visiteurs à me contacter", + default=True) + bio = models.TextField(u"À propos de moi", blank=True, default=""); class Meta: verbose_name = u"Profil élève" diff --git a/avisstage/sass/screen.scss b/avisstage/sass/screen.scss index 39a2718..cfbf2ec 100644 --- a/avisstage/sass/screen.scss +++ b/avisstage/sass/screen.scss @@ -800,4 +800,76 @@ article.promo { } } +// FAQ +.faq-toc { + display: block; + max-width: 700px; + margin: 0 auto; + ul { + margin: 20px; + + li { + a { + color: #000; + display: block; + padding: 5px; + } + + &.toc-h1 { + display:none; + } + + &.toc-h2 a { + background: lighten($compl, 20%); + } + + &.toc-h3 a { + padding-left: 10px; + background: #fff; + font-weight: normal; + } + + a:hover { + color: #fff; + background: $compl !important; + } + } + } +} + +.faq { + article { + background: #fff; + padding: 15px; + h2 { + background: lighten($compl, 20%); + margin: -15px; + padding: 15px; + } + + h3 { + background: $vert; + color: #fff; + margin: 0 -15px; + margin-top: 30px; + padding: 10px 15px; + + &:nth-child(2) { + margin-top: 0; + } + } + + ul { + padding-left: 20px; + li { + list-style: initial; + } + } + + p { + + } + } +} + @import "_responsive.scss"; diff --git a/avisstage/static/css/screen.css b/avisstage/static/css/screen.css index 8b0c6d2..904cbf2 100644 --- a/avisstage/static/css/screen.css +++ b/avisstage/static/css/screen.css @@ -881,6 +881,74 @@ article.promo .explications > div p { margin: 15px 15px; } +/* line 804, ../../sass/screen.scss */ +.faq-toc { + display: block; + max-width: 700px; + margin: 0 auto; +} +/* line 808, ../../sass/screen.scss */ +.faq-toc ul { + margin: 20px; +} +/* line 812, ../../sass/screen.scss */ +.faq-toc ul li a { + color: #000; + display: block; + padding: 5px; +} +/* line 818, ../../sass/screen.scss */ +.faq-toc ul li.toc-h1 { + display: none; +} +/* line 822, ../../sass/screen.scss */ +.faq-toc ul li.toc-h2 a { + background: #fcc883; +} +/* line 826, ../../sass/screen.scss */ +.faq-toc ul li.toc-h3 a { + padding-left: 10px; + background: #fff; + font-weight: normal; +} +/* line 832, ../../sass/screen.scss */ +.faq-toc ul li a:hover { + color: #fff; + background: #f99b20 !important; +} + +/* line 841, ../../sass/screen.scss */ +.faq article { + background: #fff; + padding: 15px; +} +/* line 844, ../../sass/screen.scss */ +.faq article h2 { + background: #fcc883; + margin: -15px; + padding: 15px; +} +/* line 850, ../../sass/screen.scss */ +.faq article h3 { + background: #1a82dd; + color: #fff; + margin: 0 -15px; + margin-top: 30px; + padding: 10px 15px; +} +/* line 857, ../../sass/screen.scss */ +.faq article h3:nth-child(2) { + margin-top: 0; +} +/* line 862, ../../sass/screen.scss */ +.faq article ul { + padding-left: 20px; +} +/* line 864, ../../sass/screen.scss */ +.faq article ul li { + list-style: initial; +} + @media screen and (max-width: 850px) { /* line 2, ../../sass/_responsive.scss */ header { diff --git a/avisstage/templates/avisstage/base.html b/avisstage/templates/avisstage/base.html index be88103..955d573 100644 --- a/avisstage/templates/avisstage/base.html +++ b/avisstage/templates/avisstage/base.html @@ -25,11 +25,11 @@