]> git.agnieray.net Git - galette.git/commitdiff
Tooltips displayed by browser when js disabled
authorGuillaume AGNIERAY <dev@agnieray.net>
Sun, 10 Jul 2022 08:20:21 +0000 (10:20 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Wed, 13 Jul 2022 05:57:42 +0000 (07:57 +0200)
galette/templates/default/elements/edit_socials.html.twig
galette/templates/default/modals/replacements_legend.html.twig
galette/templates/default/pages/admintools.html.twig
galette/templates/default/pages/configuration_dynamic_fields.html.twig
galette/templates/default/pages/configuration_payment_type_form.html.twig
galette/templates/default/pages/contribution_form.html.twig
galette/templates/default/pages/history.html.twig
galette/templates/default/pages/mailing_form.html.twig

index faa0c8967822077f289781e177242943c3b53f2f..b816d1f277b02c1a0df5ebd028f030b68f2bfc72 100644 (file)
@@ -8,7 +8,7 @@
                     <div class="ui right action input">
                         <input type="text" name="social_{{ social.id }}" id="social_{{ social.id }}" value="{{ social.url }}" class="large"/>
                         <a href="#" class="ui icon red button tooltip delete delsocial">
-                            <i class="trash icon" data-html="{{ _T("Remove %type")|replace({"%type": social.getSystemType(social.type)}) }}|e()"></i>
+                            <i class="trash icon" title="{{ _T("Remove %type")|replace({"%type": social.getSystemType(social.type)}) }}|e()"></i>
                         </a>
                     </div>
                 </div>
index 78fa027268676c9e514f7e2f4579cc6129c8e6b1..1cd756116e91fbb36052b63386b971e5cfee5383 100644 (file)
@@ -28,7 +28,7 @@
 <script type="text/javascript">
 
     var _addLegendButton = function(selector) {
-        $(selector).append('<a id="btnlegend" class="ui tooltip" data-html="{{ _T("Show existing variables")|e('js') }}"><i class="circular inverted primary link icon info"></i> <span class="sr-only">{{ _T("Show existing variables")|e('js') }}</span></a>');
+        $(selector).append('<a id="btnlegend" class="ui tooltip" title="{{ _T("Show existing variables")|e('js') }}"><i class="circular inverted primary link icon info"></i> <span class="sr-only">{{ _T("Show existing variables")|e('js') }}</span></a>');
     };
 
     var _handleLegend = function(selector) {
index 596cde435d2750074aee3dbd85a041da66e09339..8e997e416d8db365259fa8249539f05a9040595a 100644 (file)
                 <div class="field inline">
                     <label for="inittexts" title="{{ _T('Reset all emails contents to their default values') }}">{{ _T('Reset emails contents') }}</label>
                     <input type="checkbox" name="inittexts" id="inittexts"/>
-                    <i class="circular inverted primary small icon info tooltip" data-html="{{ _T('Reset all emails contents to their default values') }}"></i>
+                    <i class="circular inverted primary small icon info tooltip" title="{{ _T('Reset all emails contents to their default values') }}"></i>
                     <span class="exemple">{{ _T('(all existing values will be removed)') }}</span>
                 </div>
                 <div class="field inline">
                     <label for="initfields" title="{{ _T('Reset all emails contents to their default values') }}">{{ _T('Reset fields configuration') }}</label>
                     <input type="checkbox" name="initfields" id="initfields"/>
-                    <i class="circular inverted primary small icon info tooltip" data-html="{{ _T('Reset all emails contents to their default values') }}<br/>{{ _T('This includes fields positions, order, visibility, access levels and mandatory marks.') }}"></i>
+                    <i class="circular inverted primary small icon info tooltip" title="{{ _T('Reset all emails contents to their default values') }}<br/>{{ _T('This includes fields positions, order, visibility, access levels and mandatory marks.') }}"></i>
                     <span class="exemple">{{ _T('(all existing values will be removed)') }}</span>
                 </div>
                 <div class="field inline">
                     <label for="initpdfmodels" title="{{ _T('Reset all PDF models to their default values') }}">{{ _T('Reinitialize PDF models') }}</label>
                     <span class="tip"></span>
                     <input type="checkbox" name="initpdfmodels" id="initpdfmodels"/>
-                    <i class="circular inverted primary small icon info tooltip" data-html="{{ _T('Reset all PDF models to their default values') }}"></i>
+                    <i class="circular inverted primary small icon info tooltip" title="{{ _T('Reset all PDF models to their default values') }}"></i>
                     <span class="exemple">{{ _T('(all existing values will be removed)') }}</span>
                 </div>
                 <div class="field inline">
                     <label for="emptylogins" title="{{ _T('Fill all empty login and passwords') }}">{{ _T('Generate empty logins and passwords') }}</label>
                     <input type="checkbox" name="emptylogins" id="emptylogins"/>
-                    <i class="circular inverted primary small icon info tooltip" data-html="{{ _T('Fill all empty login and passwords') }}"></i>
+                    <i class="circular inverted primary small icon info tooltip" title="{{ _T('Fill all empty login and passwords') }}"></i>
                 </div>
             </div>
         </div>
index ff457c097c6c80297e79c986c060d7b419e765a2..ab2f327bb051a4ff407fb03e7cbd30b8782eb3e6 100644 (file)
@@ -15,7 +15,7 @@
                 id="addfield"
                 href="{{ path_for('addDynamicField', {'form_name': form_name}) }}"
                 class="ui labeled icon primary button tooltip"
-                data-html="{{ _T("Add")|e("js") }}"
+                title="{{ _T("Add")|e("js") }}"
             >
                 <i class="plus icon"></i>
                 {{ _T("Add") }}
index 473d27ae79535b6e2d7eda7e76ca740d71210c6e..4f7f76c58e8426d641c401cafc0ad3609aa1f323 100644 (file)
@@ -7,7 +7,7 @@
                 <label for="name" class="" title="{{ _T("Original string for name, that will be used for translations.") }}">{{ _T("Name:") }}</label>
                 <div class="ui right corner labeled input">
                     <div class="ui corner label">
-                        <i class="circular inverted primary link icon info tooltip" data-html="{{ _T("Original string for name, that will be used for translations.") }}"></i>
+                        <i class="circular inverted primary link icon info tooltip" title="{{ _T("Original string for name, that will be used for translations.") }}"></i>
                     </div>
                     <input type="text" name="name" id="name" value="{{ ptype.__get('name') }}" />
                 </div>
index 56e90b52f26639874b22e31fd5f2c8ec7c225db5..5b9dd778f0e59fa7029c7f625dec276d2942b2c1 100644 (file)
                 <div class="active content field">
                     <div class="field inline">
                         <label>{{ _T("Dispatch type:") }}</label>
-                        <i class="circular inverted primary small icon info tooltip" data-html="{{ _T("Select a contribution type to create for dispatch transaction") }}"></i>
+                        <i class="circular inverted primary small icon info tooltip" title="{{ _T("Select a contribution type to create for dispatch transaction") }}"></i>
                         <input type="radio" name="contrib_type" id="contrib_type_fee" value="{{ constant('Galette\\Entity\\Contribution::TYPE_FEE') }}" checked="checked"/> <label for="contrib_type_fee">{{ _T("Membership fee") }}</label>
                         <input type="radio" name="contrib_type" id="contrib_type_donation" value="donation"/> <label for="contrib_type_donation">{{ _T("Donation") }}</label>
                     </div>
index 26bb0a948e0d94df6d74607fa884188fd8d20df7..3405856bfa9dbc71b8190330486d226bdb7a759c 100644 (file)
                     selector: "#delete",
                     loader: "button"
                 } %}
-                var _elt = $('<i class="circular small inverted primary link icon info tooltip qryhide" data-html="{{ _T("Show associated query")|e('js') }}"></i>');
+                var _elt = $('<i class="circular small inverted primary link icon info tooltip qryhide" title="{{ _T("Show associated query")|e('js') }}"></i>');
                 $('.sql_log').hide().parent().prepend(_elt);
                 $('.qryhide').click(function() {
                     $(this).next('.sql_log').show();
index 354df600d15a9f82593011a297132acb218fd0f9..5deeef4582cfe7165404da15f384ed55e5f1d80f 100644 (file)
@@ -64,7 +64,7 @@
                         <label for="attachment" title="{{ _T("Select attachments") }}">{{ _T("Add attachment") }}</label>
                         <div class="ui right corner labeled input">
                             <div class="ui corner label">
-                                <i class="circular inverted primary link icon info tooltip" data-html="{{ _T("Select files to add as attachments.<br/>Multiple file selection using 'ctrl' or 'shift' keys are only available on compatible browsers.") }}"></i>
+                                <i class="circular inverted primary link icon info tooltip" title="{{ _T("Select files to add as attachments.<br/>Multiple file selection using 'ctrl' or 'shift' keys are only available on compatible browsers.") }}"></i>
                             </div>
                             <input type="file" name="attachment[]" id="attachment" multiple="multiple">
                         </div>