Commits

Zhang Huangbin committed 21b87a7

Add attribute 'name=' in HTML forms.

Comments (0)

Files changed (4)

templates/default/dbmail_mysql/admin/profile.html

 
         <div class="box-wrap clear">
             <div id="profile_general">
-                <form method="post" action="{{ctx.homepath}}/profile/admin/general/{{mail}}">
+                <form name="general" method="post" action="{{ctx.homepath}}/profile/admin/general/{{mail}}">
                     {{ input_csrf_token }}
                     {% if profile.language != '' %}
                         {% set preferredLanguage = profile.language |string |e %}
             </div>
 
             <div id="profile_password">
-                <form method="post" action="{{ctx.homepath}}/profile/admin/password/{{mail}}">
+                <form name="password" method="post" action="{{ctx.homepath}}/profile/admin/password/{{mail}}">
                     {{ input_csrf_token }}
                     <div class="columns clear">
                         <div class="col3-4">

templates/default/dbmail_mysql/alias/profile.html

 
         <div class="box-wrap clear">
             <div id="profile_general">
-                <form id="list_table" method="post" action="{{ctx.homepath}}/profile/alias/{{profile_type}}/{{mail}}">
+                <form name="general" id="list_table" method="post" action="{{ctx.homepath}}/profile/alias/{{profile_type}}/{{mail}}">
                     {{ display_csrf_token() }}
                     <div class="columns clear">
                         <div class="col3-4 clear">

templates/default/dbmail_mysql/domain/profile.html

         <div class="box-wrap clear">
             {# profile_type: general #}
             <div id="profile_general">
-                <form method="post" action="{{ctx.homepath}}/profile/domain/general/{{cur_domain}}">
+                <form name="general" method="post" action="{{ctx.homepath}}/profile/domain/general/{{cur_domain}}">
                     {{ input_csrf_token }}
                     <div class="columns clear">
                         <div class="col2-3 ">
             {# profile_type: bcc #}
             {#
             <div id="profile_bcc">
-                <form method="post" action="{{ctx.homepath}}/profile/domain/bcc/{{cur_domain}}">
+                <form name="bcc" method="post" action="{{ctx.homepath}}/profile/domain/bcc/{{cur_domain}}">
                     {{ input_csrf_token }}
                     <div class="columns clear">
                         <div class="col2-3 ">
             {#
             {% if session.get('domainGlobalAdmin') is sameas true %}
                 <div id="profile_relay">
-                    <form method="post" action="{{ctx.homepath}}/profile/domain/relay/{{cur_domain}}">
+                    <form name="relay" method="post" action="{{ctx.homepath}}/profile/domain/relay/{{cur_domain}}">
                         {{ input_csrf_token }}
                         {{ display_domain_transport(profile.transport |string) }}
                         {{ display_button_submit() }}
             {# profile_type: catchall #}
             {#
             <div id="profile_catchall">
-                <form method="post" action="{{ctx.homepath}}/profile/domain/catchall/{{cur_domain}}">
+                <form name="catchall" method="post" action="{{ctx.homepath}}/profile/domain/catchall/{{cur_domain}}">
                     {{ input_csrf_token }}
                     <div class="columns clear">
                         <div class="col2-3 ">
             {#
             {% if session.get('domainGlobalAdmin') is sameas true %}
                 <div id="profile_aliases">
-                    <form method="post" action="{{ctx.homepath}}/profile/domain/aliases/{{cur_domain}}">
+                    <form name="aliases" method="post" action="{{ctx.homepath}}/profile/domain/aliases/{{cur_domain}}">
                         {{ input_csrf_token }}
                         <div class="columns clear">
                             <div class="col2-3 ">
 
             {# profile_type: advanced #}
                 <div id="profile_advanced">
-                    <form method="post" action="{{ctx.homepath}}/profile/domain/advanced/{{cur_domain}}">
+                    <form name="advanced" method="post" action="{{ctx.homepath}}/profile/domain/advanced/{{cur_domain}}">
                         {{ input_csrf_token }}
                         <div class="columns clear">
                         <div class="col2-3 ">

templates/default/dbmail_mysql/user/profile.html

 
         <div class="box-wrap clear">
             <div id="profile_general">
-                <form method="post" action="{{ctx.homepath}}/profile/user/general/{{mail}}">
+                <form name="general" method="post" action="{{ctx.homepath}}/profile/user/general/{{mail}}">
                     {{ input_csrf_token }}
                     <div class="columns clear">
                         <div class="col2-3">
 
             {# profile_type == 'forwarding' #}
             <div id="profile_forwarding">
-                <form method="post" action="{{ctx.homepath}}/profile/user/forwarding/{{mail}}">
+                <form name="forwarding" method="post" action="{{ctx.homepath}}/profile/user/forwarding/{{mail}}">
                     {{ input_csrf_token }}
 
                     <div class="form-field clear">
 
             {# profile_type == 'aliases' #}
             <div id="profile_aliases">
-                <form method="post" action="{{ctx.homepath}}/profile/user/aliases/{{mail}}">
+                <form name="aliases" method="post" action="{{ctx.homepath}}/profile/user/aliases/{{mail}}">
                     {{ input_csrf_token }}
 
                     <div class="col2-3">
             {# profile_type: bcc #}
             {#
             <div id="profile_bcc">
-                <form method="post" action="{{ctx.homepath}}/profile/user/bcc/{{mail}}">
+                <form name="bcc" method="post" action="{{ctx.homepath}}/profile/user/bcc/{{mail}}">
                     {{ input_csrf_token }}
 
                     <div class="columns clear">
 
             {#
             <div id="profile_relay">
-                <form method="post" action="{{ctx.homepath}}/profile/user/relay/{{mail}}">
+                <form name="relay" method="post" action="{{ctx.homepath}}/profile/user/relay/{{mail}}">
                     {{ input_csrf_token }}
 
                     <div class="columns clear">
 
 
             <div id="profile_password">
-                <form method="post" action="{{ctx.homepath}}/profile/user/password/{{mail}}">
+                <form name="password" method="post" action="{{ctx.homepath}}/profile/user/password/{{mail}}">
                     {{ input_csrf_token }}
                     <div class="columns clear">
                         <div class="col3-4">
 
             {#
             <div id="profile_advanced">
-                <form method="post" action="{{ctx.homepath}}/profile/user/advanced/{{mail}}">
+                <form name="advanced" method="post" action="{{ctx.homepath}}/profile/user/advanced/{{mail}}">
                     {{ input_csrf_token }}
 
                     <div class="bt-space0">&nbsp;</div>