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.LocationController do
render(conn, "index.html", locations: locations)
end
def admin(conn, _params) do
locations = Area.list_locations()
render(conn, "admin.html", locations: locations)
end
def new(conn, _params) do
changeset = Area.change_location(%Location{})
render(conn, "new.html", changeset: changeset)