]> git.agnieray.net Git - galette.git/commitdiff
Fix RTL issues on PDF member form; closes #1727
authorJohan Cwiklinski <johan@x-tnd.be>
Tue, 7 Nov 2023 03:21:03 +0000 (04:21 +0100)
committerJohan Cwiklinski <johan@x-tnd.be>
Tue, 7 Nov 2023 03:28:47 +0000 (04:28 +0100)
galette/includes/fields_defs/pdfmodels_fields.php

index eebc52cd02218ba467a964d22988b2f24fe7cf2c..274df9254a14ebee5218dd82de9669dd13013a09 100644 (file)
@@ -7,7 +7,7 @@
  *
  * PHP version 5
  *
- * Copyright © 2013-2014 The Galette Team
+ * Copyright © 2013-2023 The Galette Team
  *
  * This file is part of Galette (http://galette.tuxfamily.org).
  *
@@ -82,12 +82,12 @@ td#pdf_logo {
     width: 25%;
 }
 
-div[dir=\'rtl\'] td#pdf_logo {
+td[dir=rtl]#pdf_logo {
     text-align: left;
     width: 0%;
 }
 
-div[dir=rtl] td#pdf_assoname {
+td[dir=rtl]#pdf_assoname {
     width: 100%;
     margin-left: 25%;
 }
@@ -211,13 +211,16 @@ hr {
         <td height="30"></td>
     </tr>
     <tr>
-        <td>_T("Required membership:")
-            <form action="none">
-                <input type="radio" class="box" name="cotisation" value="none1">_T("Active member")
-                <input type="radio" class="box" name="cotisation" value="none2">_T("Benefactor member")
-                <input type="radio" class="box" name="cotisation" value="none3">_T("Donation")
-                <div class="infos">_T("The minimum contribution for each type of membership are defined on the website of the association. The amount of donations are free to be decided by the generous donor.")  </div>
-            </form>
+        <td>
+            <table>
+                <tr>
+                <td class="boxlabel">_T("Required membership:")</td>
+                <td class="box"><input type="radio" name="cotisation" value="none1"></td><td class="boxlabel">_T("Active member")</td>
+                <td class="box"><input type="radio" class="box" name="cotisation" value="none2"></td><td class="boxlabel">_T("Benefactor member")</td>
+                <td class="box"><input type="radio" class="box" name="cotisation" value="none3"></td><td class="boxlabel">_T("Donation")</td>
+                </tr>
+            </table>
+            <div class="infos">_T("The minimum contribution for each type of membership are defined on the website of the association. The amount of donations are free to be decided by the generous donor.")  </div>
         </td>
     </tr>
     <tr>
@@ -312,6 +315,14 @@ p.notes {
 .member td {
     line-height: 20px;
     height: 20px;
+}
+
+td.boxlabel {
+    width: 20%;
+}
+
+td.box {
+    width: 5%;
 }',
         'model_parent'  => PdfModel::MAIN_MODEL
     )