From a3b153ea6e30da275edf3e34b8d2f8ca1bb436cc Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 7 Aug 2023 13:39:30 +0200 Subject: [PATCH] Cutting stuff out. --- src/ajaxable/locale/de/LC_MESSAGES/django.mo | Bin 380 -> 0 bytes src/ajaxable/locale/de/LC_MESSAGES/django.po | 22 ----------------- src/ajaxable/locale/en/LC_MESSAGES/django.mo | Bin 337 -> 0 bytes src/ajaxable/locale/en/LC_MESSAGES/django.po | 21 ---------------- src/ajaxable/locale/es/LC_MESSAGES/django.mo | Bin 380 -> 0 bytes src/ajaxable/locale/es/LC_MESSAGES/django.po | 22 ----------------- src/ajaxable/locale/fr/LC_MESSAGES/django.mo | Bin 379 -> 0 bytes src/ajaxable/locale/fr/LC_MESSAGES/django.po | 22 ----------------- src/ajaxable/locale/it/LC_MESSAGES/django.mo | Bin 380 -> 0 bytes src/ajaxable/locale/it/LC_MESSAGES/django.po | 22 ----------------- src/ajaxable/locale/jp/LC_MESSAGES/django.mo | Bin 337 -> 0 bytes src/ajaxable/locale/jp/LC_MESSAGES/django.po | 21 ---------------- src/ajaxable/locale/lt/LC_MESSAGES/django.mo | Bin 443 -> 0 bytes src/ajaxable/locale/lt/LC_MESSAGES/django.po | 23 ------------------ src/ajaxable/locale/pl/LC_MESSAGES/django.mo | Bin 503 -> 0 bytes src/ajaxable/locale/pl/LC_MESSAGES/django.po | 22 ----------------- src/ajaxable/locale/ru/LC_MESSAGES/django.mo | Bin 502 -> 0 bytes src/ajaxable/locale/ru/LC_MESSAGES/django.po | 23 ------------------ src/ajaxable/locale/uk/LC_MESSAGES/django.mo | Bin 454 -> 0 bytes src/ajaxable/locale/uk/LC_MESSAGES/django.po | 23 ------------------ src/ajaxable/templates/ajaxable/form.html | 4 +-- .../templates/ajaxable/form_on_page.html | 1 - src/ajaxable/utils.py | 13 +--------- 23 files changed, 2 insertions(+), 237 deletions(-) delete mode 100644 src/ajaxable/locale/de/LC_MESSAGES/django.mo delete mode 100644 src/ajaxable/locale/de/LC_MESSAGES/django.po delete mode 100644 src/ajaxable/locale/en/LC_MESSAGES/django.mo delete mode 100644 src/ajaxable/locale/en/LC_MESSAGES/django.po delete mode 100644 src/ajaxable/locale/es/LC_MESSAGES/django.mo delete mode 100644 src/ajaxable/locale/es/LC_MESSAGES/django.po delete mode 100644 src/ajaxable/locale/fr/LC_MESSAGES/django.mo delete mode 100644 src/ajaxable/locale/fr/LC_MESSAGES/django.po delete mode 100644 src/ajaxable/locale/it/LC_MESSAGES/django.mo delete mode 100644 src/ajaxable/locale/it/LC_MESSAGES/django.po delete mode 100644 src/ajaxable/locale/jp/LC_MESSAGES/django.mo delete mode 100644 src/ajaxable/locale/jp/LC_MESSAGES/django.po delete mode 100644 src/ajaxable/locale/lt/LC_MESSAGES/django.mo delete mode 100644 src/ajaxable/locale/lt/LC_MESSAGES/django.po delete mode 100644 src/ajaxable/locale/pl/LC_MESSAGES/django.mo delete mode 100644 src/ajaxable/locale/pl/LC_MESSAGES/django.po delete mode 100644 src/ajaxable/locale/ru/LC_MESSAGES/django.mo delete mode 100644 src/ajaxable/locale/ru/LC_MESSAGES/django.po delete mode 100644 src/ajaxable/locale/uk/LC_MESSAGES/django.mo delete mode 100644 src/ajaxable/locale/uk/LC_MESSAGES/django.po diff --git a/src/ajaxable/locale/de/LC_MESSAGES/django.mo b/src/ajaxable/locale/de/LC_MESSAGES/django.mo deleted file mode 100644 index 71cbdf3e9d8d54be31066ec4ad8628bc2c1f2845..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 380 zcmYL@K~KUk7=|%=+R?Lz&%}d9i{c3jGZa>EvE7z2Nc2{r&Y96JZ6W$Y{CoZuJ5A(G zp7i_Dx9RhJeDu}vIq;l#&OC>nD^HugXY4QU{MmN?lNtRkR}RH%w3NnHT4Bh@vF%H^(V-=Ii1iQ$Qo9Pt!I1Rhe%oml#`f^NEGFCKEL->Rc=KoQ6a?!10%_7(V7ey8`V`;n{war z20Z3;uifk31QV^CRQ|iq#``$=;jWunRB8aLH({)F;i8zL{=V00y-I_qTIqGAN(}v% i$^}`yHKImSZ8jEzYJOK6-VWez49^vuhS0kh1f3tbb!oc* diff --git a/src/ajaxable/locale/de/LC_MESSAGES/django.po b/src/ajaxable/locale/de/LC_MESSAGES/django.po deleted file mode 100644 index c991b5122..000000000 --- a/src/ajaxable/locale/de/LC_MESSAGES/django.po +++ /dev/null @@ -1,22 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: ajaxable/utils.py:63 -msgid "Send" -msgstr "" diff --git a/src/ajaxable/locale/en/LC_MESSAGES/django.mo b/src/ajaxable/locale/en/LC_MESSAGES/django.mo deleted file mode 100644 index 6c5906d1cd061dff54de8b533942893de34efc9e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 337 zcmYL@Jx{|h5Qd9j%E-dP;DHUUz!pqFHI3Uw*h!U-O0b#M1fyU_j*H-j@b~yFTo(FD zk8Zg4bkFbc(a#8TfSe*{$RTop42h8wT;AXuI{#UD_pUbq(k-mD?~SvRtk~?4EjU^8 zqD=EFDs<<30NFQY3lF=dhsseBt#T;zrx|V_Q9)Dk#909{hlG)3PGx%joM$`|st-_k zW&2hI=P8-jLXeC}P9|KkR7_ct6ud0&v1*&0YBW?@eNZA;wx|b_i4fD)jGb@x9W;=s z, YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: ajaxable/utils.py:63 -msgid "Send" -msgstr "" diff --git a/src/ajaxable/locale/es/LC_MESSAGES/django.mo b/src/ajaxable/locale/es/LC_MESSAGES/django.mo deleted file mode 100644 index 71cbdf3e9d8d54be31066ec4ad8628bc2c1f2845..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 380 zcmYL@K~KUk7=|%=+R?Lz&%}d9i{c3jGZa>EvE7z2Nc2{r&Y96JZ6W$Y{CoZuJ5A(G zp7i_Dx9RhJeDu}vIq;l#&OC>nD^HugXY4QU{MmN?lNtRkR}RH%w3NnHT4Bh@vF%H^(V-=Ii1iQ$Qo9Pt!I1Rhe%oml#`f^NEGFCKEL->Rc=KoQ6a?!10%_7(V7ey8`V`;n{war z20Z3;uifk31QV^CRQ|iq#``$=;jWunRB8aLH({)F;i8zL{=V00y-I_qTIqGAN(}v% i$^}`yHKImSZ8jEzYJOK6-VWez49^vuhS0kh1f3tbb!oc* diff --git a/src/ajaxable/locale/es/LC_MESSAGES/django.po b/src/ajaxable/locale/es/LC_MESSAGES/django.po deleted file mode 100644 index c991b5122..000000000 --- a/src/ajaxable/locale/es/LC_MESSAGES/django.po +++ /dev/null @@ -1,22 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: ajaxable/utils.py:63 -msgid "Send" -msgstr "" diff --git a/src/ajaxable/locale/fr/LC_MESSAGES/django.mo b/src/ajaxable/locale/fr/LC_MESSAGES/django.mo deleted file mode 100644 index 2c90dd0c81aca562856271a6885816b565885734..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 379 zcmYL@y-ve06h@0+%E-)c2L=$hP^RMksHSmCgq=ibS_wAOnqZXLk?kUQ5MGaG!2yYW z(vk0#Kg;L)_~@$>au7HPoCXd9mw`6@01213;cPqq$*p;lYmbr*T1o4a(HL?veIRoR zD_Sg)ER71;80!&tmD-@YUFA?|FhqHV3i+e|LVdy_A hALaGViW<#~-8u}q`CZ-UW&nTV=uE>Hdgp_v^8-$QX_^24 diff --git a/src/ajaxable/locale/fr/LC_MESSAGES/django.po b/src/ajaxable/locale/fr/LC_MESSAGES/django.po deleted file mode 100644 index 7f5459777..000000000 --- a/src/ajaxable/locale/fr/LC_MESSAGES/django.po +++ /dev/null @@ -1,22 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -#: ajaxable/utils.py:63 -msgid "Send" -msgstr "" diff --git a/src/ajaxable/locale/it/LC_MESSAGES/django.mo b/src/ajaxable/locale/it/LC_MESSAGES/django.mo deleted file mode 100644 index 71cbdf3e9d8d54be31066ec4ad8628bc2c1f2845..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 380 zcmYL@K~KUk7=|%=+R?Lz&%}d9i{c3jGZa>EvE7z2Nc2{r&Y96JZ6W$Y{CoZuJ5A(G zp7i_Dx9RhJeDu}vIq;l#&OC>nD^HugXY4QU{MmN?lNtRkR}RH%w3NnHT4Bh@vF%H^(V-=Ii1iQ$Qo9Pt!I1Rhe%oml#`f^NEGFCKEL->Rc=KoQ6a?!10%_7(V7ey8`V`;n{war z20Z3;uifk31QV^CRQ|iq#``$=;jWunRB8aLH({)F;i8zL{=V00y-I_qTIqGAN(}v% i$^}`yHKImSZ8jEzYJOK6-VWez49^vuhS0kh1f3tbb!oc* diff --git a/src/ajaxable/locale/it/LC_MESSAGES/django.po b/src/ajaxable/locale/it/LC_MESSAGES/django.po deleted file mode 100644 index c991b5122..000000000 --- a/src/ajaxable/locale/it/LC_MESSAGES/django.po +++ /dev/null @@ -1,22 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: ajaxable/utils.py:63 -msgid "Send" -msgstr "" diff --git a/src/ajaxable/locale/jp/LC_MESSAGES/django.mo b/src/ajaxable/locale/jp/LC_MESSAGES/django.mo deleted file mode 100644 index 6c5906d1cd061dff54de8b533942893de34efc9e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 337 zcmYL@Jx{|h5Qd9j%E-dP;DHUUz!pqFHI3Uw*h!U-O0b#M1fyU_j*H-j@b~yFTo(FD zk8Zg4bkFbc(a#8TfSe*{$RTop42h8wT;AXuI{#UD_pUbq(k-mD?~SvRtk~?4EjU^8 zqD=EFDs<<30NFQY3lF=dhsseBt#T;zrx|V_Q9)Dk#909{hlG)3PGx%joM$`|st-_k zW&2hI=P8-jLXeC}P9|KkR7_ct6ud0&v1*&0YBW?@eNZA;wx|b_i4fD)jGb@x9W;=s z, YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: ajaxable/utils.py:63 -msgid "Send" -msgstr "" diff --git a/src/ajaxable/locale/lt/LC_MESSAGES/django.mo b/src/ajaxable/locale/lt/LC_MESSAGES/django.mo deleted file mode 100644 index 50c618427c93952b4b4aeec2a4c751f5e416151a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 443 zcmYL@K~KU!5QQ;%>d~`@F;ODX#TGAEC{kg;#+EjvkmzlNwbqo~X1f?oxcDRdd;S)u zkjP73b|&we?E5`F`l+D~&?o3K^db5RU8#-!#_$&3iuqTh7+8c)4&V#K_VN|T^Wvn9D-rzJ_G4Mr4_n15u|4H+`cZFr(?OoEUMU3duXz`J}7 zC)Ds+sY#-kD08NzvSBpyeVDibg)R+T&+og#VN9pf9-<;$vy_vBvy~0LI~mWaCSBj} z=UG##bkAUezzgWUw$(I^ffSkx{O+s3KAL~(>mp~F=)mHQsgi4FmW)Vy&sDWvxgu07 z(}CUST!?eabQ}xnb*M)3)UhnM0}~L(z2~&5 YXp5O$%Y@Bl$6;VL5VR0%H9AJ^57s$$$^ZZW diff --git a/src/ajaxable/locale/lt/LC_MESSAGES/django.po b/src/ajaxable/locale/lt/LC_MESSAGES/django.po deleted file mode 100644 index 6b2c60bb9..000000000 --- a/src/ajaxable/locale/lt/LC_MESSAGES/django.po +++ /dev/null @@ -1,23 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " -"(n%100<10 || n%100>=20) ? 1 : 2);\n" - -#: ajaxable/utils.py:63 -msgid "Send" -msgstr "" diff --git a/src/ajaxable/locale/pl/LC_MESSAGES/django.mo b/src/ajaxable/locale/pl/LC_MESSAGES/django.mo deleted file mode 100644 index 3e13226cebd8f0b4bc61e98396d6e1e0874f7157..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 503 zcmY+9OHRWu5QYN+A!W&$#cV(zaIpgd6p}(I1y!^VN-1lTn2B-jPE6K?ISQ%0%Z;l`4_=F*hhDjhR-S6, YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2012-01-27 16:36+0100\n" -"Last-Translator: Radek Czajka \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " -"|| n%100>=20) ? 1 : 2)\n" - -#: ajaxable/utils.py:63 -msgid "Send" -msgstr "Wyślij" diff --git a/src/ajaxable/locale/ru/LC_MESSAGES/django.mo b/src/ajaxable/locale/ru/LC_MESSAGES/django.mo deleted file mode 100644 index 6a77961e2768e94f0bf2bdfbab2924ad9eaa6079..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 502 zcmY+8KabNe7{&uCOUBL&F9Q`7xFkJ>Dox6T);%JUCZvBP*i36eP-<6>i$J;o-F)k< z_Zdz%vGEnsFL29!k$ck$RlM>~ek?za{oFMhR|d{w%XbrFs59rj6})re5pyWA`7m{TnYygfB3;aqp+aqG>9i=$~RJJ5|vrLBJZ|Y zNoLXkGl@ycf8=$BjF{#Qe4>6zqL_?)cpp1a@bYs!p=QWRO=gOTvS3;&2gdU-goz(f zaB1WR;i*3wrF1$SpjBjBmT@xUZ0$hkPtN9b6E_S`i@YOMcJyF_D2V8>w%xJJp%j`6 z{O;EV`)K}Czupuq7kyZMW2)rZo6p9icl6b@zH&vVSjtr{G6#BJa&0EXRpvP)s d#>Pyy-8YTudUsL%-Tkg^s@v+%?qYXoJOD-7i39)u diff --git a/src/ajaxable/locale/ru/LC_MESSAGES/django.po b/src/ajaxable/locale/ru/LC_MESSAGES/django.po deleted file mode 100644 index 697e31d13..000000000 --- a/src/ajaxable/locale/ru/LC_MESSAGES/django.po +++ /dev/null @@ -1,23 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " -"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" - -#: ajaxable/utils.py:63 -msgid "Send" -msgstr "Отправить" diff --git a/src/ajaxable/locale/uk/LC_MESSAGES/django.mo b/src/ajaxable/locale/uk/LC_MESSAGES/django.mo deleted file mode 100644 index d2d31a4fd72f68dc53c29f8a8b14d56d933f3e63..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 454 zcmYL@%}&BV6ooOm>e97~YobJ=gDtwiLXipsHuf*&C(+#qW34GOWI7m4cm%h;p3mYf zM7hbAIXCy5%=tMy_^#mWAxFpwvX5LK8rV6f|$#_7TJ6~Drg)2hE zOwKcr+R%K?v=Qek#d0!`YEjrAmYcP3u3E5_&Y3v1OvkaHT7^=Y$Bt#eEtr6I+&fO= e@6>j#OSwsyZOer9dK*EHS;LHlnMSQ;RDJ;vP, YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " -"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" - -#: ajaxable/utils.py:63 -msgid "Send" -msgstr "" diff --git a/src/ajaxable/templates/ajaxable/form.html b/src/ajaxable/templates/ajaxable/form.html index d92b3404e..3ca76a491 100644 --- a/src/ajaxable/templates/ajaxable/form.html +++ b/src/ajaxable/templates/ajaxable/form.html @@ -1,9 +1,7 @@ -{% load i18n %} -

{{ title }}

+ class="cuteform"> {% csrf_token %} {% if honeypot %} {% load honeypot %} diff --git a/src/ajaxable/templates/ajaxable/form_on_page.html b/src/ajaxable/templates/ajaxable/form_on_page.html index de00a47f9..d88cadb85 100644 --- a/src/ajaxable/templates/ajaxable/form_on_page.html +++ b/src/ajaxable/templates/ajaxable/form_on_page.html @@ -1,5 +1,4 @@ {% extends "2022/base_simple.html" %} -{% load i18n %} {% block titleextra %}{{ title }}{% endblock %} diff --git a/src/ajaxable/utils.py b/src/ajaxable/utils.py index 3a1c4558a..4e423ef77 100644 --- a/src/ajaxable/utils.py +++ b/src/ajaxable/utils.py @@ -9,7 +9,6 @@ from django.http import HttpResponse, HttpResponseRedirect, HttpResponseForbidde from django.shortcuts import render from django.utils.encoding import force_str from django.utils.functional import Promise -from django.utils.translation import gettext_lazy as _ from django.views.decorators.vary import vary_on_headers from honeypot.decorators import verify_honeypot_value from wolnelektury.utils import is_ajax @@ -44,12 +43,6 @@ def require_login(request): return HttpResponseRedirect('/uzytkownicy/zaloguj') # next?=request.build_full_path()) -def placeholdized(form): - for field in form.fields.values(): - field.widget.attrs['placeholder'] = field.label + ('*' if field.required else '') - return form - - class AjaxableFormView: """Subclass this to create an ajaxable view for any form. @@ -57,10 +50,9 @@ class AjaxableFormView: """ form_class = None - placeholdize = False # override to customize form look template = "ajaxable/form.html" - submit = _('Send') + submit = 'Send' action = '' title = '' @@ -136,13 +128,10 @@ class AjaxableFormView: cd = self.context_description(request, obj) if cd: title += ": " + cd - if self.placeholdize: - form = placeholdized(form) context = { self.formname: form, "title": title, "honeypot": self.honeypot, - "placeholdize": self.placeholdize, "submit": self.submit, "action": self.action, "response_data": response_data, -- 2.20.1