mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
* Remove balance mode, sketch out refactor * Activity view checkpoint * Entry partials, checkpoint * Finish txn partial * Give entries context when editing for different turbo responses * Calculate change of balance for each entry * Account tabs consolidation * Translations, linting, brakeman updates * Account actions concern * Finalize forms, get account system tests passing * Get tests passing * Lint, rubocop, schema updates * Improve routing and stream responses * Fix broken routes * Add import option for adding accounts * Fix system test * Fix test specificity * Fix sparklines * Improve account redirects
20 lines
651 B
Text
20 lines
651 B
Text
<%= modal_form_wrapper title: t(".title"), subtitle: t(".subtitle") do %>
|
|
<%= styled_form_with model: @invitation, class: "space-y-4", data: { turbo: false } do |form| %>
|
|
<%= form.email_field :email,
|
|
required: true,
|
|
placeholder: t(".email_placeholder"),
|
|
label: t(".email_label") %>
|
|
|
|
<%= form.select :role,
|
|
options_for_select([
|
|
[t(".role_member"), "member"],
|
|
[t(".role_admin"), "admin"]
|
|
]),
|
|
{},
|
|
{ label: t(".role_label") } %>
|
|
|
|
<div class="w-full">
|
|
<%= form.submit t(".submit"), class: "bg-gray-900 text-white rounded-lg px-4 py-2 w-full" %>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|