Okay that's about everything
This commit is contained in:
parent
023ad47ae4
commit
d094ff036f
19 changed files with 236 additions and 79 deletions
|
|
@ -1 +0,0 @@
|
|||
benbot@darch.125027:1698169376
|
||||
|
|
@ -1,13 +1,14 @@
|
|||
defmodule EzcontainerRailwayWeb.ContainerController do
|
||||
alias EzcontainerRailway.Railway
|
||||
alias Phoenix.Component
|
||||
use EzcontainerRailwayWeb, :controller
|
||||
|
||||
def index(conn, params) do
|
||||
form = Component.to_form(%{"container_name" => "", "container_tag" => ""})
|
||||
{:ok, services} = Railway.get_services(conn |> get_session(:railway_token))
|
||||
|
||||
conn
|
||||
|> assign(:form, form)
|
||||
|> render(:make_container, layout: false)
|
||||
|> assign(:services, services)
|
||||
|> render(:containers)
|
||||
end
|
||||
|
||||
def create(conn, params) do
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
<.flash_group flash={@flash} />
|
||||
<div class="grid grid-cols-3 m-10">
|
||||
<%= for service <- @services do %>
|
||||
<div class="card bg-base-100 shadow-xl">
|
||||
<div class="card-body">
|
||||
<h2 class="card-title"><%= service["name"] %></h2>
|
||||
<div class="card-actions justify-start">
|
||||
<button class="btn btn-xs btn-secondary">Delete</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<.flash_group flash={@flash} />
|
||||
<dialog open class="modal">
|
||||
<dialog open class="modal bg-base-300">
|
||||
<article class="modal-box">
|
||||
<.form
|
||||
for={@form}
|
||||
|
|
@ -8,13 +8,13 @@
|
|||
action="/token"
|
||||
>
|
||||
<label class="label">
|
||||
<span class="label-text">What is your name?</span>
|
||||
<span class="label-text-alt">Top Right label</span>
|
||||
<span class="label-text">Enter your railway token</span>
|
||||
<a href="https://railway.app/account/tokens" class="label-text-alt underline">Get it here</a>
|
||||
</label>
|
||||
|
||||
<input class="input input-bordered" name="railway_token" />
|
||||
<div class="text-center mt-6">
|
||||
<button class="btn">Test</button>
|
||||
<button class="btn">Begin</button>
|
||||
</div>
|
||||
</.form>
|
||||
</article>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue