]> git.agnieray.net Git - galette.git/commitdiff
Rely on class declared labels on form
authorJohan Cwiklinski <johan@x-tnd.be>
Tue, 16 Apr 2024 21:19:18 +0000 (23:19 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Tue, 16 Apr 2024 21:19:36 +0000 (23:19 +0200)
galette/lang/galette.pot
galette/lang/galette_en_US.po
galette/lib/Galette/Entity/ScheduledPayment.php
galette/templates/default/pages/scheduledpayment_form.html.twig

index 516f0021ce05e4385db8acc302479271f85998f0..0d6fabcb4edcd04b663422f017d51e112173e6d1 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2024-04-16 22:53+0200\n"
+"POT-Creation-Date: 2024-04-16 23:19+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -2687,7 +2687,6 @@ msgid "Contribution label"
 msgstr ""
 
 #: ../lib/Galette/Features/Replacements.php:378
-#: ../lib/Galette/Entity/ScheduledPayment.php:638
 #: ../../tempcache/pages/transaction_form.html.twig:237
 #: ../../tempcache/pages/contributions_list.html.twig:408
 #: ../../tempcache/pages/contributions_list.html.twig:668
@@ -2696,7 +2695,6 @@ msgstr ""
 #: ../../tempcache/pages/contributions_types_list.html.twig:106
 #: ../../tempcache/pages/contribution_form.html.twig:260
 #: ../../tempcache/pages/contribution_form.html.twig:411
-#: ../../tempcache/pages/scheduledpayment_form.html.twig:70
 #: ../../tempcache/pages/scheduledpayment_form.html.twig:203
 #: ../../tempcache/pages/scheduledpayments_list.html.twig:208
 #: ../../tempcache/pages/scheduledpayments_list.html.twig:371
@@ -2719,7 +2717,6 @@ msgid "Contribution year"
 msgstr ""
 
 #: ../lib/Galette/Features/Replacements.php:394
-#: ../lib/Galette/Entity/ScheduledPayment.php:646
 #: ../../tempcache/pages/document_form.html.twig:176
 msgid "Comment"
 msgstr ""
@@ -2740,7 +2737,6 @@ msgid "Contribution id"
 msgstr ""
 
 #: ../lib/Galette/Features/Replacements.php:410
-#: ../lib/Galette/Entity/ScheduledPayment.php:626
 #: ../../tempcache/pages/contributions_list.html.twig:408
 #: ../../tempcache/pages/contributions_list.html.twig:674
 #: ../../tempcache/pages/scheduledpayments_list.html.twig:208
@@ -2964,6 +2960,7 @@ msgstr ""
 
 #: ../lib/Galette/Entity/Transaction.php:118
 #: ../lib/Galette/Entity/Contribution.php:213
+#: ../lib/Galette/Entity/ScheduledPayment.php:638
 #: ../../tempcache/pages/contribution_type_form.html.twig:73
 #: ../../tempcache/pages/transaction_form.html.twig:134
 #: ../../tempcache/pages/contribution_form.html.twig:497
@@ -2983,6 +2980,7 @@ msgstr ""
 
 #: ../lib/Galette/Entity/Transaction.php:130
 #: ../lib/Galette/Entity/Contribution.php:217
+#: ../lib/Galette/Entity/ScheduledPayment.php:626
 #: ../../tempcache/components/forms/payment_types.html.twig:53
 msgid "Payment type:"
 msgstr ""
@@ -3039,6 +3037,7 @@ msgid "Contribution type:"
 msgstr ""
 
 #: ../lib/Galette/Entity/Contribution.php:221
+#: ../lib/Galette/Entity/ScheduledPayment.php:646
 #: ../../tempcache/pages/contribution_form.html.twig:669
 msgid "Comments:"
 msgstr ""
@@ -3222,25 +3221,15 @@ msgid "Contribution ID"
 msgstr ""
 
 #: ../lib/Galette/Entity/ScheduledPayment.php:630
-#: ../../tempcache/pages/documents_list.html.twig:97
-#: ../../tempcache/pages/documents_list.html.twig:180
-#: ../../tempcache/pages/saved_searches_list.html.twig:69
-#: ../../tempcache/pages/saved_searches_list.html.twig:128
-#: ../../tempcache/pages/advanced_search.html.twig:308
-#: ../../tempcache/pages/advanced_search.html.twig:661
-msgid "Creation date"
+#: ../../tempcache/pages/contribution_form.html.twig:545
+msgid "Record date:"
 msgstr ""
 
 #: ../lib/Galette/Entity/ScheduledPayment.php:634
-#: ../../tempcache/pages/scheduledpayment_form.html.twig:283
-#: ../../tempcache/pages/scheduledpayments_list.html.twig:93
-#: ../../tempcache/pages/scheduledpayments_list.html.twig:208
-#: ../../tempcache/pages/scheduledpayments_list.html.twig:365
-msgid "Scheduled date"
+msgid "Scheduled date:"
 msgstr ""
 
 #: ../lib/Galette/Entity/ScheduledPayment.php:642
-#: ../../tempcache/pages/scheduledpayment_form.html.twig:107
 msgid "Paid"
 msgstr ""
 
@@ -6778,6 +6767,15 @@ msgstr ""
 msgid "Filename"
 msgstr ""
 
+#: ../../tempcache/pages/documents_list.html.twig:97
+#: ../../tempcache/pages/documents_list.html.twig:180
+#: ../../tempcache/pages/saved_searches_list.html.twig:69
+#: ../../tempcache/pages/saved_searches_list.html.twig:128
+#: ../../tempcache/pages/advanced_search.html.twig:308
+#: ../../tempcache/pages/advanced_search.html.twig:661
+msgid "Creation date"
+msgstr ""
+
 #: ../../tempcache/pages/index.html.twig:122
 msgid "Lost your password?"
 msgstr ""
@@ -7011,10 +7009,6 @@ msgstr ""
 msgid "Details of donation"
 msgstr ""
 
-#: ../../tempcache/pages/contribution_form.html.twig:545
-msgid "Record date:"
-msgstr ""
-
 #: ../../tempcache/pages/contribution_form.html.twig:630
 msgid "months"
 msgstr ""
@@ -7158,14 +7152,6 @@ msgstr ""
 msgid "Related contribution information"
 msgstr ""
 
-#: ../../tempcache/pages/scheduledpayment_form.html.twig:265
-msgid "Record date"
-msgstr ""
-
-#: ../../tempcache/pages/scheduledpayment_form.html.twig:301
-msgid "Comments"
-msgstr ""
-
 #: ../../tempcache/pages/configuration_title_form.html.twig:63
 msgid "Short form:"
 msgstr ""
@@ -8063,6 +8049,12 @@ msgstr ""
 msgid "Show payments by"
 msgstr ""
 
+#: ../../tempcache/pages/scheduledpayments_list.html.twig:93
+#: ../../tempcache/pages/scheduledpayments_list.html.twig:208
+#: ../../tempcache/pages/scheduledpayments_list.html.twig:365
+msgid "Scheduled date"
+msgstr ""
+
 #: ../../tempcache/pages/scheduledpayments_list.html.twig:193
 #, php-format
 msgid "%count shceduled payment"
index bb9060db782c886eccae77586618cc3913818e91..5c8ce0c8aa0e90da974e454ccd2a2cc104ba8849 100644 (file)
@@ -7,8 +7,8 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2024-04-16 22:53+0200\n"
-"PO-Revision-Date: 2024-04-16 22:53+0200\n"
+"POT-Creation-Date: 2024-04-16 23:19+0200\n"
+"PO-Revision-Date: 2024-04-16 23:19+0200\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
 "Language: en_US\n"
@@ -2716,7 +2716,6 @@ msgid "Contribution label"
 msgstr "Contribution label"
 
 #: ../lib/Galette/Features/Replacements.php:378
-#: ../lib/Galette/Entity/ScheduledPayment.php:638
 #: ../../tempcache/pages/transaction_form.html.twig:237
 #: ../../tempcache/pages/contributions_list.html.twig:408
 #: ../../tempcache/pages/contributions_list.html.twig:668
@@ -2725,7 +2724,6 @@ msgstr "Contribution label"
 #: ../../tempcache/pages/contributions_types_list.html.twig:106
 #: ../../tempcache/pages/contribution_form.html.twig:260
 #: ../../tempcache/pages/contribution_form.html.twig:411
-#: ../../tempcache/pages/scheduledpayment_form.html.twig:70
 #: ../../tempcache/pages/scheduledpayment_form.html.twig:203
 #: ../../tempcache/pages/scheduledpayments_list.html.twig:208
 #: ../../tempcache/pages/scheduledpayments_list.html.twig:371
@@ -2748,7 +2746,6 @@ msgid "Contribution year"
 msgstr "Contribution year"
 
 #: ../lib/Galette/Features/Replacements.php:394
-#: ../lib/Galette/Entity/ScheduledPayment.php:646
 #: ../../tempcache/pages/document_form.html.twig:176
 msgid "Comment"
 msgstr "Comment"
@@ -2769,7 +2766,6 @@ msgid "Contribution id"
 msgstr "Contribution id"
 
 #: ../lib/Galette/Features/Replacements.php:410
-#: ../lib/Galette/Entity/ScheduledPayment.php:626
 #: ../../tempcache/pages/contributions_list.html.twig:408
 #: ../../tempcache/pages/contributions_list.html.twig:674
 #: ../../tempcache/pages/scheduledpayments_list.html.twig:208
@@ -2993,6 +2989,7 @@ msgstr "Date:"
 
 #: ../lib/Galette/Entity/Transaction.php:118
 #: ../lib/Galette/Entity/Contribution.php:213
+#: ../lib/Galette/Entity/ScheduledPayment.php:638
 #: ../../tempcache/pages/contribution_type_form.html.twig:73
 #: ../../tempcache/pages/transaction_form.html.twig:134
 #: ../../tempcache/pages/contribution_form.html.twig:497
@@ -3012,6 +3009,7 @@ msgstr "Originator:"
 
 #: ../lib/Galette/Entity/Transaction.php:130
 #: ../lib/Galette/Entity/Contribution.php:217
+#: ../lib/Galette/Entity/ScheduledPayment.php:626
 #: ../../tempcache/components/forms/payment_types.html.twig:53
 msgid "Payment type:"
 msgstr "Payment type:"
@@ -3068,6 +3066,7 @@ msgid "Contribution type:"
 msgstr "Contribution type:"
 
 #: ../lib/Galette/Entity/Contribution.php:221
+#: ../lib/Galette/Entity/ScheduledPayment.php:646
 #: ../../tempcache/pages/contribution_form.html.twig:669
 msgid "Comments:"
 msgstr "Comments:"
@@ -3251,25 +3250,15 @@ msgid "Contribution ID"
 msgstr "Contribution ID"
 
 #: ../lib/Galette/Entity/ScheduledPayment.php:630
-#: ../../tempcache/pages/documents_list.html.twig:97
-#: ../../tempcache/pages/documents_list.html.twig:180
-#: ../../tempcache/pages/saved_searches_list.html.twig:69
-#: ../../tempcache/pages/saved_searches_list.html.twig:128
-#: ../../tempcache/pages/advanced_search.html.twig:308
-#: ../../tempcache/pages/advanced_search.html.twig:661
-msgid "Creation date"
-msgstr "Creation date"
+#: ../../tempcache/pages/contribution_form.html.twig:545
+msgid "Record date:"
+msgstr "Record date:"
 
 #: ../lib/Galette/Entity/ScheduledPayment.php:634
-#: ../../tempcache/pages/scheduledpayment_form.html.twig:283
-#: ../../tempcache/pages/scheduledpayments_list.html.twig:93
-#: ../../tempcache/pages/scheduledpayments_list.html.twig:208
-#: ../../tempcache/pages/scheduledpayments_list.html.twig:365
-msgid "Scheduled date"
-msgstr "Scheduled date"
+msgid "Scheduled date:"
+msgstr "Scheduled date:"
 
 #: ../lib/Galette/Entity/ScheduledPayment.php:642
-#: ../../tempcache/pages/scheduledpayment_form.html.twig:107
 msgid "Paid"
 msgstr "Paid"
 
@@ -6923,6 +6912,15 @@ msgstr "Add a document"
 msgid "Filename"
 msgstr "Filename"
 
+#: ../../tempcache/pages/documents_list.html.twig:97
+#: ../../tempcache/pages/documents_list.html.twig:180
+#: ../../tempcache/pages/saved_searches_list.html.twig:69
+#: ../../tempcache/pages/saved_searches_list.html.twig:128
+#: ../../tempcache/pages/advanced_search.html.twig:308
+#: ../../tempcache/pages/advanced_search.html.twig:661
+msgid "Creation date"
+msgstr "Creation date"
+
 #: ../../tempcache/pages/index.html.twig:122
 msgid "Lost your password?"
 msgstr "Lost your password?"
@@ -7159,10 +7157,6 @@ msgstr "Details of membership fee"
 msgid "Details of donation"
 msgstr "Details of donation"
 
-#: ../../tempcache/pages/contribution_form.html.twig:545
-msgid "Record date:"
-msgstr "Record date:"
-
 #: ../../tempcache/pages/contribution_form.html.twig:630
 msgid "months"
 msgstr "months"
@@ -7309,14 +7303,6 @@ msgstr "View contribution"
 msgid "Related contribution information"
 msgstr "Related contribution information"
 
-#: ../../tempcache/pages/scheduledpayment_form.html.twig:265
-msgid "Record date"
-msgstr "Record date"
-
-#: ../../tempcache/pages/scheduledpayment_form.html.twig:301
-msgid "Comments"
-msgstr "Comments"
-
 #: ../../tempcache/pages/configuration_title_form.html.twig:63
 msgid "Short form:"
 msgstr "Short form:"
@@ -8270,6 +8256,12 @@ msgstr ""
 msgid "Show payments by"
 msgstr "Show payments by"
 
+#: ../../tempcache/pages/scheduledpayments_list.html.twig:93
+#: ../../tempcache/pages/scheduledpayments_list.html.twig:208
+#: ../../tempcache/pages/scheduledpayments_list.html.twig:365
+msgid "Scheduled date"
+msgstr "Scheduled date"
+
 #: ../../tempcache/pages/scheduledpayments_list.html.twig:193
 #, php-format
 msgid "%count shceduled payment"
index e006db868a64f0e9e74dd84b64867120491448e8..b1922df95bab0b6851ff816c2614e9f90fa5ba7a 100644 (file)
@@ -623,19 +623,19 @@ class ScheduledPayment
                 'propname' => 'contribution'
             ),
             'id_paymenttype'   => array(
-                'label'    => _T('Payment type'),
+                'label'    => _T('Payment type:'),
                 'propname' => 'payment_type'
             ),
             'creation_date'    => array(
-                'label'    => _T('Creation date'),
+                'label'    => _T('Record date:'),
                 'propname' => 'creation_date'
             ),
             'scheduled_date'   => array(
-                'label'    => _T('Scheduled date'),
+                'label'    => _T('Scheduled date:'),
                 'propname' => 'scheduled_date'
             ),
             'amount'           => array(
-                'label'    => _T('Amount'),
+                'label'    => _T('Amount:'),
                 'propname' => 'amount'
             ),
             'paid'          => array(
@@ -643,7 +643,7 @@ class ScheduledPayment
                 'propname' => 'is_paid'
             ),
             'comment'          => array(
-                'label'    => _T('Comment'),
+                'label'    => _T('Comments:'),
                 'propname' => 'comment'
             )
         );
index 4002e503be295e6301d36e3ee084e55ccec9a0c7..7e462d53c83f7f88d9c63f403574a11be568e621 100644 (file)
@@ -31,7 +31,7 @@
                 <div class="ui mobile reversed stackable grid">
                     <div class="six wide column">
                         <div class="inline field required">
-                            <label for="montant_cotis">{{ _T("Amount") }}</label>
+                            <label for="montant_cotis">{{ scheduled.getFieldLabel('amount') }}</label>
                             <input type="text" name="amount" id="amount" value="{% if scheduled.getId() %}{{ scheduled.getAmount() }}{% else %}{{ scheduled.getMissingAmount() }}{% endif %}" maxlength="10" required="required"/>
                         </div>
     {# payment type #}
@@ -49,7 +49,7 @@
         'required': true
     } %}
                         <div class="inline field">
-                            <label for="paid">{{ _T('Paid') }}</label>
+                            <label for="paid">{{ scheduled.getFieldLabel('paid') }}</label>
                             <input type="checkbox" name="paid" id="paid" value="1"{% if scheduled.isPaid() %} checked="checked"{% endif %}/>
                         </div>
                     </div>
                         <div class="two fields">
                             <div class="inline field required">
                                 <label for="creation_date">
-                                    {{ _T("Record date") }}
+                                    {{ scheduled.getFieldLabel('creation_date') }}
                                 </label>
                                 <div class="ui calendar" id="scheduled-creationdate">
                                     <div class="ui input left icon">
                                 </div>
                             </div>
                             <div class="inline field required">
-                                <label for="scheduled_date">{{ _T("Scheduled date") }}</label>
+                                <label for="scheduled_date">{{ scheduled.getFieldLabel('scheduled_date') }}</label>
                                 <div class="ui calendar" id="scheduled-scheduleddate">
                                     <div class="ui input left icon">
                                         <i class="calendar icon" aria-hidden="true"></i>
                             </div>
                         </div>
                         <div class="field">
-                            <label for="comment">{{ _T("Comments") }}</label>
+                            <label for="comment">{{ scheduled.getFieldLabel('comment') }}</label>
                             <textarea name="comment" id="comment" cols="61" rows="6">{{ scheduled.getComment() }}</textarea>
                         </div>
                     </div>