Admin pages.

This commit is contained in:
codevictory
2021-04-22 21:00:55 +03:00
parent b06bae000f
commit cebe145c32
10 changed files with 121 additions and 22 deletions

View File

@@ -9,6 +9,11 @@ defmodule RunosaariWeb.PerformanceController do
render(conn, "index.html", performances: performances)
end
def admin(conn, _params) do
performances = Schedule.list_performances()
render(conn, "admin.html", performances: performances)
end
def new(conn, _params) do
changeset = Schedule.change_performance(%Performance{})
render(conn, "new.html", changeset: changeset)