@@ -121,7 +121,7 @@ |
||
| 121 | 121 | 'attributes' => [ |
| 122 | 122 | 'data-placeholder' => /*@translate*/ 'please select', |
| 123 | 123 | 'data-allowclear' => 'false', |
| 124 | - 'data-searchbox' => -1, // hide the search box |
|
| 124 | + 'data-searchbox' => -1, // hide the search box |
|
| 125 | 125 | 'required' => true, // mark label as required |
| 126 | 126 | ], |
| 127 | 127 | ) |
@@ -27,78 +27,78 @@ discard block |
||
| 27 | 27 | $this->setName('invoiceAddress'); |
| 28 | 28 | |
| 29 | 29 | $this->add([ |
| 30 | - 'type' => 'text', |
|
| 31 | - 'name' => 'company', |
|
| 32 | - 'options' => [ |
|
| 33 | - 'label' => /*@translate*/ |
|
| 34 | - 'Company', |
|
| 35 | - 'description' => /*@translate*/ |
|
| 36 | - 'Enter the name of the company', |
|
| 37 | - ], |
|
| 38 | - 'attributes' => [ |
|
| 39 | - 'required' => true, // marks the label as required. |
|
| 40 | - ] |
|
| 41 | - ] |
|
| 30 | + 'type' => 'text', |
|
| 31 | + 'name' => 'company', |
|
| 32 | + 'options' => [ |
|
| 33 | + 'label' => /*@translate*/ |
|
| 34 | + 'Company', |
|
| 35 | + 'description' => /*@translate*/ |
|
| 36 | + 'Enter the name of the company', |
|
| 37 | + ], |
|
| 38 | + 'attributes' => [ |
|
| 39 | + 'required' => true, // marks the label as required. |
|
| 40 | + ] |
|
| 41 | + ] |
|
| 42 | 42 | ); |
| 43 | 43 | |
| 44 | 44 | $this->add([ |
| 45 | - 'type' => 'text', |
|
| 46 | - 'name' => 'street', |
|
| 47 | - 'options' => [ |
|
| 48 | - 'label' => /*@translate*/ |
|
| 49 | - 'Street', |
|
| 50 | - ], |
|
| 51 | - ] |
|
| 45 | + 'type' => 'text', |
|
| 46 | + 'name' => 'street', |
|
| 47 | + 'options' => [ |
|
| 48 | + 'label' => /*@translate*/ |
|
| 49 | + 'Street', |
|
| 50 | + ], |
|
| 51 | + ] |
|
| 52 | 52 | ); |
| 53 | 53 | |
| 54 | 54 | $this->add([ |
| 55 | - 'type' => 'text', |
|
| 56 | - 'name' => 'zipCode', |
|
| 57 | - 'options' => [ |
|
| 58 | - 'label' => /* @translate */ |
|
| 59 | - 'Postalcode' |
|
| 60 | - ], |
|
| 61 | - ] |
|
| 55 | + 'type' => 'text', |
|
| 56 | + 'name' => 'zipCode', |
|
| 57 | + 'options' => [ |
|
| 58 | + 'label' => /* @translate */ |
|
| 59 | + 'Postalcode' |
|
| 60 | + ], |
|
| 61 | + ] |
|
| 62 | 62 | ); |
| 63 | 63 | |
| 64 | 64 | $this->add([ |
| 65 | - 'type' => 'text', |
|
| 66 | - 'name' => 'city', |
|
| 67 | - 'options' => [ |
|
| 68 | - 'label' => /*@translate*/ |
|
| 69 | - 'City', |
|
| 70 | - ], |
|
| 71 | - ] |
|
| 65 | + 'type' => 'text', |
|
| 66 | + 'name' => 'city', |
|
| 67 | + 'options' => [ |
|
| 68 | + 'label' => /*@translate*/ |
|
| 69 | + 'City', |
|
| 70 | + ], |
|
| 71 | + ] |
|
| 72 | 72 | ); |
| 73 | 73 | |
| 74 | 74 | $this->add([ |
| 75 | - 'type' => 'text', |
|
| 76 | - 'name' => 'region', |
|
| 77 | - 'options' => [ |
|
| 78 | - 'label' => /*@translate*/ |
|
| 79 | - 'Region', |
|
| 80 | - ], |
|
| 81 | - ] |
|
| 75 | + 'type' => 'text', |
|
| 76 | + 'name' => 'region', |
|
| 77 | + 'options' => [ |
|
| 78 | + 'label' => /*@translate*/ |
|
| 79 | + 'Region', |
|
| 80 | + ], |
|
| 81 | + ] |
|
| 82 | 82 | ); |
| 83 | 83 | |
| 84 | 84 | $this->add([ |
| 85 | - 'type' => 'text', |
|
| 86 | - 'name' => 'country', |
|
| 87 | - 'options' => [ |
|
| 88 | - 'label' => /*@translate*/ |
|
| 89 | - 'Country', |
|
| 90 | - ], |
|
| 91 | - ] |
|
| 85 | + 'type' => 'text', |
|
| 86 | + 'name' => 'country', |
|
| 87 | + 'options' => [ |
|
| 88 | + 'label' => /*@translate*/ |
|
| 89 | + 'Country', |
|
| 90 | + ], |
|
| 91 | + ] |
|
| 92 | 92 | ); |
| 93 | 93 | |
| 94 | 94 | $this->add([ |
| 95 | - 'type' => 'text', |
|
| 96 | - 'name' => 'vatId', |
|
| 97 | - 'options' => [ |
|
| 98 | - 'label' => /*@translate*/ |
|
| 99 | - 'Value added tax ID', |
|
| 100 | - ], |
|
| 101 | - ] |
|
| 95 | + 'type' => 'text', |
|
| 96 | + 'name' => 'vatId', |
|
| 97 | + 'options' => [ |
|
| 98 | + 'label' => /*@translate*/ |
|
| 99 | + 'Value added tax ID', |
|
| 100 | + ], |
|
| 101 | + ] |
|
| 102 | 102 | ); |
| 103 | 103 | $this->add( |
| 104 | 104 | array( |
@@ -133,28 +133,28 @@ discard block |
||
| 133 | 133 | // ); |
| 134 | 134 | |
| 135 | 135 | $this->add([ |
| 136 | - 'type' => 'text', |
|
| 137 | - 'name' => 'name', |
|
| 138 | - 'options' => [ |
|
| 139 | - 'label' => /*@translate*/ |
|
| 140 | - 'Full name', |
|
| 141 | - 'description' => /*@translate*/ |
|
| 142 | - 'Enter your full name (First, middle and last name)', |
|
| 143 | - ], |
|
| 144 | - ] |
|
| 136 | + 'type' => 'text', |
|
| 137 | + 'name' => 'name', |
|
| 138 | + 'options' => [ |
|
| 139 | + 'label' => /*@translate*/ |
|
| 140 | + 'Full name', |
|
| 141 | + 'description' => /*@translate*/ |
|
| 142 | + 'Enter your full name (First, middle and last name)', |
|
| 143 | + ], |
|
| 144 | + ] |
|
| 145 | 145 | ); |
| 146 | 146 | |
| 147 | 147 | $this->add([ |
| 148 | - 'type' => 'text', |
|
| 149 | - 'name' => 'email', |
|
| 150 | - 'options' => [ |
|
| 151 | - 'label' => /*@translate*/ |
|
| 152 | - 'Email address', |
|
| 153 | - ], |
|
| 154 | - 'attributes' => [ |
|
| 155 | - 'required' => true, // marks the label as required. |
|
| 156 | - ] |
|
| 157 | - ] |
|
| 148 | + 'type' => 'text', |
|
| 149 | + 'name' => 'email', |
|
| 150 | + 'options' => [ |
|
| 151 | + 'label' => /*@translate*/ |
|
| 152 | + 'Email address', |
|
| 153 | + ], |
|
| 154 | + 'attributes' => [ |
|
| 155 | + 'required' => true, // marks the label as required. |
|
| 156 | + ] |
|
| 157 | + ] |
|
| 158 | 158 | ); |
| 159 | 159 | } |
| 160 | 160 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | $elements = [ |
| 60 | 60 | 'general' => [ |
| 61 | 61 | 'priority' => 0, |
| 62 | - 'options' => [ 'label' => 'Basic Data' ], |
|
| 62 | + 'options' => ['label' => 'Basic Data'], |
|
| 63 | 63 | 'property' => true, |
| 64 | 64 | 'forms' => [ |
| 65 | 65 | |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | |
| 96 | 96 | 'description' => [ |
| 97 | 97 | 'priority' => '0', |
| 98 | - 'options' => [ 'label' => 'Job opening' ], |
|
| 98 | + 'options' => ['label' => 'Job opening'], |
|
| 99 | 99 | 'property' => true, |
| 100 | 100 | 'forms' => [ |
| 101 | 101 | 'descriptionForm' => array( |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | |
| 108 | 108 | 'preview' => [ |
| 109 | 109 | 'priority' => 0, |
| 110 | - 'options' => [ 'label' => 'Preview' ], |
|
| 110 | + 'options' => ['label' => 'Preview'], |
|
| 111 | 111 | 'property' => true, |
| 112 | 112 | 'forms' => [ |
| 113 | 113 | 'previewForm' => array( |
@@ -120,13 +120,13 @@ discard block |
||
| 120 | 120 | |
| 121 | 121 | $this->setForms($elements); |
| 122 | 122 | |
| 123 | - $events = $this->getEventManager(); |
|
| 123 | + $events = $this->getEventManager(); |
|
| 124 | 124 | $events->trigger(FormEvent::EVENT_INIT, $this); |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | public function renderPost(Renderer $renderer) |
| 128 | 128 | { |
| 129 | - $coreformsjs = $renderer->basepath('/Core/js/core.forms.js'); |
|
| 129 | + $coreformsjs = $renderer->basepath('/Core/js/core.forms.js'); |
|
| 130 | 130 | $javaScript = <<<JS |
| 131 | 131 | $(document).ready(function() { |
| 132 | 132 | |