button and placeholder updates

This commit is contained in:
Mariam 2023-12-18 20:32:06 -06:00
parent 63b2e29afb
commit 23b96cd032
4 changed files with 28 additions and 27 deletions

View File

@ -11,35 +11,34 @@
</div>
<% end %>
<div class="field">
<%= form.label :first_name %>
<%= form.text_field :first_name %>
</div>
<div>
<%= form.label :first_name, style: "display: block" %>
<%= form.text_field :first_name, placeholder:"First name" %>
</div>
<div class="field">
<%= form.label :last_name %>
<div>
<%= form.label :last_name, style: "display: block" %>
<%= form.text_field :last_name %>
</div>
</div>
<div class="field">
<%= form.label :email %>
<div>
<%= form.label :email, style: "display: block" %>
<%= form.text_field :email %>
</div>
</div>
<div class="field">
<%= form.label :phone %>
<div>
<%= form.label :phone, style: "display: block" %>
<%= form.text_field :phone %>
</div>
</div>
<div class="field">
<%= form.label :twitter %>
<div>
<%= form.label :twitter, style: "display: block" %>
<%= form.text_field :twitter %>
</div>
</div>
<br>
<br>
<div>
<%= form.submit class:'btn btn-secondary' %>
</div>
<div class="actions">
<%= form.submit %>
</div>
<% end %>

View File

@ -2,5 +2,7 @@
<%= render 'form', friend: @friend %>
<br>
<%= link_to 'Show', @friend %> |
<%= link_to 'Back', friends_path %>

View File

@ -2,4 +2,4 @@
<%= render 'form', friend: @friend %>
<br>
<%= link_to 'Go Back', friends_path %>
<%= link_to 'Go Back', friends_path, class:"btn btn-dark" %>

View File

@ -26,4 +26,4 @@
</p>
<%= 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" %>