From 23b96cd03274375c53ff5c634dfbf60cd96564f8 Mon Sep 17 00:00:00 2001 From: Mariam Date: Mon, 18 Dec 2023 20:32:06 -0600 Subject: [PATCH] button and placeholder updates --- app/views/friends/_form.html.erb | 49 ++++++++++++++++---------------- app/views/friends/edit.html.erb | 2 ++ app/views/friends/new.html.erb | 2 +- app/views/friends/show.html.erb | 2 +- 4 files changed, 28 insertions(+), 27 deletions(-) diff --git a/app/views/friends/_form.html.erb b/app/views/friends/_form.html.erb index e8f4f97..78198a8 100644 --- a/app/views/friends/_form.html.erb +++ b/app/views/friends/_form.html.erb @@ -11,35 +11,34 @@ <% end %> -
- <%= form.label :first_name %> - <%= form.text_field :first_name %> -
+
+ <%= form.label :first_name, style: "display: block" %> + <%= form.text_field :first_name, placeholder:"First name" %> +
-
- <%= form.label :last_name %> - <%= form.text_field :last_name %> -
+
+ <%= form.label :last_name, style: "display: block" %> + <%= form.text_field :last_name %> +
-
- <%= form.label :email %> - <%= form.text_field :email %> -
+
+ <%= form.label :email, style: "display: block" %> + <%= form.text_field :email %> +
-
- <%= form.label :phone %> - <%= form.text_field :phone %> -
+
+ <%= form.label :phone, style: "display: block" %> + <%= form.text_field :phone %> +
-
- <%= form.label :twitter %> - <%= form.text_field :twitter %> -
+
+ <%= form.label :twitter, style: "display: block" %> + <%= form.text_field :twitter %> +
-
+
+
+ <%= form.submit class:'btn btn-secondary' %> +
-
- <%= form.submit %> - -
<% end %> diff --git a/app/views/friends/edit.html.erb b/app/views/friends/edit.html.erb index aa0abe1..d92f3b7 100644 --- a/app/views/friends/edit.html.erb +++ b/app/views/friends/edit.html.erb @@ -2,5 +2,7 @@ <%= render 'form', friend: @friend %> +
+ <%= link_to 'Show', @friend %> | <%= link_to 'Back', friends_path %> diff --git a/app/views/friends/new.html.erb b/app/views/friends/new.html.erb index 5857391..c3ec80d 100644 --- a/app/views/friends/new.html.erb +++ b/app/views/friends/new.html.erb @@ -2,4 +2,4 @@ <%= render 'form', friend: @friend %>
-<%= link_to 'Go Back', friends_path %> +<%= link_to 'Go Back', friends_path, class:"btn btn-dark" %> \ No newline at end of file diff --git a/app/views/friends/show.html.erb b/app/views/friends/show.html.erb index 2679f87..38f4b2a 100644 --- a/app/views/friends/show.html.erb +++ b/app/views/friends/show.html.erb @@ -26,4 +26,4 @@

<%= link_to 'Edit', edit_friend_path(@friend), class:"btn btn-secondary" %> | -<%= link_to 'Back', friends_path, class:"btn btn-secondary" %> +<%= link_to 'Go Back', friends_path, class:"btn btn-dark" %>