{"action":"opened","issue":{"url":"https://api.github.com/repos/contao/core/issues/7854","labels_url":"https://api.github.com/repos/contao/core/issues/7854/labels{/name}","comments_url":"https://api.github.com/repos/contao/core/issues/7854/comments","events_url":"https://api.github.com/repos/contao/core/issues/7854/events","html_url":"https://github.com/contao/core/issues/7854","id":83982441,"number":7854,"title":"[3.5.0-RC1] Extending form_submit.html5","user":{"login":"ausi","id":367169,"avatar_url":"https://avatars.githubusercontent.com/u/367169?v=3","gravatar_id":"","url":"https://api.github.com/users/ausi","html_url":"https://github.com/ausi","followers_url":"https://api.github.com/users/ausi/followers","following_url":"https://api.github.com/users/ausi/following{/other_user}","gists_url":"https://api.github.com/users/ausi/gists{/gist_id}","starred_url":"https://api.github.com/users/ausi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ausi/subscriptions","organizations_url":"https://api.github.com/users/ausi/orgs","repos_url":"https://api.github.com/users/ausi/repos","events_url":"https://api.github.com/users/ausi/events{/privacy}","received_events_url":"https://api.github.com/users/ausi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-02T11:36:49Z","updated_at":"2015-06-02T11:36:49Z","closed_at":null,"body":"In Contao 3.4 it was possible to extend the *form_submit* template, e.g.:\r\n\r\n```html+php\r\n<?php $this->extend('form_submit') ?>\r\n\r\n<?php $this->block('field') ?>\r\n\t<button type=\"submit\" ...\r\n<?php $this->endblock() ?>\r\n```\r\n\r\nThis does’t work anymore in 3.5.0-RC1 because of b3b993a0ef38f86cd30240647cade14a3b792d82.\r\n\r\nWe could fix this by wrapping the buttons with `<?php $this->block('field'); ?>`:\r\n\r\n```html+php\r\n<?php if ($this->tableless): ?>\r\n\r\n  <div class=\"submit_container<?php if ($this->class) echo ' ' . $this->class; ?>\">\r\n    <?php $this->block('field'); ?>\r\n      <?php if ($this->src): ?>\r\n        <input type=\"image\" src=\"<?= $this->src ?>\" id=\"ctrl_<?= $this->id ?>\" class=\"submit<?php if ($this->class) echo ' ' . $this->class; ?>\" title=\"<?= specialchars($this->slabel) ?>\" alt=\"<?= specialchars($this->slabel) ?>\"<?= $this->getAttributes() ?>>\r\n      <?php else: ?>\r\n        <input type=\"submit\" id=\"ctrl_<?= $this->id ?>\" class=\"submit<?php if ($this->class) echo ' ' . $this->class; ?>\" value=\"<?= specialchars($this->slabel) ?>\"<?= $this->getAttributes() ?>>\r\n      <?php endif; ?>\r\n    <?php $this->endblock(); ?>\r\n  </div>\r\n\r\n<?php else: ?>\r\n\r\n  <tr class=\"<?= $this->rowClass ?>\">\r\n    <td class=\"col_0 col_first\">&nbsp;</td>\r\n    <td class=\"col_1 col_last\">\r\n      <div class=\"submit_container\">\r\n        <?php $this->block('field'); ?>\r\n          <?php if ($this->src): ?>\r\n            <input type=\"image\" src=\"<?= $this->src ?>\" id=\"ctrl_<?= $this->id ?>\" class=\"submit<?php if ($this->class) echo ' ' . $this->class; ?>\" title=\"<?= specialchars($this->slabel) ?>\" alt=\"<?= specialchars($this->slabel) ?>\"<?= $this->getAttributes() ?>>\r\n          <?php else: ?>\r\n            <input type=\"submit\" id=\"ctrl_<?= $this->id ?>\" class=\"submit<?php if ($this->class) echo ' ' . $this->class; ?>\" value=\"<?= specialchars($this->slabel) ?>\"<?= $this->getAttributes() ?>>\r\n          <?php endif; ?>\r\n        <?php $this->endblock(); ?>\r\n      </div>\r\n    </td>\r\n  </tr>\r\n\r\n<?php endif; ?>\r\n```"}}