frontender v.2

This commit is contained in:
julian
2024-06-28 11:19:27 -03:00
parent e61985d50e
commit 10b1f8c855
11 changed files with 39 additions and 17 deletions

View File

@ -18,7 +18,7 @@ defmodule DerivantesWeb.DerivantesLive do
</div>
<%= if length(@studies) > 0 do %>
<div class="estudio_patientname">
<h1>Bienvenido</h1>
<h1>Bienvenido, <%= @current_user.email %> </h1>
<p>Para ver un estudio haga click en el icono de Informe o de Imágenes.</p>
</div>
<div class="estudio_container">

20
lib/derivantes_web/live/user_registration_live.ex Normal file → Executable file
View File

@ -6,15 +6,15 @@ defmodule DerivantesWeb.UserRegistrationLive do
def render(assigns) do
~H"""
<div class="mx-auto max-w-sm">
<.header class="text-center">
<div class="register_screen">
<.header class="text-center mb-5">
Registre su nueva cuenta
<:subtitle>
Ya tiene una cuenta?
¿Ya tiene una cuenta?
<.link navigate={~p"/derivantes/log_in"} class="font-semibold text-[#297177] hover:underline">
Entre
Ingrese
</.link>
a su cuenta ahora.
ahora.
</:subtitle>
</.header>
@ -26,18 +26,18 @@ defmodule DerivantesWeb.UserRegistrationLive do
phx-trigger-action={@trigger_submit}
action={~p"/derivantes/log_in?_action=registered"}
method="post"
class="auth_form"
class="reg_form"
>
<.error :if={@check_errors}>
Hubo un error.
</.error>
<img src={~p"/images/sana_americano_logo.png"} alt="Sanatorio Americano Logo"/>
<.input class="imput_text w-40" field={@form[:matricula]} type="text" label="Matrícula" required />
<.input class="imput_text w-40" field={@form[:email]} type="email" label="Email" required />
<.input class="imput_text w-40" field={@form[:password]} type="password" label="Contraseña" required />
<.input class="imput_text w-40" field={@form[:matricula]} type="text" placeholder="Matrícula" required />
<.input class="imput_text w-40" field={@form[:email]} type="email" placeholder="Email" required />
<.input class="imput_text w-40" field={@form[:password]} type="password" placeholder="Contraseña" required />
<:actions>
<.button phx-disable-with="Creating account..." class="submit_button">Create an account</.button>
<.button phx-disable-with="Creando cuenta..." class="submit_button mt-2">Crear cuenta</.button>
</:actions>
</.simple_form>
</div>