From 5cfcfe0448abd5c4829445a4feb36a650bb53bf8 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Mon, 13 Nov 2017 08:42:16 -0500 Subject: [PATCH] Added info to match edit (mat -> show) and up_matches pages. --- .tmux.sh.swp | Bin 0 -> 12288 bytes app/views/mats/._match_edit_form.html.erb.swp | Bin 0 -> 20480 bytes app/views/mats/_match_edit_form.html.erb | 28 +++++++++--------- app/views/tournaments/up_matches.html.erb | 14 ++++----- 4 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 .tmux.sh.swp create mode 100644 app/views/mats/._match_edit_form.html.erb.swp diff --git a/.tmux.sh.swp b/.tmux.sh.swp new file mode 100644 index 0000000000000000000000000000000000000000..dd840161e1cbae35b59693f644a6b76e94010f4e GIT binary patch literal 12288 zcmeI&O-lkn7zgmj=xRmXI*k>0TGw8n2s)G*c*wvv=oG6v=#s9ov$=W6&rtL|f-ZfB zt{u8|>k9;3dnUDf3-c)a7yb-8^UTc7?c{*R6-=jB&s8qLG zx_i>2>ulMaR7N+t(DY=ZuFSxb%C987I^0uX=z1Rwwb2tWV=5SVEJzY(G~pJ1+gig33L4Yl1@G!TFQ1Rwwb z2tWV=5P$##AOHaf%%Ff}6CEuO-Es8)|GnS;AB#k}0-?N;mGRltM8FXdP9qBFN+Qy}9DG@DNsvQNC*7`5o1TZ~_R+_yBH+Q{Df>15_O=SexRjgmhf$CCzz^f{DN%Bj1;u!W&U Uk%rI?`cFga5wqyHram)$0ZM+Txc~qF literal 0 HcmV?d00001 diff --git a/app/views/mats/._match_edit_form.html.erb.swp b/app/views/mats/._match_edit_form.html.erb.swp new file mode 100644 index 0000000000000000000000000000000000000000..a70785a5560c3874d25f60167c81b04771b94ee6 GIT binary patch literal 20480 zcmeHPZHy#E8E%9_PX!b)@jFH9Wp`y~W@mQc$lmM%x9pKsZe4d*4Ydr? zy=*kmp5(ciuD810x1P7EyQ<#zwm$XIrK9X%aYn=EO`7(^H}`++Jr`fE{i&mA4cFYF z;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h5Q~PAy5M7sS#3ZCz1w^`brV&N+|jT0VM8rIJCB ztG7VOWD9Z|KF};!6K6g2qw&WK&%s+=WmROWR{Goay|HkOEL;l@#9|Z0Xv3U`TN9a# z{VnXyx-;jX?24X#sC_s+iBpX|GI2+KvJR?n1HZFLS;y3cCm16&GgE?bW=mv3@A3ua n7gq}53B?}qBCR>R`}E@e#6uGU(~FVdI5NF>m#nQ1&o2Hqg;dSz literal 0 HcmV?d00001 diff --git a/app/views/mats/_match_edit_form.html.erb b/app/views/mats/_match_edit_form.html.erb index d5dd506..08dbcab 100644 --- a/app/views/mats/_match_edit_form.html.erb +++ b/app/views/mats/_match_edit_form.html.erb @@ -10,15 +10,15 @@ <% end %> -

Bout <%= @match.bout_number %>

+

Bout: <%= @match.bout_number %>

Round: <%= @match.round %>

Weight: <%= @match.weight_max %> lbs

- - @@ -94,7 +94,7 @@
<%= f.submit onclick: "return confirm('Is the name of the winner ' + document.getElementById('match_winner_id').options[document.getElementById('match_winner_id').selectedIndex].text + '?')", :class=>"btn btn-success" %> - +
<% end %> @@ -116,17 +116,17 @@ w1.stats=document.getElementById("match_w1_stat").value; w2.stats=document.getElementById("match_w2_stat").value; } - + function takedown(wrestler){ updateStats(wrestler,"T2") } - + function updateStats(wrestler,text){ updatejsvalues(); wrestler.stats = wrestler.stats + text + " "; updatehtmlvalues(); } - + //For Changing button colors function changeW1Color(color){ if (color.value == "red") { @@ -140,7 +140,7 @@ document.getElementById("w2-color").value = "red"; } } - + function changeW2Color(color){ if (color.value == "red") { w2Red(); @@ -153,15 +153,15 @@ document.getElementById("w1-color").value = "red"; } } - + function redColor(id){ document.getElementById(id).className = "btn btn-danger btn-sm"; } - + function greenColor(id){ document.getElementById(id).className = "btn btn-success btn-sm"; } - + function w1Red(){ redColor("w1-takedown"); redColor("w1-escape"); @@ -177,7 +177,7 @@ redColor("w1-stalling"); redColor("w1-caution"); } - + function w1Green(){ greenColor("w1-takedown"); greenColor("w1-escape"); @@ -193,7 +193,7 @@ greenColor("w1-stalling"); greenColor("w1-caution"); } - + function w2Red(){ redColor("w2-takedown"); redColor("w2-escape"); @@ -209,7 +209,7 @@ redColor("w2-stalling"); redColor("w2-caution"); } - + function w2Green(){ greenColor("w2-takedown"); greenColor("w2-escape"); diff --git a/app/views/tournaments/up_matches.html.erb b/app/views/tournaments/up_matches.html.erb index 70e3eec..1406d9b 100644 --- a/app/views/tournaments/up_matches.html.erb +++ b/app/views/tournaments/up_matches.html.erb @@ -24,15 +24,15 @@ - + <% @mats.each.map do |m| %> - - - - + + + + <% end %> @@ -49,7 +49,7 @@ - + <% if @matches.size > 0 %> <% @matches.each.map do |m| %> @@ -63,6 +63,6 @@ <% end %>
<%= @w1.name %> <%= @w1.name %> - <%= @w1.school.name %>
Last Match: <%= if @w1.lastMatch != nil then time_ago_in_words(@w1.lastMatch.updated_at) end%>
<%= @w2.name %> <%= @w2.name %> - <%= @w2.school.name %>
Last Match: <%= if @w2.lastMatch != nil then time_ago_in_words(@w2.lastMatch.updated_at) end%>
Warm Up
<%= m.name %><% if m.unfinishedMatches.first %><%=m.unfinishedMatches.first.bout_number%>
<%= m.unfinishedMatches.first.w1_name %> vs. <%= m.unfinishedMatches.first.w2_name %><% end %>
<% if m.unfinishedMatches.second %><%=m.unfinishedMatches.second.bout_number%>
<%= m.unfinishedMatches.second.w1_name %> vs. <%= m.unfinishedMatches.second.w2_name %><% end %>
<% if m.unfinishedMatches.third %><%=m.unfinishedMatches.third.bout_number%>
<%= m.unfinishedMatches.third.w1_name %> vs. <%= m.unfinishedMatches.third.w2_name %><% end %>
<% if m.unfinishedMatches.fourth %><%=m.unfinishedMatches.fourth.bout_number%>
<%= m.unfinishedMatches.fourth.w1_name %> vs. <%= m.unfinishedMatches.fourth.w2_name %><% end %>
<% if m.unfinishedMatches.first %><%=m.unfinishedMatches.first.bout_number%> - <%= m.unfinishedMatches.first.weight_max %> lbs
<%= m.unfinishedMatches.first.w1_name %> vs. <%= m.unfinishedMatches.first.w2_name %><% end %>
<% if m.unfinishedMatches.second %><%=m.unfinishedMatches.second.bout_number%> - <%= m.unfinishedMatches.second.weight_max %> lbs
<%= m.unfinishedMatches.second.w1_name %> vs. <%= m.unfinishedMatches.second.w2_name %><% end %>
<% if m.unfinishedMatches.third %><%=m.unfinishedMatches.third.bout_number%> - <%= m.unfinishedMatches.third.weight_max %> lbs
<%= m.unfinishedMatches.third.w1_name %> vs. <%= m.unfinishedMatches.third.w2_name %><% end %>
<% if m.unfinishedMatches.fourth %><%=m.unfinishedMatches.fourth.bout_number%> - <%= m.unfinishedMatches.fourth.weight_max %> lbs
<%= m.unfinishedMatches.fourth.w1_name %> vs. <%= m.unfinishedMatches.fourth.w2_name %><% end %>
Matchup
- +
<% end %>