User:Martind/Pentabarf

From Electromagnetic Field

Modifications I made to our Pentabarf setup.

  • TODO gender: remove that question. (decided to leave it for now.)
  • TODO paper/slide submission fields are not explained well, may be superfluous (decided to leave them for now.)

Event Types

  • limit to Talk, Workshop, Performance, Other
  • removed entries in event_type table
  • added entries in event_type_localized table
  • left their base.* parent tables as is
  • OPEN: possible to reorder entries? There's a 'rank' field but it appears to have no effect
delete from event_type where event_type in ('contest', 'lecture', 'lightning', 'meeting', 'movie', 'podium');
insert into event_type(event_type, public_role_required, rank) values('talk', true, 1);
update event_type set rank=2 where event_type='workshop';
insert into event_type(event_type, public_role_required, rank) values('performance', true, 3);
update event_type set rank=4 where event_type='other';

INSERT INTO event_type_localized (event_type, translated, name) VALUES ('talk', 'en', 'Talk');
INSERT INTO event_type_localized (event_type, translated, name) VALUES ('performance', 'en', 'Performance');

Custom Event Preferences

NOTE: Custom fields require a server restart so the model gets re-loaded, otherwise Pentabarf will crash on certain pages: mongrel_rails cluster::restart

insert into ui_message_localized(ui_message, translated, name) values('custom_fields', 'de', 'Anforderungen');
insert into ui_message_localized(ui_message, translated, name) values('custom_fields', 'en', 'Requirements');

insert into ui_message_localized(ui_message, translated, name) values('custom_event::need_internet', 'de', 'Brauche Internet');
insert into ui_message_localized(ui_message, translated, name) values('custom_event::need_internet', 'en', 'Need Internet');
insert into ui_message_localized(ui_message, translated, name) values('custom_event::need_audio', 'de', 'Brauche Audio');
insert into ui_message_localized(ui_message, translated, name) values('custom_event::need_audio', 'en', 'Need audio playback');
insert into ui_message_localized(ui_message, translated, name) values('custom_event::no_video_recording', 'de', 'Bitte nicht filmen');
insert into ui_message_localized(ui_message, translated, name) values('custom_event::no_video_recording', 'en', 'Please don't record this event');

insert into ui_message_localized(ui_message, translated, name) values('custom_event::workshop_need_power', 'de', 'Für Workshops: brauche Strom');
insert into ui_message_localized(ui_message, translated, name) values('custom_event::workshop_need_power', 'en', 'For workshops: need power');
insert into ui_message_localized(ui_message, translated, name) values('custom_event::workshop_need_projector', 'de', 'Für Workshops: brauche Projektor');
insert into ui_message_localized(ui_message, translated, name) values('custom_event::workshop_need_projector', 'en', 'For workshops: need projector');
insert into ui_message_localized(ui_message, translated, name) values('custom_event::workshop_need_tables', 'de', 'Für Workshops: brauche Tische');
insert into ui_message_localized(ui_message, translated, name) values('custom_event::workshop_need_tables', 'en', 'For workshops: need tables');

insert into ui_message_localized(ui_message, translated, name) values('custom_event::other_requirements', 'de', 'Andere Anforderungen');
insert into ui_message_localized(ui_message, translated, name) values('custom_event::other_requirements', 'en', 'Other requirements');
Personal tools