-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev-eerstejaars-international-calendar'
- Loading branch information
Showing
11 changed files
with
295 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Migrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
|
||
/** | ||
* Version 20231012122945 | ||
*/ | ||
class Version20231012122945 extends \Doctrine\Migrations\AbstractMigration | ||
{ | ||
/** | ||
* @param \Doctrine\DBAL\Schema\Schema $schema | ||
* @return void | ||
*/ | ||
public function up(Schema $schema) : void | ||
{ | ||
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); | ||
|
||
$this->addSql('ALTER TABLE nodes_events ADD is_eerstejaars BOOLEAN DEFAULT \'false\''); | ||
$this->addSql('ALTER TABLE nodes_events ADD is_international BOOLEAN DEFAULT \'false\''); | ||
} | ||
|
||
/** | ||
* @param \Doctrine\DBAL\Schema\Schema $schema | ||
* @return void | ||
*/ | ||
public function down(Schema $schema) : void | ||
{ | ||
$this->throwIrreversibleMigrationException(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
module/CalendarBundle/Resources/views/calendar/calendar/eerstejaars-calendar.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{% extends 'site/base.twig' %} | ||
|
||
{% block content %} | ||
<div class="container"> | ||
<div class="standardPageTitleHolder"> | ||
<h1>{{ translate('First years Calendar') }}</h1> | ||
<div class="pageTitleDeco"></div> | ||
</div> | ||
|
||
<div style="height: 20px"></div> | ||
|
||
{% if calendarItems|length != 0 %} | ||
<div class="eerstejaarsCalendarHolder"> | ||
<div class="calendar-grid" style="margin-bottom: 40px"> | ||
{% for event in calendarItems %} | ||
<div style="position: relative" class="calendar-item"> | ||
<div class="DELETE-BGIMAGE" | ||
style="background-image:url({{ url('calendar',{'action':'poster', 'name': event.getPoster()}) }})"></div> | ||
<div class="calendar-item-tekst"> | ||
<h4>{{ event.getTitle(language) }} | ||
| {{ dateLocalized(event.getStartDate(), 'LLL')|capitalize }} {{ dateLocalized(event.getStartDate(), 'd') }} </h4> | ||
<p class="calendar-emptyfill">{{ event.getSummary(150, language) }}</p> | ||
<div class="vtk-flex-horizontal" style="position: absolute; bottom: -10px"> | ||
<a class="myVtkButton" | ||
href="{{ url('calendar', {'action': 'view', 'name': event.getName()}) }}">{{ translate('Read More') }}</a> | ||
{% if event.hasTicket(entityManager) == true and event.getTicket(entityManager).isVisible() %} | ||
<a class="myVtkButton" | ||
href="{{ url('ticket', {'id': event.getTicket(entityManager).getRandId()}) }}">{{ translate('Buy Tickets') }}</a> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
{% else %} | ||
<div> | ||
<h4>{{ translate('There are no upcoming first year events.') }}</h4> | ||
</div> | ||
{% endif %} | ||
</div> | ||
{% endblock %} |
42 changes: 42 additions & 0 deletions
42
module/CalendarBundle/Resources/views/calendar/calendar/international-calendar.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{% extends 'site/base.twig' %} | ||
|
||
{% block content %} | ||
<div class="container"> | ||
<div class="standardPageTitleHolder"> | ||
<h1>{{ translate('International Calendar') }}</h1> | ||
<div class="pageTitleDeco"></div> | ||
</div> | ||
|
||
<div style="height: 20px"></div> | ||
|
||
{% if calendarItems|length != 0 %} | ||
<div class="internationalCalendarHolder"> | ||
<div class="calendar-grid" style="margin-bottom: 40px"> | ||
{% for event in calendarItems %} | ||
<div style="position: relative" class="calendar-item"> | ||
<div class="DELETE-BGIMAGE" | ||
style="background-image:url({{ url('calendar',{'action':'poster', 'name': event.getPoster()}) }})"></div> | ||
<div class="calendar-item-tekst"> | ||
<h4>{{ event.getTitle(language) }} | ||
| {{ dateLocalized(event.getStartDate(), 'LLL')|capitalize }} {{ dateLocalized(event.getStartDate(), 'd') }} </h4> | ||
<p class="calendar-emptyfill">{{ event.getSummary(150, language) }}</p> | ||
<div class="vtk-flex-horizontal" style="position: absolute; bottom: -10px"> | ||
<a class="myVtkButton" | ||
href="{{ url('calendar', {'action': 'view', 'name': event.getName()}) }}">{{ translate('Read More') }}</a> | ||
{% if event.hasTicket(entityManager) == true and event.getTicket(entityManager).isVisible() %} | ||
<a class="myVtkButton" | ||
href="{{ url('ticket', {'id': event.getTicket(entityManager).getRandId()}) }}">{{ translate('Buy Tickets') }}</a> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
{% else %} | ||
<div> | ||
<h4>{{ translate('There are no upcoming International events.') }}</h4> | ||
</div> | ||
{% endif %} | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters