parent = array(); $this->blocks = array( 'form_widget' => array($this, 'block_form_widget'), 'collection_widget' => array($this, 'block_collection_widget'), 'textarea_widget' => array($this, 'block_textarea_widget'), 'widget_choice_options' => array($this, 'block_widget_choice_options'), 'choice_widget' => array($this, 'block_choice_widget'), 'checkbox_widget' => array($this, 'block_checkbox_widget'), 'radio_widget' => array($this, 'block_radio_widget'), 'datetime_widget' => array($this, 'block_datetime_widget'), 'date_widget' => array($this, 'block_date_widget'), 'time_widget' => array($this, 'block_time_widget'), 'number_widget' => array($this, 'block_number_widget'), 'integer_widget' => array($this, 'block_integer_widget'), 'money_widget' => array($this, 'block_money_widget'), 'url_widget' => array($this, 'block_url_widget'), 'search_widget' => array($this, 'block_search_widget'), 'percent_widget' => array($this, 'block_percent_widget'), 'field_widget' => array($this, 'block_field_widget'), 'password_widget' => array($this, 'block_password_widget'), 'hidden_widget' => array($this, 'block_hidden_widget'), 'email_widget' => array($this, 'block_email_widget'), 'generic_label' => array($this, 'block_generic_label'), 'field_label' => array($this, 'block_field_label'), 'form_label' => array($this, 'block_form_label'), 'repeated_row' => array($this, 'block_repeated_row'), 'field_row' => array($this, 'block_field_row'), 'hidden_row' => array($this, 'block_hidden_row'), 'field_enctype' => array($this, 'block_field_enctype'), 'field_errors' => array($this, 'block_field_errors'), 'field_rest' => array($this, 'block_field_rest'), 'field_rows' => array($this, 'block_field_rows'), 'widget_attributes' => array($this, 'block_widget_attributes'), 'widget_container_attributes' => array($this, 'block_widget_container_attributes'), ); } protected function doDisplay(array $context, array $blocks = array()) { $context = array_merge($this->env->getGlobals(), $context); // line 2 echo " "; // line 3 $this->displayBlock('form_widget', $context, $blocks); // line 11 echo " "; // line 12 $this->displayBlock('collection_widget', $context, $blocks); // line 20 echo " "; // line 21 $this->displayBlock('textarea_widget', $context, $blocks); // line 26 echo " "; // line 27 $this->displayBlock('widget_choice_options', $context, $blocks); // line 42 echo " "; // line 43 $this->displayBlock('choice_widget', $context, $blocks); // line 70 echo " "; // line 71 $this->displayBlock('checkbox_widget', $context, $blocks); // line 76 echo " "; // line 77 $this->displayBlock('radio_widget', $context, $blocks); // line 82 echo " "; // line 83 $this->displayBlock('datetime_widget', $context, $blocks); // line 97 echo " "; // line 98 $this->displayBlock('date_widget', $context, $blocks); // line 113 echo " "; // line 114 $this->displayBlock('time_widget', $context, $blocks); // line 125 echo " "; // line 126 $this->displayBlock('number_widget', $context, $blocks); // line 133 echo " "; // line 134 $this->displayBlock('integer_widget', $context, $blocks); // line 140 echo " "; // line 141 $this->displayBlock('money_widget', $context, $blocks); // line 146 echo " "; // line 147 $this->displayBlock('url_widget', $context, $blocks); // line 153 echo " "; // line 154 $this->displayBlock('search_widget', $context, $blocks); // line 160 echo " "; // line 161 $this->displayBlock('percent_widget', $context, $blocks); // line 167 echo " "; // line 168 $this->displayBlock('field_widget', $context, $blocks); // line 174 echo " "; // line 175 $this->displayBlock('password_widget', $context, $blocks); // line 181 echo " "; // line 182 $this->displayBlock('hidden_widget', $context, $blocks); // line 186 echo " "; // line 187 $this->displayBlock('email_widget', $context, $blocks); // line 193 echo " "; // line 195 echo " "; // line 196 $this->displayBlock('generic_label', $context, $blocks); // line 204 echo " "; // line 205 $this->displayBlock('field_label', $context, $blocks); // line 211 echo " "; // line 212 $this->displayBlock('form_label', $context, $blocks); // line 217 echo " "; // line 219 echo " "; // line 220 $this->displayBlock('repeated_row', $context, $blocks); // line 225 echo " "; // line 226 $this->displayBlock('field_row', $context, $blocks); // line 235 echo " "; // line 236 $this->displayBlock('hidden_row', $context, $blocks); // line 239 echo " "; // line 241 echo " "; // line 242 $this->displayBlock('field_enctype', $context, $blocks); // line 247 echo " "; // line 248 $this->displayBlock('field_errors', $context, $blocks); // line 259 echo " "; // line 260 $this->displayBlock('field_rest', $context, $blocks); // line 269 echo " "; // line 271 echo " "; // line 272 $this->displayBlock('field_rows', $context, $blocks); // line 280 echo " "; // line 281 $this->displayBlock('widget_attributes', $context, $blocks); // line 287 echo " "; // line 288 $this->displayBlock('widget_container_attributes', $context, $blocks); } // line 3 public function block_form_widget($context, array $blocks = array()) { // line 4 ob_start(); // line 5 echo "
displayBlock("widget_container_attributes", $context, $blocks); echo "> "; // line 6 $this->displayBlock("field_rows", $context, $blocks); echo " "; // line 7 echo $this->env->getExtension('form')->renderRest($this->getContext($context, 'form')); echo "
"; echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 12 public function block_collection_widget($context, array $blocks = array()) { // line 13 ob_start(); // line 14 echo " "; if (array_key_exists("prototype", $context)) { // line 15 echo " "; $context['attr'] = twig_array_merge($this->getContext($context, 'attr'), array("data-prototype" => $this->env->getExtension('form')->renderRow($this->getContext($context, 'prototype')))); // line 16 echo " "; } // line 17 echo " "; $this->displayBlock("form_widget", $context, $blocks); echo " "; echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 21 public function block_textarea_widget($context, array $blocks = array()) { // line 22 ob_start(); // line 23 echo " "; echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 27 public function block_widget_choice_options($context, array $blocks = array()) { // line 28 ob_start(); // line 29 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getContext($context, 'options')); foreach ($context['_seq'] as $context['choice'] => $context['label']) { // line 30 echo " "; if ($this->env->getExtension('form')->isChoiceGroup($this->getContext($context, 'label'))) { // line 31 echo " env, $this->env->getExtension('translator')->trans($this->getContext($context, 'choice')), "html"); echo "\"> "; // line 32 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getContext($context, 'label')); foreach ($context['_seq'] as $context['nestedChoice'] => $context['nestedLabel']) { // line 33 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['nestedChoice'], $context['nestedLabel'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); // line 35 echo " "; } else { // line 37 echo " "; } // line 39 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['choice'], $context['label'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 43 public function block_choice_widget($context, array $blocks = array()) { // line 44 ob_start(); // line 45 echo " "; if ($this->getContext($context, 'expanded')) { // line 46 echo "
displayBlock("widget_container_attributes", $context, $blocks); echo "> "; // line 47 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getContext($context, 'form')); foreach ($context['_seq'] as $context['_key'] => $context['child']) { // line 48 echo " "; echo $this->env->getExtension('form')->renderWidget($this->getContext($context, 'child')); echo " "; // line 49 echo $this->env->getExtension('form')->renderLabel($this->getContext($context, 'child')); echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); // line 51 echo "
"; } else { // line 53 echo " "; } echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 71 public function block_checkbox_widget($context, array $blocks = array()) { // line 72 ob_start(); // line 73 echo " displayBlock("widget_attributes", $context, $blocks); if (array_key_exists("value", $context)) { echo " value=\""; echo twig_escape_filter($this->env, $this->getContext($context, 'value'), "html"); echo "\""; } if ($this->getContext($context, 'checked')) { echo " checked=\"checked\""; } echo " /> "; echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 77 public function block_radio_widget($context, array $blocks = array()) { // line 78 ob_start(); // line 79 echo " displayBlock("widget_attributes", $context, $blocks); if (array_key_exists("value", $context)) { echo " value=\""; echo twig_escape_filter($this->env, $this->getContext($context, 'value'), "html"); echo "\""; } if ($this->getContext($context, 'checked')) { echo " checked=\"checked\""; } echo " /> "; echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 83 public function block_datetime_widget($context, array $blocks = array()) { // line 84 ob_start(); // line 85 echo " "; if (($this->getContext($context, 'widget') == "single_text")) { // line 86 echo " "; $this->displayBlock("field_widget", $context, $blocks); echo " "; } else { // line 88 echo "
displayBlock("widget_container_attributes", $context, $blocks); echo "> "; // line 89 echo $this->env->getExtension('form')->renderErrors($this->getAttribute($this->getContext($context, 'form'), "date", array(), "any", false)); echo " "; // line 90 echo $this->env->getExtension('form')->renderErrors($this->getAttribute($this->getContext($context, 'form'), "time", array(), "any", false)); echo " "; // line 91 echo $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, 'form'), "date", array(), "any", false)); echo " "; // line 92 echo $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, 'form'), "time", array(), "any", false)); echo "
"; } echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 98 public function block_date_widget($context, array $blocks = array()) { // line 99 ob_start(); // line 100 echo " "; if (($this->getContext($context, 'widget') == "single_text")) { // line 101 echo " "; $this->displayBlock("field_widget", $context, $blocks); echo " "; } else { // line 103 echo "
displayBlock("widget_container_attributes", $context, $blocks); echo "> "; // line 104 echo twig_strtr($this->getContext($context, 'date_pattern'), array("{{ year }}" => $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, 'form'), "year", array(), "any", false)), "{{ month }}" => $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, 'form'), "month", array(), "any", false)), "{{ day }}" => $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, 'form'), "day", array(), "any", false)))); // line 108 echo "
"; } echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 114 public function block_time_widget($context, array $blocks = array()) { // line 115 ob_start(); // line 116 echo " "; if (($this->getContext($context, 'widget') == "single_text")) { // line 117 echo " "; $this->displayBlock("field_widget", $context, $blocks); echo " "; } else { // line 119 echo "
displayBlock("widget_container_attributes", $context, $blocks); echo "> "; // line 120 echo $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, 'form'), "hour", array(), "any", false), array("attr" => array("size" => "1"))); echo ":"; echo $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, 'form'), "minute", array(), "any", false), array("attr" => array("size" => "1"))); if ($this->getContext($context, 'with_seconds')) { echo ":"; echo $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, 'form'), "second", array(), "any", false), array("attr" => array("size" => "1"))); } // line 121 echo "
"; } echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 126 public function block_number_widget($context, array $blocks = array()) { // line 127 ob_start(); // line 128 echo " "; // line 129 echo " "; $context['type'] = ((array_key_exists("type", $context)) ? (twig_default_filter($this->getContext($context, 'type'), "text")) : ("text")); // line 130 echo " "; $this->displayBlock("field_widget", $context, $blocks); echo " "; echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 134 public function block_integer_widget($context, array $blocks = array()) { // line 135 ob_start(); // line 136 echo " "; $context['type'] = ((array_key_exists("type", $context)) ? (twig_default_filter($this->getContext($context, 'type'), "number")) : ("number")); // line 137 echo " "; $this->displayBlock("field_widget", $context, $blocks); echo " "; echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 141 public function block_money_widget($context, array $blocks = array()) { // line 142 ob_start(); // line 143 echo " "; echo twig_strtr($this->getContext($context, 'money_pattern'), array("{{ widget }}" => $this->renderBlock("field_widget", $context, $blocks))); echo " "; echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 147 public function block_url_widget($context, array $blocks = array()) { // line 148 ob_start(); // line 149 echo " "; $context['type'] = ((array_key_exists("type", $context)) ? (twig_default_filter($this->getContext($context, 'type'), "url")) : ("url")); // line 150 echo " "; $this->displayBlock("field_widget", $context, $blocks); echo " "; echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 154 public function block_search_widget($context, array $blocks = array()) { // line 155 ob_start(); // line 156 echo " "; $context['type'] = ((array_key_exists("type", $context)) ? (twig_default_filter($this->getContext($context, 'type'), "search")) : ("search")); // line 157 echo " "; $this->displayBlock("field_widget", $context, $blocks); echo " "; echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 161 public function block_percent_widget($context, array $blocks = array()) { // line 162 ob_start(); // line 163 echo " "; $context['type'] = ((array_key_exists("type", $context)) ? (twig_default_filter($this->getContext($context, 'type'), "text")) : ("text")); // line 164 echo " "; $this->displayBlock("field_widget", $context, $blocks); echo " % "; echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 168 public function block_field_widget($context, array $blocks = array()) { // line 169 ob_start(); // line 170 echo " "; $context['type'] = ((array_key_exists("type", $context)) ? (twig_default_filter($this->getContext($context, 'type'), "text")) : ("text")); // line 171 echo " env, $this->getContext($context, 'type'), "html"); echo "\" "; $this->displayBlock("widget_attributes", $context, $blocks); echo " value=\""; echo twig_escape_filter($this->env, $this->getContext($context, 'value'), "html"); echo "\" /> "; echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 175 public function block_password_widget($context, array $blocks = array()) { // line 176 ob_start(); // line 177 echo " "; $context['type'] = ((array_key_exists("type", $context)) ? (twig_default_filter($this->getContext($context, 'type'), "password")) : ("password")); // line 178 echo " "; $this->displayBlock("field_widget", $context, $blocks); echo " "; echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 182 public function block_hidden_widget($context, array $blocks = array()) { // line 183 echo " "; $context['type'] = ((array_key_exists("type", $context)) ? (twig_default_filter($this->getContext($context, 'type'), "hidden")) : ("hidden")); // line 184 echo " "; $this->displayBlock("field_widget", $context, $blocks); echo " "; } // line 187 public function block_email_widget($context, array $blocks = array()) { // line 188 ob_start(); // line 189 echo " "; $context['type'] = ((array_key_exists("type", $context)) ? (twig_default_filter($this->getContext($context, 'type'), "email")) : ("email")); // line 190 echo " "; $this->displayBlock("field_widget", $context, $blocks); echo " "; echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 196 public function block_generic_label($context, array $blocks = array()) { // line 197 ob_start(); // line 198 echo " "; if ($this->getContext($context, 'required')) { // line 199 echo " "; $context['attr'] = twig_array_merge($this->getContext($context, 'attr'), array("class" => ((($this->getAttribute(((array_key_exists("attr", $context)) ? (twig_default_filter($this->getContext($context, 'attr'))) : ("")), "class", array(), "any", true)) ? (twig_default_filter($this->getAttribute($this->getContext($context, 'attr'), "class", array(), "any", false), "")) : ("")) . " required"))); // line 200 echo " "; } // line 201 echo " getContext($context, 'attr')); foreach ($context['_seq'] as $context['attrname'] => $context['attrvalue']) { echo " "; echo twig_escape_filter($this->env, $this->getContext($context, 'attrname'), "html"); echo "=\""; echo twig_escape_filter($this->env, $this->getContext($context, 'attrvalue'), "html"); echo "\""; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); echo ">"; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getContext($context, 'label')), "html"); echo " "; echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 205 public function block_field_label($context, array $blocks = array()) { // line 206 ob_start(); // line 207 echo " "; $context['attr'] = twig_array_merge($this->getContext($context, 'attr'), array("for" => $this->getContext($context, 'id'))); // line 208 echo " "; $this->displayBlock("generic_label", $context, $blocks); echo " "; echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 212 public function block_form_label($context, array $blocks = array()) { // line 213 ob_start(); // line 214 echo " "; $this->displayBlock("generic_label", $context, $blocks); echo " "; echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 220 public function block_repeated_row($context, array $blocks = array()) { // line 221 ob_start(); // line 222 echo " "; $this->displayBlock("field_rows", $context, $blocks); echo " "; echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 226 public function block_field_row($context, array $blocks = array()) { // line 227 ob_start(); // line 228 echo "
"; // line 229 echo $this->env->getExtension('form')->renderLabel($this->getContext($context, 'form'), ((array_key_exists("label", $context)) ? (twig_default_filter($this->getContext($context, 'label'), null)) : (null))); echo " "; // line 230 echo $this->env->getExtension('form')->renderErrors($this->getContext($context, 'form')); echo " "; // line 231 echo $this->env->getExtension('form')->renderWidget($this->getContext($context, 'form')); echo "
"; echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 236 public function block_hidden_row($context, array $blocks = array()) { // line 237 echo " "; echo $this->env->getExtension('form')->renderWidget($this->getContext($context, 'form')); echo " "; } // line 242 public function block_field_enctype($context, array $blocks = array()) { // line 243 ob_start(); // line 244 echo " "; if ($this->getContext($context, 'multipart')) { echo "enctype=\"multipart/form-data\""; } echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 248 public function block_field_errors($context, array $blocks = array()) { // line 249 ob_start(); // line 250 echo " "; if ((twig_length_filter($this->env, $this->getContext($context, 'errors')) > 0)) { // line 251 echo " "; } echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 260 public function block_field_rest($context, array $blocks = array()) { // line 261 ob_start(); // line 262 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getContext($context, 'form')); foreach ($context['_seq'] as $context['_key'] => $context['child']) { // line 263 echo " "; if ((!$this->getAttribute($this->getContext($context, 'child'), "rendered", array(), "any", false))) { // line 264 echo " "; echo $this->env->getExtension('form')->renderRow($this->getContext($context, 'child')); echo " "; } // line 266 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 272 public function block_field_rows($context, array $blocks = array()) { // line 273 ob_start(); // line 274 echo " "; echo $this->env->getExtension('form')->renderErrors($this->getContext($context, 'form')); echo " "; // line 275 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getContext($context, 'form')); foreach ($context['_seq'] as $context['_key'] => $context['child']) { // line 276 echo " "; echo $this->env->getExtension('form')->renderRow($this->getContext($context, 'child')); echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 281 public function block_widget_attributes($context, array $blocks = array()) { // line 282 ob_start(); // line 283 echo " id=\""; echo twig_escape_filter($this->env, $this->getContext($context, 'id'), "html"); echo "\" name=\""; echo twig_escape_filter($this->env, $this->getContext($context, 'full_name'), "html"); echo "\""; if ($this->getContext($context, 'read_only')) { echo " disabled=\"disabled\""; } if ($this->getContext($context, 'required')) { echo " required=\"required\""; } if ($this->getContext($context, 'max_length')) { echo " maxlength=\""; echo twig_escape_filter($this->env, $this->getContext($context, 'max_length'), "html"); echo "\""; } if ($this->getContext($context, 'pattern')) { echo " pattern=\""; echo twig_escape_filter($this->env, $this->getContext($context, 'pattern'), "html"); echo "\""; } // line 284 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getContext($context, 'attr')); foreach ($context['_seq'] as $context['attrname'] => $context['attrvalue']) { echo twig_escape_filter($this->env, $this->getContext($context, 'attrname'), "html"); echo "=\""; echo twig_escape_filter($this->env, $this->getContext($context, 'attrvalue'), "html"); echo "\" "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); echo trim(preg_replace('/>\s+<', ob_get_clean())); } // line 288 public function block_widget_container_attributes($context, array $blocks = array()) { // line 289 ob_start(); // line 290 echo " id=\""; echo twig_escape_filter($this->env, $this->getContext($context, 'id'), "html"); echo "\" "; // line 291 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getContext($context, 'attr')); foreach ($context['_seq'] as $context['attrname'] => $context['attrvalue']) { echo twig_escape_filter($this->env, $this->getContext($context, 'attrname'), "html"); echo "=\""; echo twig_escape_filter($this->env, $this->getContext($context, 'attrvalue'), "html"); echo "\" "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); echo trim(preg_replace('/>\s+<', ob_get_clean())); } public function getTemplateName() { return "form_div_layout.html.twig"; } public function isTraitable() { return true; } }