@@ -20,17 +20,17 @@ protected function getDefaultModelInstance(){
2020
2121 public static function regular ($ identifier ,$ modelInstance =null ){
2222 return new FormLogin ($ identifier ,$ modelInstance ,
23- ["message " ,"login " ,"password " ,"remember " ,"forget " ,"submit " ],
24- ["message " =>["icon " =>"sign in " ],"input0 " =>["rules " =>"empty " ],"input1 " =>["inputType " =>"password " ,"rules " =>"empty " ],"checkbox " ,"link " ,"submit " =>"green fluid " ],
25- ["Connection " ,"login " ,"password " ,"remember " ,"forget " ,"submit " ],
23+ ["message " ,"login " ,"password " ,"remember " ,"forget " ,"submit " , " error " ],
24+ ["message " =>[[ "icon " =>"sign in " ]] ,"input0 " =>[[ "rules " =>"empty " ]] ,"input1 " =>[[ "inputType " =>"password " ,"rules " =>"empty " ]] ,"checkbox " ,"link " ,"submit " =>[ "green fluid " ], " message2 " =>[[ " error " => true ]] ],
25+ ["Connection " ,"login " ,"password " ,"remember " ,"forget " ,"submit " , " error " ],
2626 ["Please enter login and password to connect " ,"Login " ,"Password " ,"Remember me. " ,"Forgot your password? " ,"Connection " ],
27- [0 ,2 ,4 ,5 ]);
27+ [0 ,2 ,4 ,5 , 6 ]);
2828 }
2929
3030 public static function smallInline ($ identifier ,$ modelInstance =null ){
3131 $ result =new FormLogin ($ identifier ,$ modelInstance ,
3232 ["login " ,"password " ,"submit " ],
33- ["input0 " =>["rules " =>"empty " ],"input1 " =>["inputType " =>"password " ,"rules " =>"empty " ],"submit " =>"green basic " ],
33+ ["input0 " =>[[ "rules " =>"empty " ]] ,"input1 " =>[[ "inputType " =>"password " ,"rules " =>"empty " ]] ,"submit " =>[ "green basic " ] ],
3434 ["login " ,"password " ,"submit " ],
3535 ["" ,"" ,"Connection " ],
3636 [2 ]);
@@ -41,11 +41,19 @@ public static function smallInline($identifier,$modelInstance=null){
4141 public static function small ($ identifier ,$ modelInstance =null ){
4242 $ result =new FormLogin ($ identifier ,$ modelInstance ,
4343 ["login " ,"password " ,"submit " ],
44- ["input0 " =>["rules " =>"empty " ],"input1 " =>["inputType " =>"password " ,"rules " =>"empty " ],"submit " =>"green basic " ],
44+ ["input0 " =>[[ "rules " =>"empty " ]] ,"input1 " =>[[ "inputType " =>"password " ,"rules " =>"empty " ]] ,"submit " =>[ "green basic " ] ],
4545 ["login " ,"password " ,"submit " ],
4646 ["Login " ,"Password " ,"Connection " ],
4747 [1 ,2 ]);
4848 $ result ->addDividerBefore (0 , "Connection " );
4949 return $ result ;
5050 }
51+
52+ public static function attachedSegment ($ identifier ,$ modelInstance =null ){
53+ $ result =self ::regular ($ identifier ,$ modelInstance );
54+ $ result ->fieldAsMessage ("message " ,["icon " =>"sign in " ,"attached " =>true ]);
55+ $ result ->addWrapper ("message " ,null ,"<div class='ui attached segment'> " );
56+ $ result ->addWrapper ("error " , null ,"</div> " );
57+ return $ result ;
58+ }
5159}
0 commit comments