Sha256: cdb9d07b302f31d19ef2042f8b9a87d2db5386630a9d74400d85bcbb95376432

Contents?: true

Size: 1.02 KB

Versions: 6

Compression:

Stored size: 1.02 KB

Contents

<%= content_for :sub_navigation do %>
	<ul class="nav nav-pills">
			<div class="btn-group">
			  <a class="btn btn-success" href="<%= new_contact_path %>"><i class="icon-plus icon-white"></i> <%= t('titles.contacts.new') %></a>
			</div>
	</ul>
<% end %>

<h1><%= t('titles.contacts.list') %></h1>

<table class="table table-striped table-bordered table-hover">
	<thead>
	    <tr>
	      <th class="name"><%= t('attributes.contact.name') %></th>
				<th><%= t('attributes.contact.ic') %></th>
				<th class="hidden-phone"><%= t('attributes.contact.email') %></th>
			</tr>
	  </thead>
	<tbody>
		<% @contacts.each do |contact| %>
			<tr>
				<td class="name">
					<span><%= link_to contact do %><%= contact.name %><% end %></span>
				</td>
				<td>
					<span><%= contact.ic %></span>
				</td>
				<td class="hidden-phone">
					<span><%= contact.email %></span>
				</td>
			</tr>
		<% end %>
	</tbody>
</table>

<% if @contacts.size == 0 %>
	<div class="no-data">
		<%= t('invoice_bar.no_data') %>
	</div>
<% end %>

<%= paginate @contacts %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
invoice_bar-0.0.6 app/views/invoice_bar/contacts/index.html.erb
invoice_bar-0.0.5 app/views/invoice_bar/contacts/index.html.erb
invoice_bar-0.0.4 app/views/invoice_bar/contacts/index.html.erb
invoice_bar-0.0.3 app/views/invoice_bar/contacts/index.html.erb
invoice_bar-0.0.2 app/views/invoice_bar/contacts/index.html.erb
invoice_bar-0.0.1 app/views/invoice_bar/contacts/index.html.erb