Sha256: a3d372ef74d6584137ae63076097fb3e869e88bb1bc4e83089be3a55ea328720
Contents?: true
Size: 988 Bytes
Versions: 2
Compression:
Stored size: 988 Bytes
Contents
module Maquina module FirstRuns class Form < Phlex::HTML include Maquina::ApplicationView include Maquina::Form def initialize(resource) @resource = resource @scope = "first_runs" end def view_template div(class: "mt-8 sm:mx-auto sm:w-full sm:max-w-md") do div(class: "bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10") do p(class: "text-center text-skin-muted") { t("maquina.application.first_runs_header.description") } form_with(model: @resource, url: first_run_path, method: :post, class: "space-y-6") do |form| text_field(form, field_name: :email, required: true) password_field(form, field_name: :password, required: true) div do form.submit t("helpers.submit.first_runs.create"), class: "flex w-full justify-center button button-accented" end end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
maquina-0.5.2 | app/views/maquina/first_runs/form.rb |
maquina-0.5.1 | app/views/maquina/first_runs/form.rb |