From caccafaba954821fde944bf2b6d1d0144a2d326d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 28 May 2023 03:44:19 +0200 Subject: [PATCH] RVRNEXT-11 add views for events --- views/events/event.php | 27 +++++++++++++++++ views/events/event_edit.php | 40 +++++++++++++++++++++++++ views/events/events.php | 60 +++++++++++++++++++++++++++++++++++++ 3 files changed, 127 insertions(+) create mode 100644 views/events/event.php create mode 100644 views/events/event_edit.php create mode 100644 views/events/events.php diff --git a/views/events/event.php b/views/events/event.php new file mode 100644 index 0000000..4479986 --- /dev/null +++ b/views/events/event.php @@ -0,0 +1,27 @@ +@extends(templates/layout_normal) + +@section(main) +

+ getName() ?> » + Events » + getTitle() ?> + [edit] +

+ +
+
+ getMainCurrency()->getCode(); + $mainCurrencyRoundDigits = $community->getMainCurrency()->getRoundDigits(); + ?> +

Finances

+

New transaction

+ + + + + +
Total cost
+
+
+@endsection diff --git a/views/events/event_edit.php b/views/events/event_edit.php new file mode 100644 index 0000000..7b15d0a --- /dev/null +++ b/views/events/event_edit.php @@ -0,0 +1,40 @@ +@extends(templates/layout_normal) + +@section(main) +

+ getName() ?> » + Events » + + getTitle() ?> » Edit event + + New event + +

+
+ getRoute('community.event.edit-action')->generateLink(['communitySlug' => $community->getSlug(), 'eventSlug' => $event->getSlug()]) : + Container::$routeCollection->getRoute('community.events.new-action')->generateLink(['communitySlug' => $community->getSlug()]); + ?> +
+

Title

+ +

Description

+ +

Start

+ +

End

+ +

+
+ + + + +
+
+ +
+ +
+@endsection diff --git a/views/events/events.php b/views/events/events.php new file mode 100644 index 0000000..010635f --- /dev/null +++ b/views/events/events.php @@ -0,0 +1,60 @@ +@extends(templates/layout_normal) + +@section(main) +

+ getName() ?> » + Events +

+ +

New event

+ + 0): ?> + 1): ?> +

+ « + + + + + + + + + + » +

+ + + + +
+

getTitle() ?>

+

getStartDate()->format('Y-m-d') ?> – getEndDate()->format('Y-m-d') ?>

+

getDescription() ?>

+
+
+ + + 1): ?> +

+ « + + + + + + + + + + » +

+ + +

New event

+ +
+

There are no transactions yet.

+
+ +@endsection