Working : For attributes on labels
This commit is contained in:
@@ -40,11 +40,47 @@ class CurrencyCreationForm extends BaseForm
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->formBuilder
|
$this->formBuilder
|
||||||
->add("name" , "text" , array("constraints" => array(new NotBlank())))
|
->add("name" , "text" , array(
|
||||||
->add("locale" , "text" , array("constraints" => array(new NotBlank())))
|
"constraints" => array(
|
||||||
->add("symbol" , "text" , array("constraints" => array(new NotBlank())))
|
new NotBlank()
|
||||||
->add("rate" , "text" , array("constraints" => array(new NotBlank())))
|
),
|
||||||
->add("code" , "text" , array("constraints" => $code_constraints))
|
"label" => "Name *",
|
||||||
|
"label_attr" => array(
|
||||||
|
"for" => "name"
|
||||||
|
))
|
||||||
|
)
|
||||||
|
->add("locale" , "text" , array(
|
||||||
|
"constraints" => array(
|
||||||
|
new NotBlank()
|
||||||
|
))
|
||||||
|
)
|
||||||
|
->add("symbol" , "text" , array(
|
||||||
|
"constraints" => array(
|
||||||
|
new NotBlank()
|
||||||
|
),
|
||||||
|
"label" => "Symbol *",
|
||||||
|
"label_attr" => array(
|
||||||
|
"for" => "symbol"
|
||||||
|
))
|
||||||
|
)
|
||||||
|
->add("rate" , "text" , array(
|
||||||
|
"constraints" => array(
|
||||||
|
new NotBlank()
|
||||||
|
),
|
||||||
|
"label" => "Rate from € *",
|
||||||
|
"label_attr" => array(
|
||||||
|
"for" => "rate"
|
||||||
|
))
|
||||||
|
)
|
||||||
|
->add("code" , "text" , array(
|
||||||
|
"constraints" => array(
|
||||||
|
new NotBlank()
|
||||||
|
),
|
||||||
|
"label" => "ISO 4217 code *",
|
||||||
|
"label_attr" => array(
|
||||||
|
"for" => "iso_4217_code"
|
||||||
|
))
|
||||||
|
)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user