@@ 19-41 (lines=23) @@ | ||
16 | * |
|
17 | * @param Anax\DI\DIInterface $di a service container |
|
18 | */ |
|
19 | public function __construct(DIInterface $di) |
|
20 | { |
|
21 | parent::__construct($di); |
|
22 | $this->form->create( |
|
23 | [ |
|
24 | "id" => __CLASS__, |
|
25 | "legend" => "Delete an item", |
|
26 | ], |
|
27 | [ |
|
28 | "select" => [ |
|
29 | "type" => "select", |
|
30 | "label" => "Select item to delete:", |
|
31 | "options" => $this->getAllItems(), |
|
32 | ], |
|
33 | ||
34 | "submit" => [ |
|
35 | "type" => "submit", |
|
36 | "value" => "Delete item", |
|
37 | "callback" => [$this, "callbackSubmit"] |
|
38 | ], |
|
39 | ] |
|
40 | ); |
|
41 | } |
|
42 | ||
43 | ||
44 |
@@ 19-48 (lines=30) @@ | ||
16 | * |
|
17 | * @param Anax\DI\DIInterface $di a service container |
|
18 | */ |
|
19 | public function __construct(DIInterface $di) |
|
20 | { |
|
21 | parent::__construct($di); |
|
22 | ||
23 | $this->form->create( |
|
24 | [ |
|
25 | "id" => __CLASS__, |
|
26 | "legend" => "Logga in" |
|
27 | ], |
|
28 | [ |
|
29 | "user" => [ |
|
30 | "type" => "text", |
|
31 | //"description" => "Here you can place a description.", |
|
32 | //"placeholder" => "Here is a placeholder", |
|
33 | ], |
|
34 | ||
35 | "password" => [ |
|
36 | "type" => "password", |
|
37 | //"description" => "Here you can place a description.", |
|
38 | //"placeholder" => "Here is a placeholder", |
|
39 | ], |
|
40 | ||
41 | "submit" => [ |
|
42 | "type" => "submit", |
|
43 | "value" => "Login", |
|
44 | "callback" => [$this, "callbackSubmit"] |
|
45 | ], |
|
46 | ] |
|
47 | ); |
|
48 | } |
|
49 | ||
50 | ||
51 |