Skip to content

Commit

Permalink
Merge pull request #44 from JoshuaBehrens/patch-1
Browse files Browse the repository at this point in the history
Fix title when re-used template states creation although used in update
  • Loading branch information
vtsykun authored Dec 27, 2022
2 parents 1f38dea + 57ab40d commit 325e1da
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{% extends "PackagistWebBundle::layout.html.twig" %}

{% block content %}
<h2 class="title">Create a new group</h2>
<h2 class="title">
{%- if app.request.attributes.get('_route') == 'groups_update' %}
Update group
{%- else %}
Create a new group
{%- endif %}
</h2>

<section class="row">
{{ form_start(form, { attr: { class: 'col-md-6' } }) }}
Expand Down

0 comments on commit 325e1da

Please sign in to comment.