Fogbugz #40: Liste der Adressen mittels 1140grid erstellt.

This commit is contained in:
gchq 2011-05-24 23:46:21 +02:00
parent e7ab96c33f
commit 55ed695513
2 changed files with 15 additions and 6 deletions

View file

@ -1,23 +1,25 @@
<% @contacts.each do |c| %>
<div class="row">
<div class="row contact-summary">
<div class="onecol">
[bild]
</div>
<div class="threecol">
<div class="twocol">
<strong><%= c.firstname.blank? ? "&nbsp;".html_safe : c.firstname %></strong>
<strong><%= c.lastname.blank? ? "&nbsp;".html_safe : c.lastname %></strong>
</div>
<div class="twocol">
<%= "&nbsp;".html_safe unless c.emails.count > 0 %>
<% c.emails.first(2).each do |e| %>
<a href="mailto:<%= e.address %>"><%= e.address %></a><br />
<% end %>
</div>
<div class="onecol">
<div class="threecol">
<%= c.street + " " + c.housenr %>
&middot;
<%= c.plz + " " + c.place + ", " + c.country %>
<br />
<%= c.plz + " " + c.place %><%= ", " unless c.country.blank? %>
<%= c.country %>
</div>
<div class="fourcol">
<div class="threecol">
<% c.phones.first(2).each do |p| %>
<strong><%= p.desc unless p.desc.blank? %></strong>
<%= p.nr %><br />

View file

@ -96,6 +96,13 @@ text-align: left;
font-weight: 400;
}
/* contact list */
.contact-summary {
border-bottom-color: #999999;
border-bottom-style: dotted;
border-bottom-width: 1px;
}
/* Styles for entry forms. */
.form_content fieldset {