Skip to content

Commit

Permalink
Adds all filterable fields to mobile list
Browse files Browse the repository at this point in the history
  • Loading branch information
sukima committed Oct 1, 2012
1 parent 2f66402 commit 048de4a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/views/equipment_assets/index_iphone.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<%= jqm_button t(:new), new_equipment_asset_path, { :icon => "plus", :pos => "r" } %>
<style type="text/css">
.oos { color: red; }
.hidden { display: none; }
</style>
<% end %>

Expand All @@ -21,10 +22,16 @@
<% end %>
<li><a href="<%= equipment_asset_path(e) %>">
<h3 class="ui-li-heading"><%= e.name %></h3>
<p class="ui-li-desc"><%= e.location %></p>
<div class="ui-grid-a ui-li-desc">
<div class="ui-block-a"><%= e.serial_number %></div>
<div class="ui-block-b"><%= e.location %></div>
</div>
<% if e.oos? %>
<span class="ui-li-aside oos"><%=t :out_of_service %></span>
<% end %>
<div class="hidden">
<%= e.asset_type %>
</div>
</a></li>
<% end %>
</ul>

0 comments on commit 048de4a

Please sign in to comment.