Sha256: a50f30aac0ac95f1d4b0dadf763b64defb1d52be388d0182feb8cafd3d25be8e
Contents?: true
Size: 1.61 KB
Versions: 1
Compression:
Stored size: 1.61 KB
Contents
<% if notice %> <p id="notice" class="alert alert-info"><%= notice %></p> <% end %> <h2><%= @contact.full_name %></h3> <ul class="tags"> <% @contact.tags.each do |tag| %> <li><span class="label"><%= tag.to_s %></span></li> <% end %> <li><%= link_to "add", "#", 'data-form' => 'tags' %></li> </ul> <dl> <div> <dt>email</dt> <dd><%= @contact.primary_email %></dd> </div> <div> <dt>phone</dt> <dd><%= @contact.primary_phone %></dd> </div> <% @contact.custom_data.each do |field| %> <div id="custom_data_<%= field.name.parameterize %>"> <dt><%= field.name %></dt> <dd><%= field.content %></dd> </div> <% end %> </dl> <div class="dialog tags" id="tags"> <h2>Add a Tag</h2> <p> <%= form_tag tag_contact_path(@contact) do %> <div class="field"> <%= text_field_tag :tag_name %> </div> <div class="field"> <%= submit_tag "Add Tag" %> </div> <% end %> </p> </div> <div id="sidebar"> <h3>Email Addresses</h3> <ul> <li><%= render @contact.emails %></li> </ul> <h3>Phone Numbers</h3> <ul> <li><%= render @contact.phones %></li> </ul> <h3>Addresses</h3> <ul> <li><%= render @contact.addresses %></li> </ul> </div> <div id="notes"> <h3> Notes </h3> <ul class="notes"> <%= render @contact.notes %> </ul> </div> <%= form_for [@contact, @contact.notes.new] do |f| %> <div class="field"> <%= f.text_area :content %> </div> <div class="field"> <%= f.submit "Add Note" %> </div> <% end %> <%= link_to 'Edit', edit_contact_path(@contact) %> | <%= link_to 'Back', contacts_path %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
watchtower-0.0.1 | app/views/watchtower/contacts/show.html.erb |