Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Refactored views to simplify HTML

  • Loading branch information...
commit 1bb56a7196d93ed87c74a537148bcdbd9e6271c0 1 parent 200968d
@jcasimir authored
View
10 app/views/companies/edit.html.erb
@@ -1,8 +1,8 @@
-<% title "Edit Company" %>
+<% title "Edit #{@company.name}" %>
<%= render 'form' %>
-<p>
- <%= link_to "Show", @company %> |
- <%= link_to "View All", companies_path %>
-</p>
+<ul class="actions">
+ <li><%= link_to "Show", @company %></li>
+ <li><%= link_to "View All", companies_path %></li>
+</ul>
View
2  app/views/email_addresses/edit.html.erb
@@ -1,4 +1,4 @@
-<% title "Edit Email Address" %>
+<% title "Edit Email Address for #{@email_address.contact}" %>
<%= render 'form' %>
View
2  app/views/email_addresses/new.html.erb
@@ -1,4 +1,4 @@
-<% title "New Email Address" %>
+<% title "New Email Address for #{@email_address.contact}" %>
<%= render 'form' %>
View
8 app/views/people/edit.html.erb
@@ -1,8 +1,8 @@
-<% title "Edit Person" %>
+<% title "Edit #{@person.last_name}, #{@person.first_name}" %>
<%= render 'form' %>
-<p>
- <%= link_to "Show", @person %> |
- <%= link_to "View All", people_path %>
+<ul class="actions">
+ <li><%= link_to "Show", @person %></li>
+ <li><%= link_to "View All", people_path %></li>
</p>
View
2  app/views/phone_numbers/edit.html.erb
@@ -1,4 +1,4 @@
-<% title "Edit Phone Number" %>
+<% title "Edit Phone Number for #{@phone_number.contact}" %>
<%= render 'form' %>
View
2  app/views/phone_numbers/new.html.erb
@@ -1,4 +1,4 @@
-<% title "New Phone Number" %>
+<% title "New Phone Number for #{@phone_number.contact}" %>
<%= render 'form' %>
Please sign in to comment.
Something went wrong with that request. Please try again.