Fixed form bug exposed by IE related to not saving pri/notes properly.
authorAlan Pippin <apippin@pippins.net>
Mon, 11 Oct 2010 18:32:49 +0000 (12:32 -0600)
committerAlan J. Pippin <ajp@pippins.net>
Mon, 11 Oct 2010 18:32:49 +0000 (12:32 -0600)
inc/class.tc.inc.php
templates/default/ppi_sched.tpl

index 5818197a65be37c86ba01e844962f44f94937fac..f07b9b936a2f0d12ca5b4f19ae71170ebe06fd33 100644 (file)
@@ -1507,6 +1507,8 @@ class tc
                  $this->t->set_var('appt_table_data',$appt_table_data);
                  $this->t->set_var('appt_header_row',$appt_header_row);
                  $this->t->set_var('appt_table_width',$appt_table_width);
+                         $this->t->set_var('lang_save','Save Appts for ' . $presidency_name);
+
                  $this->t->fp('apptlist','appt_list',True);
                }
                
@@ -1616,6 +1618,7 @@ class tc
                $this->t->set_var('completed_header_row',$completed_header_row);
                $this->t->set_var('completed_table_width',$completed_table_width);
                $this->t->set_var('completed',$completed_data);
+               $this->t->set_var('lang_save','Save Pri / Notes'); 
                $this->t->fp('indivlist','individual_list',True); 
 
                $indivs_width=300; $totals_width=100;
index 0fc65bfd700073fa68a4599eec47beef65b1de24..191a9a2aa76cb7c87157cda9c1b321429a6e4c1b 100644 (file)
@@ -1,5 +1,4 @@
 <center>
-       <form action="{actionurl}" method="POST">
        <table border="0" width="{table_width}" cellspacing="2" cellpadding="2">
                <tr>
                        <td align="center" bgcolor="#c9c9c9"><font face="{font}"><b>{title}</b></font></td>
        <a href="{schedule_ppi_link}">{schedule_ppi_link_title}</a>
        <br><br>
 
-
+<hr>
 <!-- BEGIN appt_list -->
        <form action="{actionurl}" method="POST">
                <input type=hidden name=presidency_location value={presidency_location}>
-        <hr>
         <table border="0" width="{appt_table_width}" cellspacing="2" cellpadding="2">
                <tr>
                        <td align="center" bgcolor="#c9c9c9" colspan=20>
                        <font face="{font}"><input type="submit" name="save" value="{lang_save}"></font>
                        &nbsp; &nbsp;
                        <font face="{font}"><input type="reset" name="reset" value="{lang_reset}"></font>
-                       </form>
                </td>
                </tr>
        </table>
+       </form>
 <!-- END appt_list -->
-
+<hr>
 <!-- BEGIN individual_list -->
+        <form action="{actionurl}" method="POST">
        <table border="0" width="{table_width}" cellspacing="2" cellpadding="2">
+               <tr>
+                       <td colspan=5 height="50" align="right">
+                               <font face="{font}"><input type="submit" name="save" value="{lang_save}"></font>
+                               &nbsp; &nbsp;
+                               <font face="{font}"><input type="reset" name="reset" value="{lang_reset}"></font>
+                       </td>
+               </tr>
                <tr>
                        <td align="center" bgcolor="#c9c9c9" colspan=20>
                                <font face="{font}"><b>{table_title}</b></font>
                        <font face="{font}"><input type="submit" name="save" value="{lang_save}"></font>
                        &nbsp; &nbsp;
                        <font face="{font}"><input type="reset" name="reset" value="{lang_reset}"></font>
-                       </form>
                </td>
                </tr>
        </table>
+        </form>
 <!-- END individual_list -->
        <hr>
        <table border="0" width="{completed_table_width}" cellspacing="2" cellpadding="2">