diff --git a/src/Entity/Customer.php b/src/Entity/Customer.php index 10a131ea..e35e3767 100644 --- a/src/Entity/Customer.php +++ b/src/Entity/Customer.php @@ -34,6 +34,11 @@ class Customer */ protected $last_name; + /** + * @ORM\Column(type="text", length=80) + */ + protected $customer_notes; + // mobile numbers linked to this customer /** * @ORM\OneToMany(targetEntity="MobileNumber", mappedBy="customer", cascade={"persist"}) @@ -99,6 +104,17 @@ class Customer return $this->last_name; } + public function setCustomerNotes($customer_notes) + { + $this->customer_notes = $customer_notes; + return $this; + } + + public function getCustomerNotes() + { + return $this->customer_notes; + } + public function addMobileNumber(MobileNumber $number) { $this->numbers->add($number); diff --git a/templates/customer/form.html.twig b/templates/customer/form.html.twig index cfb91216..8e916d07 100644 --- a/templates/customer/form.html.twig +++ b/templates/customer/form.html.twig @@ -62,7 +62,16 @@
- + +
+
+ + + +
+
diff --git a/templates/vehicle-manufacturer/form.html.twig b/templates/vehicle-manufacturer/form.html.twig index 4f2dd831..eb95c747 100644 --- a/templates/vehicle-manufacturer/form.html.twig +++ b/templates/vehicle-manufacturer/form.html.twig @@ -24,7 +24,7 @@

{% if mode == 'update' %} Edit Manufacturer - {{ obj.getName() }} + {{ obj.getName }} {% else %} New Manufacturer {% endif %} @@ -32,14 +32,14 @@

-
+
- + Display name for this manufacturer