@@ -327,6 +327,34 @@ public static function crudController() {
327327 'Creates a crud controller for the class models\projects\Author ' => 'Ubiquity crud Authors -r=models\projects\Author '
328328 ], 'controllers ' );
329329 }
330+
331+ public static function indexCrudController () {
332+ return new Command ("index-crud " , "crudControllerName " , "Creates a new index-CRUD controller. " , [
333+ "index-crud-controller "
334+ ], [
335+ "d " => Parameter::create ("datas " , "The associated Datas class " , [
336+ "true " ,
337+ "false "
338+ ], "true " ),
339+ "v " => Parameter::create ("viewer " , "The associated Viewer class " , [
340+ "true " ,
341+ "false "
342+ ], "true " ),
343+ "e " => Parameter::create ("events " , "The associated Events class " , [
344+ "true " ,
345+ "false "
346+ ], "true " ),
347+ "t " => Parameter::create ("templates " , "The templates to modify " , [
348+ "index " ,
349+ "form " ,
350+ "display "
351+ ], "index,form,display " ),
352+ "p " => Parameter::create ("path " , "The associated route " , ['{resource} ' ])
353+ ], [
354+ 'Creates an index crud controller ' => 'Ubiquity index-crud MainCrud -r=crud/{resource} ' ,
355+ 'allows customization of index and form templates ' => 'Ubiquity index-crud MainCrud -t=index,form '
356+ ], 'controllers ' );
357+ }
330358
331359 public static function restController () {
332360 return new Command ("rest " , "restControllerName " , "Creates a new REST controller. " , [
@@ -690,6 +718,7 @@ public static function getCommands() {
690718 self ::controller (),
691719 self ::newAction (),
692720 self ::authController (),
721+ self ::indexCrudController (),
693722 self ::crudController (),
694723 self ::newClass (),
695724 self ::newTheme (),
0 commit comments