forked from science-ation/science-ation
Couple small tweaks - science olympics event rename to science olympics activity, sort events by eventtype first
This commit is contained in:
parent
d45ababbbb
commit
054c62dfa8
@ -58,7 +58,7 @@ $editor = new TableEditor('events',
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
$eventtypes=array( array('key'=>"general", 'val'=>"General"),
|
$eventtypes=array( array('key'=>"general", 'val'=>"General"),
|
||||||
array('key'=>"scienceolympic", 'val'=>"Science Olympics Event"),
|
array('key'=>"scienceolympic", 'val'=>"Science Olympics Activity"),
|
||||||
array('key'=>"sciencefairjudging", 'val'=>"Science Fair Judging"),
|
array('key'=>"sciencefairjudging", 'val'=>"Science Fair Judging"),
|
||||||
array('key'=>"tour", 'val'=>"Tour")
|
array('key'=>"tour", 'val'=>"Tour")
|
||||||
);
|
);
|
||||||
@ -66,7 +66,7 @@ $eventtypes=array( array('key'=>"general", 'val'=>"General"),
|
|||||||
$editor->setFieldOptions("eventtype",$eventtypes);
|
$editor->setFieldOptions("eventtype",$eventtypes);
|
||||||
$editor->setPrimaryKey("id");
|
$editor->setPrimaryKey("id");
|
||||||
$editor->setRecordType("Event");
|
$editor->setRecordType("Event");
|
||||||
$editor->setDefaultSortField("name");
|
$editor->setDefaultSortField("eventtype,name");
|
||||||
$editor->filterList("conferences_id", $conference['id']);
|
$editor->filterList("conferences_id", $conference['id']);
|
||||||
$editor->execute();
|
$editor->execute();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user