-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
147 additions
and
140 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<main role="main" class="container"> | ||
<p class="alert alert-info" role="alert"><%= get_flash(@conn, :info) %></p> | ||
<p class="alert alert-warning" role="alert"><%= get_flash(@conn, :warning) %></p> | ||
<p class="alert alert-danger" role="alert"><%= get_flash(@conn, :error) %></p> | ||
<%= @inner_content %> | ||
</main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<main class="container"> | ||
<p class="alert alert-info" role="alert" | ||
phx-click="lv:clear-flash" | ||
phx-value-key="info"><%= live_flash(@flash, :info) %></p> | ||
|
||
<p class="alert alert-danger" role="alert" | ||
phx-click="lv:clear-flash" | ||
phx-value-key="error"><%= live_flash(@flash, :error) %></p> | ||
|
||
<%= @inner_content %> | ||
</main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | ||
<title> | ||
<%= | ||
case assigns[:event] do | ||
nil -> "Athena" | ||
%{name: name} -> name | ||
end | ||
%> | ||
</title> | ||
<link rel="stylesheet" href={ Routes.static_path(@conn, "/css/app.css") } /> | ||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800" rel="stylesheet"> | ||
<%= csrf_meta_tag() %> | ||
<script async type="text/javascript" src={ Routes.static_path(@conn, "/js/app.js") }></script> | ||
</head> | ||
<body class={ if Map.has_key?(assigns, :navigation), do: "has_nav", else: "" }> | ||
<%= if Map.has_key?(assigns, :navigation) do %> | ||
<input type="checkbox" id="toggle-nav" hidden /> | ||
<nav> | ||
<header> | ||
<span><%= @navigation.event.name %></span> | ||
<label for="toggle-nav"> | ||
<span></span> | ||
</label> | ||
</header> | ||
<main> | ||
<ul> | ||
<%= for %{id: location_id, name: location_name} <- @navigation.locations do %> | ||
<li> | ||
<%= link location_name, to: Routes.admin_location_path(@conn, :show, location_id) %> | ||
</li> | ||
<% end %> | ||
<li class="divider"></li> | ||
<%= for %{id: item_group_id, name: item_group_name} <- @navigation.item_groups do %> | ||
<li> | ||
<%= link item_group_name, to: Routes.admin_item_group_path(@conn, :show, item_group_id) %> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</main> | ||
</nav> | ||
<% end %> | ||
|
||
<%= @inner_content %> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<main role="main" class="container"> | ||
<p class="alert alert-info" role="alert"><%= get_flash(@conn, :info) %></p> | ||
<p class="alert alert-warning" role="alert"><%= get_flash(@conn, :warning) %></p> | ||
<p class="alert alert-danger" role="alert"><%= get_flash(@conn, :error) %></p> | ||
<%= @inner_content %> | ||
</main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<main class="container"> | ||
<p class="alert alert-info" role="alert" | ||
phx-click="lv:clear-flash" | ||
phx-value-key="info"><%= live_flash(@flash, :info) %></p> | ||
|
||
<p class="alert alert-danger" role="alert" | ||
phx-click="lv:clear-flash" | ||
phx-value-key="error"><%= live_flash(@flash, :error) %></p> | ||
|
||
<%= @inner_content %> | ||
</main> |
48 changes: 0 additions & 48 deletions
48
lib/athena_web/frontend/templates/layout/logistics.html.eex
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | ||
<title><%= @event.name %></title> | ||
<link rel="stylesheet" href={ Routes.static_path(@conn, "/css/app.css") } /> | ||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800" rel="stylesheet"> | ||
<%= csrf_meta_tag() %> | ||
<script async type="text/javascript" src={ Routes.static_path(@conn, "/js/app.js") }></script> | ||
</head> | ||
<body class={ | ||
case @access do | ||
:logistics -> "has_nav" | ||
:vendor -> "" | ||
end | ||
}> | ||
<%= case @access do %> | ||
<% :logistics -> %> | ||
<input type="checkbox" id="toggle-nav" hidden /> | ||
<nav> | ||
<header> | ||
<span><%= @navigation.event.name %></span> | ||
<label for="toggle-nav"> | ||
<span></span> | ||
</label> | ||
</header> | ||
<main> | ||
<ul> | ||
<li> | ||
<%= "Logistics Overview" |> gettext |> link(to: Routes.frontend_logistics_live_url(@conn, AthenaWeb.Frontend.LogisticsLive, @navigation.event.id)) %> | ||
</li> | ||
<li> | ||
<%= "Supply Item" |> gettext |> link(to: Routes.frontend_logistics_movement_url(@conn, :supply_new, @navigation.event.id)) %> | ||
</li> | ||
<li> | ||
<%= "Move Item" |> gettext |> link(to: Routes.frontend_logistics_movement_url(@conn, :relocate_new, @navigation.event.id)) %> | ||
</li> | ||
<li class="divider"></li> | ||
<%= for %{id: location_id, name: location_name} <- @navigation.locations do %> | ||
<li> | ||
<%= link location_name, to: Routes.frontend_logistics_location_url(@conn, :show, location_id) %> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</main> | ||
</nav> | ||
|
||
<% :vendor -> %> | ||
<% end %> | ||
|
||
<%= @inner_content %> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters