{% extends 'admin/base.html.twig' %} {% block title %}{{ is_edit ? 'Edit Match' : 'Create Match' }}{% endblock %} {% block page_title %}{{ is_edit ? 'Edit Match' : 'Create New Match' }}{% endblock %} {% block body %}
{% if round %}
Round: {{ round.name }}
Season: {{ round.season.name }}
{% endif %} {{ form_start(form) }}
{{ form_label(form.homeTeam) }} {{ form_widget(form.homeTeam) }} {{ form_errors(form.homeTeam) }}
{{ form_label(form.awayTeam) }} {{ form_widget(form.awayTeam) }} {{ form_errors(form.awayTeam) }}
{{ form_label(form.matchDate) }} {{ form_widget(form.matchDate) }} {{ form_errors(form.matchDate) }}
{{ form_label(form.status) }} {{ form_widget(form.status) }} {{ form_errors(form.status) }}
{{ form_label(form.homeScore) }} {{ form_widget(form.homeScore) }} {{ form_errors(form.homeScore) }} Leave empty if match not played yet
{{ form_label(form.awayScore) }} {{ form_widget(form.awayScore) }} {{ form_errors(form.awayScore) }} Leave empty if match not played yet
Cancel
{{ form_end(form) }}
Help

Match Status:

  • Scheduled: Match is planned
  • In Progress: Match is ongoing
  • Completed: Match is finished
  • Postponed: Match is delayed
  • Cancelled: Match is cancelled

Match Scores:

Enter the actual game scores (e.g., 90:30, 85:84). These represent the points scored during the match itself.

League Points:

  • Win: 3 league points
  • Draw: 1 league point
  • Loss: 0 league points

Standings are calculated automatically based on match results when status is "Completed".

Note: Ensure home and away teams are different before saving.
{% if is_edit and match %}

Current Match:

  • Created: {{ match.createdAt|date('M d, Y H:i') }}
  • Updated: {{ match.updatedAt|date('M d, Y H:i') }}
{% endif %}
{% endblock %}