Skip to content

Commit

Permalink
Add example for select options (#551)
Browse files Browse the repository at this point in the history
* Add example for select options

* Add example for select options

* Apply suggestions from code review
  • Loading branch information
aryaantony92 authored Oct 24, 2023
1 parent 4c3b9db commit 4fea4ca
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 19 deletions.
2 changes: 2 additions & 0 deletions dump/data-0-bootstrap.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1854,6 +1854,7 @@ CREATE TABLE `object_query_EV` (
`contactEmail` varchar(190) DEFAULT NULL,
`contactAddress` longtext DEFAULT NULL,
`cars` text DEFAULT NULL,
`status` varchar(190) DEFAULT NULL,
PRIMARY KEY (`oo_id`),
CONSTRAINT `fk_object_query_EV__oo_id` FOREIGN KEY (`oo_id`) REFERENCES `objects` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
Expand Down Expand Up @@ -2708,6 +2709,7 @@ CREATE TABLE `object_store_EV` (
`contactPhone` varchar(190) DEFAULT NULL,
`contactEmail` varchar(190) DEFAULT NULL,
`contactAddress` longtext DEFAULT NULL,
`status` varchar(190) DEFAULT NULL,
PRIMARY KEY (`oo_id`),
CONSTRAINT `fk_object_store_EV__oo_id` FOREIGN KEY (`oo_id`) REFERENCES `objects` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
Expand Down
16 changes: 8 additions & 8 deletions dump/data-1-object_query_EV.sql
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

SET NAMES utf8mb4;

INSERT INTO object_query_EV (`oo_id`,`oo_classId`,`oo_className`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`cars`) VALUES (1120,'EV','Event',',Retro,1970,Salzburg,','Messezentrum Salzburg GmbH, Salzburg, Austria',13.029676192221,47.8235801,1569740400,1569859200,401,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',',321,325,350,250,268,192,205,');
INSERT INTO object_query_EV (`oo_id`,`oo_classId`,`oo_className`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`cars`) VALUES (1121,'EV','Event',',Trade Show,1950,Salzburg,','Messezentrum Salzburg GmbH, Salzburg, Austria',13.029676192221,47.8235801,1569481200,1585328400,402,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',',43,53,63,70,74,82,90,');
INSERT INTO object_query_EV (`oo_id`,`oo_classId`,`oo_className`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`cars`) VALUES (1122,'EV','Event',',Retro,Wels,','Messe Wels GmbH, Wels, Austria',14.0183948,48.1523808,1570255200,1570374000,403,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',',30,26,259,265,280,292,');
INSERT INTO object_query_EV (`oo_id`,`oo_classId`,`oo_className`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`cars`) VALUES (1123,'EV','Event',',Retro,Trade Show,Vienna,','Reed Messe Wien, Vienna, Austria',16.409917497177,48.215057,1569394800,1569699000,404,'a:8:{s:4:\"type\";s:7:\"youtube\";s:4:\"data\";s:11:\"HjFbyUVehR0\";s:6:\"poster\";s:0:\"\";s:5:\"title\";s:0:\"\";s:11:\"description\";s:0:\"\";s:6:\"_owner\";N;s:10:\"_fieldname\";s:0:\"\";s:9:\"_language\";N;}','','a:0:{}','John Doe','+43-6776-000000','[email protected]','',',312,316,305,20,26,247,245,');
INSERT INTO object_query_EV (`oo_id`,`oo_classId`,`oo_className`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`cars`) VALUES (1124,'EV','Event',',Trade Show,Retro,Vienna,','Reed Messe Wien, Vienna, Austria',16.409917497177,48.215057,1570633200,1570820400,405,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',',20,31,38,120,157,172,200,');
INSERT INTO object_query_EV (`oo_id`,`oo_classId`,`oo_className`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`cars`) VALUES (1125,'EV','Event',',Retro,Trade Show,International,','Congress Center Messe Frankfurt, Frankfurt, Germany',8.6479316880145,50.1115525,1569650400,1569855600,406,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',',217,220,232,277,279,283,295,');
INSERT INTO object_query_EV (`oo_id`,`oo_classId`,`oo_className`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`cars`) VALUES (1126,'EV','Event',',Trade Show,Retro,1960,','Tyrol, South Tyrol, Graubünden, Austria.',11.22963726417,46.65594215,1569916800,1570024800,407,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',',360,351,348,338,305,321,');
INSERT INTO object_query_EV (`oo_id`,`oo_classId`,`oo_className`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`cars`) VALUES (1127,'EV','Event',',1970,Trade Show,International,','Messe Erfurt GmbH, Erfurt, Germany',10.9900029,50.9603668,1569402000,1569693600,408,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',',38,51,133,202,216,245,266,294,');
INSERT INTO object_query_EV (`oo_id`,`oo_classId`,`oo_className`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`cars`,`status`) VALUES (1120,'EV','Event',',Retro,1970,Salzburg,','Messezentrum Salzburg GmbH, Salzburg, Austria',13.029676192221,47.8235801,1569740400,1569859200,401,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',',321,325,350,250,268,192,205,',NULL);
INSERT INTO object_query_EV (`oo_id`,`oo_classId`,`oo_className`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`cars`,`status`) VALUES (1121,'EV','Event',',Trade Show,1950,Salzburg,','Messezentrum Salzburg GmbH, Salzburg, Austria',13.029676192221,47.8235801,1569481200,1585328400,402,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',',43,53,63,70,74,82,90,','Scheduled');
INSERT INTO object_query_EV (`oo_id`,`oo_classId`,`oo_className`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`cars`,`status`) VALUES (1122,'EV','Event',',Retro,Wels,','Messe Wels GmbH, Wels, Austria',14.0183948,48.1523808,1570255200,1570374000,403,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',',30,26,259,265,280,292,',NULL);
INSERT INTO object_query_EV (`oo_id`,`oo_classId`,`oo_className`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`cars`,`status`) VALUES (1123,'EV','Event',',Retro,Trade Show,Vienna,','Reed Messe Wien, Vienna, Austria',16.409917497177,48.215057,1569394800,1569699000,404,'a:8:{s:4:\"type\";s:7:\"youtube\";s:4:\"data\";s:11:\"HjFbyUVehR0\";s:6:\"poster\";s:0:\"\";s:5:\"title\";s:0:\"\";s:11:\"description\";s:0:\"\";s:6:\"_owner\";N;s:10:\"_fieldname\";s:0:\"\";s:9:\"_language\";N;}','','a:0:{}','John Doe','+43-6776-000000','[email protected]','',',312,316,305,20,26,247,245,',NULL);
INSERT INTO object_query_EV (`oo_id`,`oo_classId`,`oo_className`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`cars`,`status`) VALUES (1124,'EV','Event',',Trade Show,Retro,Vienna,','Reed Messe Wien, Vienna, Austria',16.409917497177,48.215057,1570633200,1570820400,405,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',',20,31,38,120,157,172,200,',NULL);
INSERT INTO object_query_EV (`oo_id`,`oo_classId`,`oo_className`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`cars`,`status`) VALUES (1125,'EV','Event',',Retro,Trade Show,International,','Congress Center Messe Frankfurt, Frankfurt, Germany',8.6479316880145,50.1115525,1569650400,1569855600,406,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',',217,220,232,277,279,283,295,',NULL);
INSERT INTO object_query_EV (`oo_id`,`oo_classId`,`oo_className`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`cars`,`status`) VALUES (1126,'EV','Event',',Trade Show,Retro,1960,','Tyrol, South Tyrol, Graubünden, Austria.',11.22963726417,46.65594215,1569916800,1570024800,407,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',',360,351,348,338,305,321,',NULL);
INSERT INTO object_query_EV (`oo_id`,`oo_classId`,`oo_className`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`cars`,`status`) VALUES (1127,'EV','Event',',1970,Trade Show,International,','Messe Erfurt GmbH, Erfurt, Germany',10.9900029,50.9603668,1569402000,1569693600,408,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',',38,51,133,202,216,245,266,294,',NULL);
16 changes: 8 additions & 8 deletions dump/data-1-object_store_EV.sql
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

SET NAMES utf8mb4;

INSERT INTO object_store_EV (`oo_id`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`) VALUES (1120,'Retro,1970,Salzburg','Messezentrum Salzburg GmbH, Salzburg, Austria',13.029676192221,47.8235801,1569740400,1569859200,401,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','');
INSERT INTO object_store_EV (`oo_id`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`) VALUES (1121,'Trade Show,1950,Salzburg','Messezentrum Salzburg GmbH, Salzburg, Austria',13.029676192221,47.8235801,1569481200,1585328400,402,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','');
INSERT INTO object_store_EV (`oo_id`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`) VALUES (1122,'Retro,Wels','Messe Wels GmbH, Wels, Austria',14.0183948,48.1523808,1570255200,1570374000,403,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','');
INSERT INTO object_store_EV (`oo_id`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`) VALUES (1123,'Retro,Trade Show,Vienna','Reed Messe Wien, Vienna, Austria',16.409917497177,48.215057,1569394800,1569699000,404,'a:8:{s:4:\"type\";s:7:\"youtube\";s:4:\"data\";s:11:\"HjFbyUVehR0\";s:6:\"poster\";s:0:\"\";s:5:\"title\";s:0:\"\";s:11:\"description\";s:0:\"\";s:6:\"_owner\";N;s:10:\"_fieldname\";s:0:\"\";s:9:\"_language\";N;}','','a:0:{}','John Doe','+43-6776-000000','[email protected]','');
INSERT INTO object_store_EV (`oo_id`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`) VALUES (1124,'Trade Show,Retro,Vienna','Reed Messe Wien, Vienna, Austria',16.409917497177,48.215057,1570633200,1570820400,405,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','');
INSERT INTO object_store_EV (`oo_id`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`) VALUES (1125,'Retro,Trade Show,International','Congress Center Messe Frankfurt, Frankfurt, Germany',8.6479316880145,50.1115525,1569650400,1569855600,406,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','');
INSERT INTO object_store_EV (`oo_id`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`) VALUES (1126,'Trade Show,Retro,1960','Tyrol, South Tyrol, Graubünden, Austria.',11.22963726417,46.65594215,1569916800,1570024800,407,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','');
INSERT INTO object_store_EV (`oo_id`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`) VALUES (1127,'1970,Trade Show,International','Messe Erfurt GmbH, Erfurt, Germany',10.9900029,50.9603668,1569402000,1569693600,408,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','');
INSERT INTO object_store_EV (`oo_id`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`status`) VALUES (1120,'Retro,1970,Salzburg','Messezentrum Salzburg GmbH, Salzburg, Austria',13.029676192221,47.8235801,1569740400,1569859200,401,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',NULL);
INSERT INTO object_store_EV (`oo_id`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`status`) VALUES (1121,'Trade Show,1950,Salzburg','Messezentrum Salzburg GmbH, Salzburg, Austria',13.029676192221,47.8235801,1569481200,1585328400,402,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','','Scheduled');
INSERT INTO object_store_EV (`oo_id`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`status`) VALUES (1122,'Retro,Wels','Messe Wels GmbH, Wels, Austria',14.0183948,48.1523808,1570255200,1570374000,403,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',NULL);
INSERT INTO object_store_EV (`oo_id`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`status`) VALUES (1123,'Retro,Trade Show,Vienna','Reed Messe Wien, Vienna, Austria',16.409917497177,48.215057,1569394800,1569699000,404,'a:8:{s:4:\"type\";s:7:\"youtube\";s:4:\"data\";s:11:\"HjFbyUVehR0\";s:6:\"poster\";s:0:\"\";s:5:\"title\";s:0:\"\";s:11:\"description\";s:0:\"\";s:6:\"_owner\";N;s:10:\"_fieldname\";s:0:\"\";s:9:\"_language\";N;}','','a:0:{}','John Doe','+43-6776-000000','[email protected]','',NULL);
INSERT INTO object_store_EV (`oo_id`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`status`) VALUES (1124,'Trade Show,Retro,Vienna','Reed Messe Wien, Vienna, Austria',16.409917497177,48.215057,1570633200,1570820400,405,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',NULL);
INSERT INTO object_store_EV (`oo_id`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`status`) VALUES (1125,'Retro,Trade Show,International','Congress Center Messe Frankfurt, Frankfurt, Germany',8.6479316880145,50.1115525,1569650400,1569855600,406,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',NULL);
INSERT INTO object_store_EV (`oo_id`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`status`) VALUES (1126,'Trade Show,Retro,1960','Tyrol, South Tyrol, Graubünden, Austria.',11.22963726417,46.65594215,1569916800,1570024800,407,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',NULL);
INSERT INTO object_store_EV (`oo_id`,`tags`,`locationAddress`,`locationMap__longitude`,`locationMap__latitude`,`fromDate`,`toDate`,`mainImage`,`video`,`images__images`,`images__hotspots`,`contactName`,`contactPhone`,`contactEmail`,`contactAddress`,`status`) VALUES (1127,'1970,Trade Show,International','Messe Erfurt GmbH, Erfurt, Germany',10.9900029,50.9603668,1569402000,1569693600,408,NULL,'','a:0:{}','John Doe','+43-6776-000000','[email protected]','',NULL);
1 change: 1 addition & 0 deletions dump/data-1-users_permission_definitions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ INSERT INTO users_permission_definitions (`key`,`category`) VALUES ('reports_con
INSERT INTO users_permission_definitions (`key`,`category`) VALUES ('robots.txt','Pimcore Seo Bundle');
INSERT INTO users_permission_definitions (`key`,`category`) VALUES ('routes','Pimcore Static Routes Bundle');
INSERT INTO users_permission_definitions (`key`,`category`) VALUES ('seemode','');
INSERT INTO users_permission_definitions (`key`,`category`) VALUES ('selectoptions','');
INSERT INTO users_permission_definitions (`key`,`category`) VALUES ('seo_document_editor','Pimcore Seo Bundle');
INSERT INTO users_permission_definitions (`key`,`category`) VALUES ('share_configurations','');
INSERT INTO users_permission_definitions (`key`,`category`) VALUES ('system_appearance_settings','Pimcore Admin Bundle');
Expand Down
Loading

0 comments on commit 4fea4ca

Please sign in to comment.