protected function buildForm() { $this->formBuilder->add("admin_password", "text", array("label" => "The Admin Password", "label_attr" => ["for" => "password"], "required" => false, "constraints" => array(), "data" => DemoTheliaNet::getConfigValue(DemoTheliaNetConfigValue::ADMIN_PASSWORD, null)))->add("admin_username", "text", array("label" => "The Admin Username", "label_attr" => ["for" => "username"], "required" => false, "constraints" => array(), "data" => DemoTheliaNet::getConfigValue(DemoTheliaNetConfigValue::ADMIN_USERNAME, null)))->add("customer_password", "text", array("label" => "The Customer Password", "label_attr" => ["for" => "username"], "required" => false, "constraints" => array(), "data" => DemoTheliaNet::getConfigValue(DemoTheliaNetConfigValue::CUSTOMER_PASSWORD, null)))->add("customer_email", "text", array("label" => "The Customer Email", "label_attr" => ["for" => "username"], "required" => false, "constraints" => array(), "data" => DemoTheliaNet::getConfigValue(DemoTheliaNetConfigValue::CUSTOMER_EMAIL, null))); }
public function onLoginJavascriptInitionlization(HookRenderEvent $event) { $password = DemoTheliaNet::getConfigValue(DemoTheliaNetConfigValue::CUSTOMER_PASSWORD, null); $email = DemoTheliaNet::getConfigValue(DemoTheliaNetConfigValue::CUSTOMER_EMAIL, null); $event->add($this->render("assets/js/login_information_js.html", ['password' => $password, 'email' => $email])); }