@@ -6,11 +6,10 @@ <h2 class="p-modal__title" id="modal-title">Report {{snap_title}} for a Snap Sto
66 < button class ="p-modal__close js-modal-close " aria-label ="Close dialog "> Close</ button >
77 </ header >
88
9- {# report snap form submits to a Google Forms #}
10- {# names of the inputs need to be consistend with the original form #}
9+ {# report snap form submits to the app endpoint #}
1110 < form id ="report-snap-form " action ="/report " method ="POST ">
1211 < input name ="csrf_token " type ="hidden " value ="{{csrf_token()}} " />
13- < input type ="hidden " name ="entry.718227286 " value ="{{package_name}} " />
12+ < input type ="hidden " name ="snap_name " value ="{{package_name}} " />
1413 < div class ="p-notification--negative ">
1514 < div class ="p-notification__content ">
1615 < h5 class ="p-notification__title ">
@@ -41,18 +40,16 @@ <h5 class="p-notification__title">
4140 </ div >
4241 </ div >
4342 < label for ="report-snap-reason "> Choose a reason for reporting this snap</ label >
44- < select id ="report-snap-reason " name ="entry.340540050 " required >
43+ < select id ="report-snap-reason " name ="reason " required >
4544 < option value ="" selected > Select an option</ option >
4645 < option value ="Copyright or trademark violation "> Copyright or trademark violation</ option >
4746 < option value ="Snap Store terms of service violation "> Snap Store terms of service violation</ option >
4847 </ select >
4948 < label for ="report-snap-comment "> Please provide more detailed reason to your report</ label >
50- < textarea id ="report-snap-comment " type ="text " name ="entry.1974584359 " placeholder ="Comment... " rows ="5 " maxlength ="1000 " required > </ textarea >
49+ < textarea id ="report-snap-comment " type ="text " name ="comment " placeholder ="Comment... " rows ="5 " maxlength ="1000 " required > </ textarea >
5150
5251 < label for ="report-snap-email "> Your email (optional)</ label >
53- < input id ="report-snap-email " type ="email " name ="entry.1624813972 " placeholder ="email@example.com " />
54- < label for ="report-snap-confirm " style ="position: absolute; top: -9999999px; "> I agree</ label >
55- < input id ="report-snap-confirm " type ="checkbox " name ="entry.13371337 " style ="position: absolute; top: -9999999px; " />
52+ < input id ="report-snap-email " type ="email " name ="email " placeholder ="email@example.com " />
5653 < p > In submitting this form, I confirm that I have read and agree to < a href ="https://ubuntu.com/legal/data-privacy/contact "> Canonical’s Privacy Notice</ a > and < a href ="https://ubuntu.com/legal/data-privacy "> Privacy Policy</ a > .</ p >
5754 < div class ="u-align--right ">
5855 < button type ="button " class ="js-modal-close u-no-margin--bottom "> Cancel</ button >
0 commit comments