From 50a19640c8b7083337083298d5b99aef079b5e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Odini?= Date: Wed, 29 May 2024 13:56:24 +0200 Subject: [PATCH] feat(questions): allow an admin to add a comment (#2012) --- contributions/forms.py | 20 ++++++++++-- locale/de/LC_MESSAGES/django.mo | Bin 380 -> 26418 bytes locale/de/LC_MESSAGES/django.po | 38 ++++++++++++--------- locale/en/LC_MESSAGES/django.po | 32 ++++++++++-------- locale/es/LC_MESSAGES/django.mo | Bin 380 -> 25816 bytes locale/es/LC_MESSAGES/django.po | 38 ++++++++++++--------- locale/fr/LC_MESSAGES/django.mo | Bin 26482 -> 26801 bytes locale/fr/LC_MESSAGES/django.po | 38 ++++++++++++--------- locale/it/LC_MESSAGES/django.mo | Bin 380 -> 25698 bytes locale/it/LC_MESSAGES/django.po | 38 ++++++++++++--------- templates/questions/detail_comments.html | 32 +++++++++++++++++- templates/quizs/detail_comments.html | 1 + www/contributions/views.py | 4 +-- www/questions/views.py | 40 +++++++++++++++++++++-- 14 files changed, 201 insertions(+), 80 deletions(-) diff --git a/contributions/forms.py b/contributions/forms.py index 68e816365..fbac47e98 100644 --- a/contributions/forms.py +++ b/contributions/forms.py @@ -5,19 +5,35 @@ from core import constants -COMMENT_EDIT_FORM_FIELDS = [ +COMMENT_CREATE_FORM_FIELDS = [ field.name for field in Comment._meta.fields if field.name not in Comment.COMMENT_READONLY_FIELDS ] COMMENT_REPLY_CREATE_FORM_FIELDS = ["type", "text", "author", "parent", "status"] COMMENT_REPLY_HIDDEN_FORM_FIELDS = ["parent", "status"] +class CommentCreateForm(forms.ModelForm): + class Meta: + model = Comment + fields = COMMENT_CREATE_FORM_FIELDS + widgets = { + "text": forms.Textarea(attrs={"rows": 3}), + "description": forms.Textarea(attrs={"rows": 3}), + } + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + for field_name in ["type", "question", "quiz", "author", "publish"]: + self.fields[field_name].disabled = True + # see views.py for exceptions + + class CommentEditForm(forms.ModelForm): # publish = forms.BooleanField(required=False) class Meta: model = Comment - fields = COMMENT_EDIT_FORM_FIELDS + fields = COMMENT_CREATE_FORM_FIELDS widgets = { "text": forms.Textarea(attrs={"rows": 3}), "description": forms.Textarea(attrs={"rows": 3}), diff --git a/locale/de/LC_MESSAGES/django.mo b/locale/de/LC_MESSAGES/django.mo index 71cbdf3e9d8d54be31066ec4ad8628bc2c1f2845..03ad63c06b3e477ca6358ceab9658a55094f10d0 100644 GIT binary patch literal 26418 zcmc(n3z%J1dG|MR3ki3*2XrTpWCn63A>lfKgj{BlflO|b5D8$|bIzVQJ993>-sfbP z!2m6&Snmqn#j4S&rQQ%)Tcp}4>eph`Dxy@eqSdM>)>bWkRlnbVt+n^rXEFov>DQ;{ zVa;!^wbx$PcfIRfm+-`ihu!V*s~qBaXTq1v@w^}K{LNDo>UlT4!1E4=<8U^-6&?lu z2p$3Na^Y`>7vq0FybeAAD{#dNJ?}{P0T{uL!cFiD-}A1A5$uJZgV(@g=Xu_@U>TkU zd*@s3h9~2{2`b;$K&5*(oCV(rRlfJbL*d8Zaqxbqsyqyjh2Mn7z#qdC;WIA$=(9cV zX#8{G@vy`BFLnN2sQ5dbe-Atf|IIG^bx`TP7b=~P!4u#^Q2Blds@&g(D)09pP2oKa z&xOaGWBuJw{#{Ve+a5vpM%Qpargcy_g#gmFp`|-~Se>JV!0^JVetw5vo030F`b5s-G`}%D=~jZ-dHj z7gYHYDEYY)s{Z%Dx$q&V^dE;R*LR`X?bj~+*bZBcQ=!tE4=Iwj0;-&YQ000xl-#@( zsvIAJi{YQcBjNX;%Jg9gJq0(6lm4CMjU*os|s(hOqcfdpOU+3Q6 z03}~TP;z>Q3%>`>#=jpP1wR6n&L^Sr`81pjKkvf7;`lh6Mfi81%KIaz{(IW_4?oYA zcQ(9$@YA5;^+U6yqr$ccUQo*a08qJU*-4~ z=;PlHkA@FJ#s5dR89okGzjF&#PS1y`#}!cN^g-2Q2fP)IK()({;S%@@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qQ_wKkPyFUZibHPa-{u8QpBZDGU;)oi)8lwf*B$^ROnqJMCRq1kA#n&mQ! zb_3BU+T`Q4uy(6Wxf;%MEIii850?ObYJcD}AsFsWu@A3G;nlfh|6Yfn}%u4?1Vw1nhLoYA=9*}31rLD z3QqqeXsVG}$(1<*cKX@u{9@2Zz3F5)4IWT)vZB&Shq+Uyl~(rPyJNU)3C2DL6a8S& zY`aybeu@!Q-MqGW_#Jjg&5*?*LnjRUNXL}F(yEHSrR<-r9zDW9o^cDkdKO}#sH&~B#u)g$(b-IW2?&~=E8 zosYz|FVkADGz+E$G&6s$Kvv?7+CKOX>`KSPPj^q1eVRu>c4;e*pz8N3$Y`ydN}Y#ru*8tfFWa)>n1XPF4YS%# zZL55hm3>yqKyme6>oao}V7F?_g#okWkjWC}(19OeB{Pr0tl; zlbPmgL(P~7PJtVH7RA@)Y2n8=9dtH438QD`KKr+pzp?lK0Eg?2!TaS3t_4z>d-%}Xy$Oi$GfNlnbPQt)x~a}NbsV&miE lkdvvGUzCneW2M05>*?#N8PO%b|>s0RSuuH2VMm diff --git a/locale/de/LC_MESSAGES/django.po b/locale/de/LC_MESSAGES/django.po index 8a2e4f9bd..0bfbaef20 100644 --- a/locale/de/LC_MESSAGES/django.po +++ b/locale/de/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: quiz-anthropocene\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-21 00:44+0100\n" +"POT-Creation-Date: 2024-05-29 13:26+0200\n" "PO-Revision-Date: 2024-03-28 17:14\n" "Last-Translator: Didier Quirin \n" "Language-Team: German\n" @@ -134,6 +134,15 @@ msgstr "Englisch" msgid "French" msgstr "Französisch" +msgid "Spanish" +msgstr "Spanisch" + +msgid "Italian" +msgstr "Italienisch" + +msgid "German" +msgstr "Deutsch" + msgid "Name" msgstr "Name" @@ -293,15 +302,6 @@ msgstr "In Bearbeitung" msgid "Ignored" msgstr "Ignoriert" -msgid "Spanish" -msgstr "Spanisch" - -msgid "Italian" -msgstr "Italienisch" - -msgid "German" -msgstr "Deutsch" - msgid "Public (exported and in the application)" msgstr "Öffentlich (exportiert und in der Anwendung)" @@ -470,6 +470,9 @@ msgstr "# Like" msgid "# Dislike" msgstr "# Dislike" +msgid "Relationship type" +msgstr "Beziehungstyp" + msgid "Quiz background image" msgstr "Quiz Hintergrundbild" @@ -530,9 +533,6 @@ msgstr "Durchschnittliche Zeit (Minuten)" msgid "Order" msgstr "Sortierung" -msgid "Relationship type" -msgstr "Beziehungstyp" - msgid "Positive" msgstr "Positiv" @@ -823,7 +823,6 @@ msgstr "Bitte schreibe dein Feedback bei Discord :)" msgid "Hello %(first_name)s!" msgstr "Hallo %(first_name)s!" -#| msgid "Welcome to the contributor interface of Quiz de l'Anthropocène." msgid "Welcome to the contributor interface of the Anthropocene Quiz." msgstr "Willkommen im Contributor Interface des Anthropozene Quiz." @@ -953,6 +952,11 @@ msgstr "Sie können ein -Bild am Ende des Formulars hinzufügen msgid "Quick tool to compress images:" msgstr "Schnelles Werkzeug, um Bilder zu komprimieren:" +#, fuzzy +#| msgid "All comments" +msgid "Add a note" +msgstr "Alle Kommentare" + msgid "You are the author of this question" msgstr "Sie sind der Autor dieser Frage" @@ -1112,6 +1116,11 @@ msgstr "Das Glossarelement {glossary_item_name} wurde erstellt. msgid "Author card created!" msgstr "Autorenkarte erstellt!" +#, fuzzy +#| msgid "Author card created!" +msgid "Author card updated!" +msgstr "Autorenkarte erstellt!" + msgid "The question was updated." msgstr "Die Frage wurde aktualisiert." @@ -1135,4 +1144,3 @@ msgstr "Der Tag wurde aktualisiert." #, python-brace-format msgid "The tag {tag_name} was created." msgstr "Der Tag {tag_name} wurde erstellt." - diff --git a/locale/en/LC_MESSAGES/django.po b/locale/en/LC_MESSAGES/django.po index a0b6456cd..cb7c42ba8 100644 --- a/locale/en/LC_MESSAGES/django.po +++ b/locale/en/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-21 00:44+0100\n" +"POT-Creation-Date: 2024-05-29 13:26+0200\n" "PO-Revision-Date: 2023-02-12 20:12+0100\n" "Last-Translator: Didier Quirin \n" "Language-Team: \n" @@ -134,6 +134,15 @@ msgstr "" msgid "French" msgstr "" +msgid "Spanish" +msgstr "" + +msgid "Italian" +msgstr "" + +msgid "German" +msgstr "" + msgid "Name" msgstr "" @@ -293,15 +302,6 @@ msgstr "" msgid "Ignored" msgstr "" -msgid "Spanish" -msgstr "" - -msgid "Italian" -msgstr "" - -msgid "German" -msgstr "" - msgid "Public (exported and in the application)" msgstr "" @@ -470,6 +470,9 @@ msgstr "" msgid "# Dislike" msgstr "" +msgid "Relationship type" +msgstr "" + msgid "Quiz background image" msgstr "" @@ -530,9 +533,6 @@ msgstr "" msgid "Order" msgstr "" -msgid "Relationship type" -msgstr "" - msgid "Positive" msgstr "" @@ -954,6 +954,9 @@ msgstr "" msgid "Quick tool to compress images:" msgstr "" +msgid "Add a note" +msgstr "" + msgid "You are the author of this question" msgstr "" @@ -1113,6 +1116,9 @@ msgstr "" msgid "Author card created!" msgstr "" +msgid "Author card updated!" +msgstr "" + msgid "The question was updated." msgstr "" diff --git a/locale/es/LC_MESSAGES/django.mo b/locale/es/LC_MESSAGES/django.mo index 71cbdf3e9d8d54be31066ec4ad8628bc2c1f2845..cfdf8a6f2814061b2dee17e5f879c97b022c4646 100644 GIT binary patch literal 25816 zcmc(n3z!^LnZFB&T*Cc+lTZOdW+XES370U0gvlf!1DTM^1O$Ot(_J%Dp}VWo)txXw zME1XcfXb?iu0+M?%8D9M5n&^{AOo%_F0SlFWdYX<0)j4zitDcK`#a}Ub@g0Ge4hXF zY(JcN>zq1uuHX62cP`+mRe z=XA>l;o|+#CK6RQdKi!SnWj2g3v5;ZRkX0S|x+;QsIecnG}2g_q!d z_^*Zs!FM|Uhn)XTsQC9e|2N=a_@8p&{|S}u9w*v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xUF!^Ta5hC?W~PhW~hEKmlNhh)prA;*L*ehq}u^-G)3aix(s8=ejy%%q> zxpOwi?h!>}qbVoJT&~w8G-Or>^lCv(f~03Ip>>xu6Skf=kZ8Rz&U(=Hh}#~jR1A{=v`Mu zOpWRX(_q>UV09gE7j1NhE~Dj4hHP|Y4>J3+A!n|l(Q2bR64q>_uPSRd$i6TOIpoW2 zJiFpmkugEj0dRGC;b@|3Y^IpG&r8kk z$5n{3q>5pDW8_~pk3j9kG0Mu-Muv$hF{n^mwP)rQ`3unV!ocwq~yuu-gslG`pM1 zRY!&_BifAvM!>3;1AF7MGYuzq&Md8?knFxV|L)FAjOO6W1vZyRewQwMVU%*z(tOhX zoAw{#s#U6zo@NP(;Q;fh8yNJECRvr*7)N->}yK?SOqtjo}x+#HK z%KH=!^4FZFBy6o`7pnsFEE~bhUWFQqQmygVj&4U{bU&MEa_pjt zqi$=vajA?wCNub4XQ-DUf#!44D$@4B;~>v!f3fL64W%3Z&c@fTL�xNNweOGVmo&l>MLXnpgLHlUbzK}4Jp8SEJ+-6!{am?x z5{pZ8Ly8jfigOZ6@{6n#+(LbP6#N{0T@`FxeH}f092{L-f?R`x?SM-2(n}N5Q*}d9 s6LYN;d>sAULqV3<`1m;FWa{M?r6bf>DRB9E`nn=qWH?#Wu8ffZ08A)4dH?_b diff --git a/locale/es/LC_MESSAGES/django.po b/locale/es/LC_MESSAGES/django.po index 5d351e13b..9a97a0eab 100644 --- a/locale/es/LC_MESSAGES/django.po +++ b/locale/es/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: quiz-anthropocene\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-21 00:44+0100\n" +"POT-Creation-Date: 2024-05-29 13:26+0200\n" "PO-Revision-Date: 2024-03-28 17:14\n" "Last-Translator: Didier Quirin \n" "Language-Team: Spanish\n" @@ -134,6 +134,15 @@ msgstr "Inglés" msgid "French" msgstr "Francés" +msgid "Spanish" +msgstr "Español" + +msgid "Italian" +msgstr "Italiano" + +msgid "German" +msgstr "Alemán" + msgid "Name" msgstr "Nombre" @@ -293,15 +302,6 @@ msgstr "En progreso" msgid "Ignored" msgstr "Ignorado" -msgid "Spanish" -msgstr "Español" - -msgid "Italian" -msgstr "Italiano" - -msgid "German" -msgstr "Alemán" - msgid "Public (exported and in the application)" msgstr "Público (exportado y en la aplicación)" @@ -470,6 +470,9 @@ msgstr "# Me gusta" msgid "# Dislike" msgstr "# Dislike" +msgid "Relationship type" +msgstr "Tipo de relación" + msgid "Quiz background image" msgstr "Imagen de fondo del cuestionario" @@ -530,9 +533,6 @@ msgstr "Tiempo promedio (minutos)" msgid "Order" msgstr "Pedido" -msgid "Relationship type" -msgstr "Tipo de relación" - msgid "Positive" msgstr "Positivo" @@ -823,7 +823,6 @@ msgstr "Por favor publica tus comentarios sobre Discord :)" msgid "Hello %(first_name)s!" msgstr "¡Hola %(first_name)s!" -#| msgid "Welcome to the contributor interface of Quiz de l'Anthropocène." msgid "Welcome to the contributor interface of the Anthropocene Quiz." msgstr "Bienvenido a la interfaz contribuidor de Antropocene." @@ -953,6 +952,11 @@ msgstr "" msgid "Quick tool to compress images:" msgstr "Herramienta rápida para comprimir imágenes:" +#, fuzzy +#| msgid "All comments" +msgid "Add a note" +msgstr "Todos los comentarios" + msgid "You are the author of this question" msgstr "" @@ -1112,6 +1116,11 @@ msgstr "Se ha creado el elemento de glosario {glossary_item_name}{tag_name} was created." msgstr "Se ha creado la etiqueta {tag_name}." - diff --git a/locale/fr/LC_MESSAGES/django.mo b/locale/fr/LC_MESSAGES/django.mo index a2dceb671c0e1f474dd41cd17f6ba50d8d07e5b2..994adfecff50ebe99a814d7c50c4aa6e36b66c6d 100644 GIT binary patch delta 8199 zcmZYE30PKD9>?*6BAXzh0xH{!f~bI?-~y$@Od1Eon6MvW;jztrI3#OI0M@x8gl~YV@E9P;y4E*Xl*I*Dn zhMM4JY>C@39CxCgWgoV|4>1hCz;@iZk7&Y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HPGRxr5}%4@+VOPn2Dh{8+8^+(WMSQCZm~sjvCq5sD^J^@1x#( z&jQ|Utd44EF!Hf9(=iT@pk{st%VW7h=a6|~Q_4}O!`lZt;B$qnzh0xmR3zYCY=x1- z`QriyVtZVQ;dlY#@B!*j*5<@&pp8)z$;5Kl1GOT(P%AP5Jyg$6OH^7(EY$u#O=bh} zKcXf#@R4$-CHzL{DN+(~mUxQDr0y4tB52p0)Oi)^Lx`Wr>rd;($eA@uiFC?J6^X9y z90wZ`tI{7G*1#r`uHfFA*Q=?{FU=a2YtwIw)Ok*1)J}J z`og_N{7O6^a*0P%p>3xhmAwd81V7IaQIB*$(R@k_r!HOvQjon~$=Vn73hp3&CrSuD z6Xqu(o@>{z3Zd`7da5DkdlL=2(-w{0rEt^E(DFcLo|YLQoJimzh= zv6#rA97$Xz{|2G-9WlwBbAIl@RpL6)l=y@2=a~_NQhNvYr?)2gbVB``kMu*T$BlzA zPz6#0%AJU{7Ui25PQ;N{DkHLqSBb{9ZaMjSgpxPmOZ`_ELj0}%hmvVa z%Qb`5T6q#ZGAUv$h83CH}aiqeQT?jP5g^^pU5E&5ib2j z(Va{jq4W(wl^H@q9f%p^TM)yEY9#^Tk*>ki-l24WP#Q;UB|1_+M-?_DQC2!Zyh3bK zfwaZJ{X3LT@Cs=kQZC0mslJV+Ht&4*;6i4jw+R!E5H>6}xW|NY#%%s4^Ny%wRjZ&jhnxv;DCnh&aPA)m0 znNyO~dW}cpk`t}#$C}uvo_p4gvqWW$oiKrXyP}Dsi$)ca>s&Ny!*6Y3eKsU^Dy!<> cqquP5q@uB7CPqyfGGfEUeyjXS=06ere*#%n#{d8T diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po index 497807db0..2f5955d33 100644 --- a/locale/fr/LC_MESSAGES/django.po +++ b/locale/fr/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: quiz-anthropocene\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-21 00:44+0100\n" +"POT-Creation-Date: 2024-05-29 13:26+0200\n" "PO-Revision-Date: 2024-03-28 17:14\n" "Last-Translator: Didier Quirin \n" "Language-Team: French\n" @@ -134,6 +134,15 @@ msgstr "Anglais" msgid "French" msgstr "Français" +msgid "Spanish" +msgstr "Espagnol" + +msgid "Italian" +msgstr "Italien" + +msgid "German" +msgstr "Allemand" + msgid "Name" msgstr "Nom" @@ -293,15 +302,6 @@ msgstr "En cours" msgid "Ignored" msgstr "Ignoré" -msgid "Spanish" -msgstr "Espagnol" - -msgid "Italian" -msgstr "Italien" - -msgid "German" -msgstr "Allemand" - msgid "Public (exported and in the application)" msgstr "Publique (dans l'export et dans l'application)" @@ -470,6 +470,9 @@ msgstr "# J'aime" msgid "# Dislike" msgstr "# J'aime pas" +msgid "Relationship type" +msgstr "Type de relation" + msgid "Quiz background image" msgstr "Image pour illustrer le quiz" @@ -530,9 +533,6 @@ msgstr "Durée moyenne (en minutes)" msgid "Order" msgstr "Ordre" -msgid "Relationship type" -msgstr "Type de relation" - msgid "Positive" msgstr "Positif" @@ -823,7 +823,6 @@ msgstr "Faites-nous tous vos retours via Discord :)" msgid "Hello %(first_name)s!" msgstr "Bonjour %(first_name)s !" -#| msgid "Welcome to the contributor interface of Quiz de l'Anthropocène." msgid "Welcome to the contributor interface of the Anthropocene Quiz." msgstr "Bienvenue sur l'interface contributeur du Quiz de l'Anthropocène." @@ -953,6 +952,11 @@ msgstr "Vous pouvez ajouter une image à la fin du formulaire" msgid "Quick tool to compress images:" msgstr "Petit outil pour compresser les images :" +#, fuzzy +#| msgid "All comments" +msgid "Add a note" +msgstr "Tous les commentaires" + msgid "You are the author of this question" msgstr "Vous êtes l'auteur de cette question" @@ -1112,6 +1116,11 @@ msgstr "L'article de glossaire {glossary_item_name} a été cr msgid "Author card created!" msgstr "Fiche auteur crée !" +#, fuzzy +#| msgid "Author card created!" +msgid "Author card updated!" +msgstr "Fiche auteur crée !" + msgid "The question was updated." msgstr "La question a été mise à jour." @@ -1135,4 +1144,3 @@ msgstr "Le tag a été mis à jour." #, python-brace-format msgid "The tag {tag_name} was created." msgstr "Le tag {tag_name} a été créé." - diff --git a/locale/it/LC_MESSAGES/django.mo b/locale/it/LC_MESSAGES/django.mo index 71cbdf3e9d8d54be31066ec4ad8628bc2c1f2845..387ac18e3369b7fbd06aa3290106b655299d8928 100644 GIT binary patch literal 25698 zcmb`O37lS4efKYm5CREnAP^!qfh04KnQSb{kcG))n~;67u!!-_^W2%a;hE=-&wZW= zlZfxiWaKx_jk^@%S>hkYUo_EokJ?~BMVmKb|gh#+# z@Gw|+;d|kE_}>NJ0>1z&aLQ?(cR0KjM)3V`1N?7z8SL~uZxy^9UJPG=KZa|jdER6= zbGqd+I0^qnQ2AD&(rv(T@Jguiy$c=!Z-7U`o1m(48=MI5gA?G_;c@VXF8mkpDEzO$ zW8k>ct^Z^w|4gX(=Q;mccmn=QUHAZ0x_<_h&JFNbcr#SKpMom)7op1g6-X0!kH9nG zFP;CCGpxT2DqiSVg(u_R4Ndwk{AQ?f-42!Cz3%-t;PLo>2@Tr=h<82~>HWg@~s2B2@l=fJ%45EZfhMpz@yq6+Ry-zc#3T>VlG= zKB#toC!7LrhD!flsB-OtYPZK+_zO_wco{0agPV{AI0dSl%c08E4<#oTcK#_)^*9|WpM_B6?1W19GPnp{4%J_` z!8gIXp~`tbRQzY4@_p6uAYLloVNmHD1y$ZtT=;ayCaChYI-Ua$!N1tOzW_?URzb;W z*@eFoj>msBJOW-1mCj#5<#P)h4?p3;Kkaxg97p(rQ009Xs{bBw{->eJ`*V0U{GAJL zIm^n!e5mx7Lw&y%s$Dih^_-%MFoJyzZJ0EtyCU_*QI9>sL{8z)H;B8Rx z?}8iQy-@WV-(uzTSg3mVQ0X*7)#Dtf_P7wvf!iP|&$|Yye{YB5;pd>z+Xt1;!%*e? z4pjc%bMK#Y@1KROg#Q{!u6#V|mj!SE+zcneYoOA<5h~q}LXF4UUHBKF(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ldV*4KH+i(f?v~Y))CwhPEAf-Ig%YUY>w8k z$*}0Tsws^Nl*hjOzvwJEzvl(N~NL-G4IOl8);% zqvEQOt5Dcn%n7S>DkO7Ui>`w8VV?7?9f>*W-E0t#5t`qHDz1*Vvb~uOi=c^RZ|cz! zhIIp-&-M9|w)5pPVVvyA)U?L1odsCVS=$?_%3FW|r12zc+Dvd*HR(2OAj?)Y#sqYx zT|H=(X_84ywnvafh+Tw21v0Dc^>0mO>DfK2R#{3;ilio3%d-~u*3IHSzF3iUS3I!l zQqyp6dh27<>r?w@kf$Xzn5UP;ELM%;*r9LQCe2c+jLvncFese$8~vtA6u#QOMGNoq zQzv`Z$d!W1YpcVyzI2zmrkK6cq`At;3ZecoU#OIP{$P4n%iYq_%EKR^^KZ@8SPmp`?tlpu1blgyxSF zTe}k#O@P@*%tFy^_E3j?T&{AnpJ@*^hWXIIdZ|4Uv+tM9@lF-G4SSQ2wo&bX~^s>vG7>jU35#kbS^B$qVY9F(O&85F;9)p+_vL( z7R1a$+RG}uriC&soX*>NZ*PO`yM-IWw3q()+yG0DL5!dO_}IXRffGbmQ4>p{^lMiYs}`T49;LoefXa zMK7JJ;ZDOEfq+Gs&?!{0(nx5*3~(2~kZPO4h>c37DJ=u-H8Aau@2AF5XB\n" "Language-Team: Italian\n" @@ -134,6 +134,15 @@ msgstr "Inglese" msgid "French" msgstr "Francese" +msgid "Spanish" +msgstr "Spagnolo" + +msgid "Italian" +msgstr "Italiano" + +msgid "German" +msgstr "Tedesco" + msgid "Name" msgstr "Nome" @@ -293,15 +302,6 @@ msgstr "In corso" msgid "Ignored" msgstr "Ignorato" -msgid "Spanish" -msgstr "Spagnolo" - -msgid "Italian" -msgstr "Italiano" - -msgid "German" -msgstr "Tedesco" - msgid "Public (exported and in the application)" msgstr "Pubblico (esportato e nella domanda)" @@ -470,6 +470,9 @@ msgstr "# Mi piace" msgid "# Dislike" msgstr "# Dislike" +msgid "Relationship type" +msgstr "Tipo di relazione" + msgid "Quiz background image" msgstr "Immagine di sfondo Quiz" @@ -530,9 +533,6 @@ msgstr "Tempo medio (minuti)" msgid "Order" msgstr "Ordine" -msgid "Relationship type" -msgstr "Tipo di relazione" - msgid "Positive" msgstr "Positivo" @@ -823,7 +823,6 @@ msgstr "Invia il tuo feedback su Discord :)" msgid "Hello %(first_name)s!" msgstr "Ciao %(first_name)s!" -#| msgid "Welcome to the contributor interface of Quiz de l'Anthropocène." msgid "Welcome to the contributor interface of the Anthropocene Quiz." msgstr "Benvenuto nell'interfaccia contributor del Quiz." @@ -953,6 +952,11 @@ msgstr "È possibile aggiungere un'immagine alla fine del modu msgid "Quick tool to compress images:" msgstr "Strumento rapido per comprimere le immagini:" +#, fuzzy +#| msgid "All comments" +msgid "Add a note" +msgstr "Tutti i commenti" + msgid "You are the author of this question" msgstr "Sei l'autore di questa domanda" @@ -1112,6 +1116,11 @@ msgstr "L'elemento glossario {glossary_item_name} è stato crea msgid "Author card created!" msgstr "Autore della carta creato!" +#, fuzzy +#| msgid "Author card created!" +msgid "Author card updated!" +msgstr "Autore della carta creato!" + msgid "The question was updated." msgstr "La domanda è stata aggiornata." @@ -1135,4 +1144,3 @@ msgstr "L'etichetta è stata aggiornata." #, python-brace-format msgid "The tag {tag_name} was created." msgstr "Il tag {tag_name} è stato creato." - diff --git a/templates/questions/detail_comments.html b/templates/questions/detail_comments.html index b5b33d0a5..03d348b8f 100644 --- a/templates/questions/detail_comments.html +++ b/templates/questions/detail_comments.html @@ -1,6 +1,6 @@ {% extends "questions/detail_base.html" %} {% load render_table from django_tables2 %} -{% load i18n %} +{% load i18n django_bootstrap5 %} {% block question_detail_content %}
@@ -12,4 +12,34 @@ {% endif %}
+ +
+ + +
+
+
+
+ {% translate "Add a note" %} +
+
+
+ {% csrf_token %} + +
+
+ {% bootstrap_form form alert_error_type="all" %} +
+
+ +
+
+ {% bootstrap_button button_type="submit" button_class="btn-primary" content=_("Add") %} +
+
+
+
+
+
+
{% endblock %} diff --git a/templates/quizs/detail_comments.html b/templates/quizs/detail_comments.html index 75114145e..25d73c1e7 100644 --- a/templates/quizs/detail_comments.html +++ b/templates/quizs/detail_comments.html @@ -8,6 +8,7 @@ {% render_table table %}
+
Ajouter un commentaire diff --git a/www/contributions/views.py b/www/contributions/views.py index 6e4cd171e..751b465e1 100644 --- a/www/contributions/views.py +++ b/www/contributions/views.py @@ -8,7 +8,7 @@ from api.contributions.serializers import CommentFullSerializer from contributions.filters import CommentFilter -from contributions.forms import COMMENT_EDIT_FORM_FIELDS, CommentEditForm, CommentReplyCreateForm +from contributions.forms import COMMENT_CREATE_FORM_FIELDS, CommentEditForm, CommentReplyCreateForm from contributions.models import Comment from contributions.tables import CommentTable from core import constants @@ -135,7 +135,7 @@ def get_context_data(self, **kwargs): else: # probably a create action # we create the diff ourselves because there isn't any previous record - delta_fields = COMMENT_EDIT_FORM_FIELDS + delta_fields = COMMENT_CREATE_FORM_FIELDS delta_new = [{"field": k, "new": v} for k, v in record.__dict__.items() if k in delta_fields if v] context["comment_history_delta"].append(delta_new) return context diff --git a/www/questions/views.py b/www/questions/views.py index 7b8f0115c..ffa409231 100644 --- a/www/questions/views.py +++ b/www/questions/views.py @@ -9,13 +9,16 @@ from django.utils.safestring import mark_safe from django.utils.translation import gettext_lazy as _ from django.views.generic import CreateView, DetailView, ListView, UpdateView +from django.views.generic.edit import FormMixin from django_filters.views import FilterView -from django_tables2.views import SingleTableMixin, SingleTableView +from django_tables2.views import SingleTableMixin from activity.utilities import create_event from api.questions.serializers import QuestionFullStringSerializer +from contributions.forms import CommentCreateForm from contributions.models import Comment from contributions.tables import CommentTable +from core import constants from core.forms import form_filters_cleaned_dict, form_filters_to_list from core.mixins import ContributorUserRequiredMixin from core.utils.s3 import S3Upload @@ -144,11 +147,12 @@ def get_context_data(self, **kwargs): return context -class QuestionDetailCommentListView(ContributorUserRequiredMixin, SingleTableView): +class QuestionDetailCommentListView(ContributorUserRequiredMixin, SingleTableMixin, FormMixin, ListView): model = Comment template_name = "questions/detail_comments.html" context_object_name = "question_contributions" table_class = CommentTable + form_class = CommentCreateForm def get_queryset(self): qs = super().get_queryset() @@ -161,6 +165,38 @@ def get_context_data(self, **kwargs): context["question"] = Question.objects.get(id=self.kwargs.get("pk")) return context + def get_initial(self): + return { + "type": constants.COMMENT_TYPE_COMMENT_CONTRIBUTOR, + "question": self.kwargs.get("pk"), + "status": constants.COMMENT_STATUS_PROCESSED, + "author": self.request.user, + "parent": None, + } + + def post(self, request, *args, **kwargs): + form_class = self.get_form_class() + form = self.get_form(form_class) + if form.is_valid(): + return self.form_valid(form) + else: + return self.form_invalid(form) + + def form_valid(self, form): + form.save() + # response + messages.add_message(self.request, messages.SUCCESS, self.get_success_message(form.cleaned_data)) + return HttpResponseRedirect(self.get_success_url()) + + def form_invalid(self, form): + return self.render_to_response(self.get_context_data()) + + def get_success_message(self, cleaned_data): + return _("Your message was created.") + + def get_success_url(self): + return reverse_lazy("questions:detail_comments", args=[self.kwargs.get("pk")]) + class QuestionDetailStatsView(ContributorUserRequiredMixin, DetailView): model = QuestionAggStat