Current section
11 Versions
Jump to
Current section
11 Versions
Compare versions
3
files changed
+27
additions
-23
deletions
| @@ -54,4 +54,4 @@ | |
| 54 54 | {<<"optional">>,false}, |
| 55 55 | {<<"repository">>,<<"hexpm">>}, |
| 56 56 | {<<"requirement">>,<<">= 3.0.0">>}]]}. |
| 57 | - {<<"version">>,<<"0.1.6">>}. |
| 57 | + {<<"version">>,<<"0.1.7">>}. |
| @@ -1,39 +1,43 @@ | |
| 1 1 | <section id={"#{ @id }"} class="be_userlist_edit_component"> |
| 2 2 | <%= if @local_edit_component do %> |
| 3 3 | |
| 4 | - <%= live_component @local_edit_component, |
| 5 | - context: @context, |
| 6 | - base_path: @base_path, |
| 7 | - changeset: @changeset, |
| 8 | - parent_id: @id, |
| 9 | - rec_id: @rec_id |
| 10 | - %> |
| 4 | + <.live_component module={@local_edit_component} |
| 5 | + context={@context} |
| 6 | + base_path={@base_path} |
| 7 | + changeset={@changeset} |
| 8 | + parent_id={@id} |
| 9 | + rec_id={@rec_id} |
| 10 | + id="edit be_user" |
| 11 | + /> |
| 11 12 | |
| 12 13 | |
| 13 14 | <% else %> |
| 14 15 | |
| 15 16 | |
| 16 | - <%= live_component MyAppBe.Live.Components.CenteredModalComponent, phx_target: "##{@id}", class: "sm:max-w-[90vw] sm:w-[400px] w-full" do %> |
| 17 | - <div class="my-8 be_userlist_component_inner"> |
| 17 | + <.live_component module={MyAppBe.Live.Components.CenteredModalComponent} phx_target={"##{@id}"} |
| 18 | + class="sm:max-w-[90vw] sm:w-[400px] w-full" |
| 19 | + id="edit be_user" |
| 20 | + > |
| 21 | + <div class="my-8 be_userlist_component_inner"> |
| 18 22 | |
| 19 23 | |
| 20 24 | |
| 21 | - <.form let={f} for={@changeset} url="#" as={:fdata} phx-change={:validate} phx-submit={:save} phx-target="##{@id}"> |
| 25 | + <.form let={f} for={@changeset} url="#" as={:fdata} phx-change={:validate} phx-submit={:save} |
| 26 | + phx-target={"##{@id}"}> |
| 22 27 | |
| 23 28 | |
| 24 | - <%= input f, :email , label: "Email" %> |
| 29 | + <%= input f, :email , label: "Email" %> |
| 25 30 | |
| 26 | - <%= input f, :is_active ,using: :checkbox, label: "Is Active" %> |
| 31 | + <%= input f, :is_active ,using: :checkbox, label: "Is Active" %> |
| 27 32 | |
| 28 33 | |
| 29 | - <div class="my-4 text-right"> |
| 30 | - <%= content_tag :button, "OK",class: "btn-outline-primary px-10" %> |
| 34 | + <div class="my-4 text-right"> |
| 35 | + <%= content_tag :button, "OK",class: "btn-outline-primary px-10" %> |
| 36 | + </div> |
| 37 | + |
| 38 | + |
| 39 | + </.form> |
| 31 40 | </div> |
| 32 | - |
| 33 | - |
| 34 | - </.form> |
| 35 | - </div> |
| 36 | - <% end %> |
| 37 | - |
| 38 | - <% end %> |
| 41 | + </.live_component> |
| 42 | + <% end %> |
| 39 43 | </section> |
| @@ -1,7 +1,7 @@ | |
| 1 1 | defmodule MavuBeUserUi.MixProject do |
| 2 2 | use Mix.Project |
| 3 3 | |
| 4 | - @version "0.1.6" |
| 4 | + @version "0.1.7" |
| 5 5 | def project do |
| 6 6 | [ |
| 7 7 | app: :mavu_be_user_ui, |