aboutsummaryrefslogtreecommitdiff
path: root/lib/waev_web
diff options
context:
space:
mode:
authorGuillermo Ramos2020-02-04 16:06:14 +0100
committerGuillermo Ramos2020-02-04 16:06:14 +0100
commit4c399821684fa38b0d52b03932d7856b569478ab (patch)
tree1fdb87156f181c1936cedaa6783dd9acf2475df6 /lib/waev_web
parent1566a2fcba0676cf54dde2b04702a320d9f1edcd (diff)
downloadwaev-4c399821684fa38b0d52b03932d7856b569478ab.tar.gz
Exports (WIP)
Diffstat (limited to 'lib/waev_web')
-rw-r--r--lib/waev_web/controllers/exports_controller.ex7
-rw-r--r--lib/waev_web/router.ex2
-rw-r--r--lib/waev_web/templates/exports/show.html.eex35
-rw-r--r--lib/waev_web/views/exports_view.ex3
4 files changed, 47 insertions, 0 deletions
diff --git a/lib/waev_web/controllers/exports_controller.ex b/lib/waev_web/controllers/exports_controller.ex
new file mode 100644
index 0000000..a50896e
--- /dev/null
+++ b/lib/waev_web/controllers/exports_controller.ex
@@ -0,0 +1,7 @@
+defmodule WaevWeb.ExportsController do
+ use WaevWeb, :controller
+
+ def show(conn, %{"id" => id}) do
+ render(conn, "show.html", id: id)
+ end
+end
diff --git a/lib/waev_web/router.ex b/lib/waev_web/router.ex
index e98f87a..edd2c69 100644
--- a/lib/waev_web/router.ex
+++ b/lib/waev_web/router.ex
@@ -17,6 +17,8 @@ defmodule WaevWeb.Router do
pipe_through :browser
get "/", PageController, :index
+ # index,edit,new,show,create,update
+ resources "/exports", ExportsController, only: [:show]
end
# Other scopes may use custom stacks.
diff --git a/lib/waev_web/templates/exports/show.html.eex b/lib/waev_web/templates/exports/show.html.eex
new file mode 100644
index 0000000..4351a17
--- /dev/null
+++ b/lib/waev_web/templates/exports/show.html.eex
@@ -0,0 +1,35 @@
+ID: <%= @id %>
+
+<section class="phx-hero">
+ <section class="row">
+ <article class="column">
+ <h2>Left</h2>
+ <ul>
+ <li>
+ <a href="#">Link 1</a>
+ </li>
+ <li>
+ Text 2
+ </li>
+ <li>
+ Text 3
+ </li>
+ </ul>
+ </article>
+ <article class="column">
+ <h2>Right</h2>
+ <ul>
+ <li>
+ <a href="#">Link 1</a>
+ </li>
+ <li>
+ Text 2
+ </li>
+ <li>
+ Text 3
+ </li>
+ </ul>
+ </article>
+ </section>
+</section>
+
diff --git a/lib/waev_web/views/exports_view.ex b/lib/waev_web/views/exports_view.ex
new file mode 100644
index 0000000..c4b637f
--- /dev/null
+++ b/lib/waev_web/views/exports_view.ex
@@ -0,0 +1,3 @@
+defmodule WaevWeb.ExportsView do
+ use WaevWeb, :view
+end