Changeset - 1c590f01a74b
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 15 years ago 2010-09-25 02:03:07
ohnobinki@ohnopublishing.net
Display a section delete button when editing saved schedule.
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
class.section.php
Show inline comments
 
@@ -224,17 +224,20 @@ function getF()
 
    foreach ($this->bdays as $day_key => $day_enabled)
 
      {
 
	if ($day_enabled)
 
	  $day_enabled = 'checked="checked"';
 
	else
 
	  $day_enabled = '';
 
	$out .= "  <td>\n"
 
	  . '    <input type="checkbox" class="daysRequired"'
 
	  . '           name="postData[' . $class_key . '][' . $section_key . '][days][' . $day_key . ']" ' . $day_enabled . ' />' . $n
 
	  . "  </td>\n";
 
      }
 

	
 
    $out .= '  <td><div class="deleteSection"><input type="button" value="X" /></div></td>' . $n;
 
    $out .= '  <td></td>' . $n;
 

	
 
    $out .= "</tr>\n";
 

	
 
    return $out;
 
  }
 
}
0 comments (0 inline, 0 general)