Skip to content

Instantly share code, notes, and snippets.

@aalvesjr
Created October 23, 2012 15:36
Show Gist options
  • Select an option

  • Save aalvesjr/3939518 to your computer and use it in GitHub Desktop.

Select an option

Save aalvesjr/3939518 to your computer and use it in GitHub Desktop.
Pendencias GVAR
<div id="_guardaResultadoPesquisa">
<h2>Resultado da pesquisa</h2>
<table cellspadding="0" cellspacing="0" width="100%">
<tr border="0">
<th width="14%"><span>Código</span></th>
<th width="14%"><span>Nº</span></th>
<th width="14%"><span>Nome</span></th>
<th width="14%"><span>Data Vencimento</span></th>
<th width="14%"><span>Status</span></th>
<th width="14%"><span>Valor Parcela</span></th>
<th width="14%"></th>
</tr>
<% instalments.each do |i| %>
<tr onclick="location.href ='<%= financeiro_editar_lancamento_path(i.release) %>';">
<td width="14%"><span><%= i.code %></span></td>
<td width="14%"><span><%= i.number_instalment %></span></td>
<td width="14%"><span><%= i.name %></span></td>
<td width="14%"><span><%= i.expiration_date_to_s %></span></td>
<td width="14%"><span><%= i.status %></span></td>
<td width="14%"><span>R$ <%= number_to_currency(i.amount, :precision => 2, :separator => ",") %></span></td>
<td width="14%"><span><%= link_to("Pagar", financeiro_pagar_path(i.id), :class => "btVoltarForm") if i.pendente? %></span></td>
</tr>
<% end %>
</table>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment