From 413deaa335e8b5464e77d94355b042801bd381cd 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..9c95adf --- /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

+

Transactions | 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..2326572 --- /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..a3cf74b --- /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 events yet.

+
+ +@endsection