Moving edit screens to be template based for i18n (almost done with editor.

This commit is contained in:
Kaleb Murphy 2008-09-25 02:09:22 +00:00
parent e81accaa15
commit 38c7ee33c4
8 changed files with 142 additions and 153 deletions

View file

@ -29,6 +29,7 @@ sub new{
$self->{terminalUrl};
$self->{goto};
$self->{timeLimit};
$self->{type} = 'section';
bless($self,$class);
return $self;
@ -91,7 +92,7 @@ sub deleteQuestion{
#data is the array of hash items for displaying
sub getDragDropList{
my ($self,$data,$address,$selected) = @_;
push(@$data,{ "type","section","text",$self->{"title"} });
push(@$data,{ "type",$self->{type},"text",$self->{"title"} });
if($selected){
for(my $i=0; $i<=$#{$self->{questions}}; $i++){
$self->{questions}->[$i]->getDragDropList($data, $address, $i == $address->[1]);