From e9ad552f2fda9c43bec4c40077cbfa85eeb059f9 Mon Sep 17 00:00:00 2001 From: shibao Date: Fri, 10 Sep 2021 00:41:15 -0400 Subject: [PATCH] style form components --- .../ammo_group_live/form_component.html.leex | 8 +++---- .../ammo_type_live/form_component.html.leex | 22 +++++++++---------- .../container_live/form_component.html.leex | 16 +++++++------- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/lib/cannery_web/live/ammo_group_live/form_component.html.leex b/lib/cannery_web/live/ammo_group_live/form_component.html.leex index 6310694..47b1603 100644 --- a/lib/cannery_web/live/ammo_group_live/form_component.html.leex +++ b/lib/cannery_web/live/ammo_group_live/form_component.html.leex @@ -6,16 +6,16 @@ phx_change: "validate", phx_submit: "save" %> - <%= label f, :count %> + <%= label f, :count, class: "title text-lg text-primary-500" %> <%= number_input f, :count %> <%= error_tag f, :count %> - <%= label f, :price_paid %> + <%= label f, :price_paid, class: "title text-lg text-primary-500" %> <%= number_input f, :price_paid, step: "any" %> <%= error_tag f, :price_paid %> - <%= label f, :notes %> - <%= textarea f, :notes %> + <%= label f, :notes, class: "title text-lg text-primary-500" %> + <%= textarea f, :notes, class: "input" %> <%= error_tag f, :notes %> <%= submit "Save", phx_disable_with: "Saving..." %> diff --git a/lib/cannery_web/live/ammo_type_live/form_component.html.leex b/lib/cannery_web/live/ammo_type_live/form_component.html.leex index 48e7456..abd99c2 100644 --- a/lib/cannery_web/live/ammo_type_live/form_component.html.leex +++ b/lib/cannery_web/live/ammo_type_live/form_component.html.leex @@ -6,28 +6,28 @@ phx_change: "validate", phx_submit: "save" %> - <%= label f, :name %> - <%= text_input f, :name %> + <%= label f, :name, class: "title text-lg text-primary-500" %> + <%= text_input f, :name, class: "input input-primary" %> <%= error_tag f, :name %> - <%= label f, :desc %> - <%= text_input f, :desc %> + <%= label f, :desc, class: "title text-lg text-primary-500" %> + <%= text_input f, :desc, class: "input input-primary" %> <%= error_tag f, :desc %> - <%= label f, :case_material %> - <%= text_input f, :case_material %> + <%= label f, :case_material, class: "title text-lg text-primary-500" %> + <%= text_input f, :case_material, class: "input input-primary" %> <%= error_tag f, :case_material %> - <%= label f, :bullet_type %> - <%= text_input f, :bullet_type %> + <%= label f, :bullet_type, class: "title text-lg text-primary-500" %> + <%= text_input f, :bullet_type, class: "input input-primary" %> <%= error_tag f, :bullet_type %> - <%= label f, :weight %> + <%= label f, :weight, class: "title text-lg text-primary-500" %> <%= number_input f, :weight, step: "any" %> <%= error_tag f, :weight %> - <%= label f, :manufacturer %> - <%= text_input f, :manufacturer %> + <%= label f, :manufacturer, class: "title text-lg text-primary-500" %> + <%= text_input f, :manufacturer, class: "input input-primary" %> <%= error_tag f, :manufacturer %> <%= submit "Save", phx_disable_with: "Saving..." %> diff --git a/lib/cannery_web/live/container_live/form_component.html.leex b/lib/cannery_web/live/container_live/form_component.html.leex index a86848f..7a66b6e 100644 --- a/lib/cannery_web/live/container_live/form_component.html.leex +++ b/lib/cannery_web/live/container_live/form_component.html.leex @@ -6,20 +6,20 @@ phx_change: "validate", phx_submit: "save" %> - <%= label f, :name %> - <%= text_input f, :name %> + <%= label f, :name, class: "title text-lg text-primary-500" %> + <%= text_input f, :name, class: "input input-primary" %> <%= error_tag f, :name %> - <%= label f, :desc %> - <%= text_input f, :desc %> + <%= label f, :desc, class: "title text-lg text-primary-500" %> + <%= text_input f, :desc, class: "input input-primary" %> <%= error_tag f, :desc %> - <%= label f, :type %> - <%= text_input f, :type %> + <%= label f, :type, class: "title text-lg text-primary-500" %> + <%= text_input f, :type, class: "input input-primary" %> <%= error_tag f, :type %> - <%= label f, :location %> - <%= text_input f, :location %> + <%= label f, :location, class: "title text-lg text-primary-500" %> + <%= text_input f, :location, class: "input input-primary" %> <%= error_tag f, :location %> <%= submit "Save", phx_disable_with: "Saving..." %>