Skip to content

Commit

Permalink
Merge pull request #125 from larriereguichet/bugfix/fix-header-render
Browse files Browse the repository at this point in the history
Bugfix/fix header render
  • Loading branch information
johnkrovitch authored Nov 19, 2019
2 parents 1a502a7 + 51b1409 commit a97a9e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ install:
- wget https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer

script:
- make phpstan@analyse security@check phpunit@run
- ls
- make phpstan@analyse phpunit@run
- php php-cs-fixer fix

after_script:
Expand Down
2 changes: 1 addition & 1 deletion src/Field/Render/FieldRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function renderHeader(ViewInterface $admin, FieldInterface $field): strin
$key = TranslationUtils::getTranslationKey(
$configuration->get('translation_pattern'),
$admin->getName(),
$field->getName()
StringUtils::underscore($field->getName())
);
$title = $this->translator->trans($key);
} else {
Expand Down
2 changes: 2 additions & 0 deletions src/Resources/views/CRUD/edit.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
{% form_theme form 'bootstrap_4_layout.html.twig' %}

{% block form %}
{# TODO use the form start/end helper #}
{# {{ form_start() }}#}
<form action=""
method="post"
role="form"
Expand Down

0 comments on commit a97a9e1

Please sign in to comment.