|
|
ANTROPOMETRÍA |
MACROS |
CIRCUNFERENCIAS |
Fecha |
Fase |
Peso |
Dif |
%GI |
Dif |
MLG |
%PLI |
Cals |
Dif Cals |
Cals/kg |
CCD |
Pro |
Cho |
Lip |
BIR |
BDR |
BIC |
BDC |
Tórax |
Cint |
GLU |
MMI |
MMD |
PI |
PD |
<% plans = @user.plans.where.not(finish: nil).order(init: :asc) %>
<% dif_cals = dif_fats = dif = 0.0 %>
<% dif = plans.first.kg.to_f if plans.any? %>
<% dif_fats = plans.first.corporal_fat.to_f if plans.any? %>
<% dif_cals = plans.first.total_calories.to_i if plans.any? %>
<% plans.each do |p| %>
<% if p.total_proteins != 0 && p.total_carbs != 0 && p.total_fats != 0 %>
<%= p.init.to_date %> |
<%= p.objetivo %> |
<%= p.kg.to_f %> |
<% dif = (p.kg.to_f - dif).round(1) %>
<%= "#{'+' if dif > 0}#{dif}" %> |
<% dif = p.kg.to_f %>
<% dif_fats = (p.corporal_fat.to_f - dif_fats).round(1) %>
<%= p.corporal_fat.to_f %>% |
<%= "#{'+' if dif_fats > 0}#{dif_fats}" %> |
<% dif_fats = p.corporal_fat.to_f %>
<%= p.mlag %> |
<%= p.plicometria %> |
<%= p.total_calories %> |
<% dif_cals = (p.total_calories.to_i - dif_cals).round(1) %>
<%= "#{'+' if dif_cals > 0}#{dif_cals}" %> |
<% dif_cals = p.total_calories.to_i %>
<%= p.cals_per_kg %> |
<%= p.ccd %> |
<%= p.total_proteins %> |
<%= p.total_carbs %> |
<%= p.total_fats %> |
<%= p.arm_left %> |
<%= p.arm_right %> |
<%= p.bci %> |
<%= p.bcd %> |
<%= p.chest %> |
<%= p.waist %> |
<%= p.gluteus %> |
<%= p.thight_left %> |
<%= p.thight_right %> |
<%= p.calf_left %> |
<%= p.calf_right %> |
<% end %>
<% end %>
<%= render "plans/progress/macros", form: f %>