refactoring eventsheet
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
|
||||
<div class="section-divider">
|
||||
<div class="dotted-line NW" style=""></div>
|
||||
<div class="dotted-line NE" style=""></div>
|
||||
<div class="dotted-line SW" style=""></div>
|
||||
<div class="dotted-line SE" style=""></div>
|
||||
</div>
|
||||
@@ -2,7 +2,7 @@
|
||||
<img src="/media/baseball-diamond.svg" />
|
||||
{{#defenseLineup event_lineup_entries members}}
|
||||
<div class="slot-set pos-{{this.position}}">
|
||||
<table>
|
||||
<table class="striped">
|
||||
<tbody>
|
||||
<tr class="slot">
|
||||
<th class="position"></th>
|
||||
|
||||
7
src/views/eventsheet/partials/page_section_divider.hbs
Normal file
7
src/views/eventsheet/partials/page_section_divider.hbs
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
<div class="section-divider">
|
||||
<section class="NW"></section>
|
||||
<section class="NE"></section>
|
||||
<section class="SW"></section>
|
||||
<section class="SE"></section>
|
||||
</div>
|
||||
@@ -1,12 +1,12 @@
|
||||
<table>
|
||||
<colgroup><col span="3" class="player"></colgroup>
|
||||
<colgroup><col span="4" class="player"></colgroup>
|
||||
{{!-- <colgroup><col span="0" class="player-stats"></colgroup> --}}
|
||||
<colgroup><col span="4" class="position-capability"></colgroup>
|
||||
<colgroup><col span="4" class="availability-on-day future"></colgroup>
|
||||
<colgroup><col span="4" class="availability-on-day past"></colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3" id="today-availability">
|
||||
<th colspan="4" id="today-availability">
|
||||
Available ({{availabilitySummary.playerGoingCount}}|{{availabilitySummary.playerMaybeCount}})
|
||||
</th>
|
||||
<th class="player-stats">
|
||||
@@ -34,16 +34,19 @@
|
||||
<tbody>
|
||||
{{!-- <% by_member.select{|m,d| !m.is_non_player}.each_with_index do |(member, d), i|%> --}}
|
||||
{{#rosterHistory event event_lineup_entries members availabilities}}
|
||||
<tr id="roster-history-slot-<%= ::Temple::Utils.escape_html((i)) %>">
|
||||
<tr class="roster-history-slot{{#if (isStarting this)}} starting-today{{/if}}">
|
||||
<td class="is-present-checkbox available-status-code-{{this.benchcoach.availability.statusCode}}">
|
||||
<span>■</span>
|
||||
</td>
|
||||
<td class="jersey-number available-status-code-{{this.benchcoach.availability.statusCode}}{{#if (isStarting this)}} starting{{/if}}">
|
||||
<td class="jersey-number available-status-code-{{this.benchcoach.availability.statusCode}}">
|
||||
{{this.jerseyNumber}}
|
||||
</td>
|
||||
<td class="player-name available-status-code-{{this.benchcoach.availability.statusCode}}{{#if (isStarting this)}} starting{{/if}}">
|
||||
<td class="player-name available-status-code-{{this.benchcoach.availability.statusCode}}">
|
||||
{{this.lastName}}
|
||||
</td>
|
||||
<td class="position available-status-code-{{this.benchcoach.availability.statusCode}}">
|
||||
<span>{{positionLabelWithoutFlags this.benchcoach.eventLineupEntry.label}}</span>
|
||||
</td>
|
||||
<td class="player-stats border-left border-right">
|
||||
<span class="decimal-point">.</span>
|
||||
<span class="avg">000</span>
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
<link rel="stylesheet" href="/css/eventsheet.css">
|
||||
|
||||
<body class="B5">
|
||||
<div class="sheet eventsheet" id="page-1">
|
||||
{{>page_section_divider}}
|
||||
<div class="sheet eventsheet quarters" id="page-1">
|
||||
<section class="NW" id="defense-card">
|
||||
<header>
|
||||
<div class="event-title float-left">
|
||||
@@ -119,9 +118,9 @@
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="sheet eventsheet" id="page-2">
|
||||
{{>page_section_divider}}
|
||||
</div>
|
||||
<div class="sheet eventsheet quarters" id="page-2">
|
||||
<section class="NW" id="front-cover">
|
||||
<header>
|
||||
<div class="game-number">
|
||||
@@ -145,10 +144,8 @@
|
||||
</div>
|
||||
</div>
|
||||
{{# if event.opponentName}}
|
||||
<div>
|
||||
<div style="text-align: center;font-family: 'Pacifico';">
|
||||
<div class="conjuction">
|
||||
<span>vs</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="opponent">
|
||||
<div>
|
||||
@@ -210,6 +207,7 @@
|
||||
</div>
|
||||
</section>
|
||||
<section class="SW lineup-card exchange blank" id="lineup-card-exchange-blank">
|
||||
<header></header>
|
||||
<div class="starting-lineup-table">
|
||||
<table>
|
||||
<thead>
|
||||
@@ -242,6 +240,7 @@
|
||||
</div>
|
||||
</section>
|
||||
<section class="SE lineup-card dugout blank" id="lineup-card-dugout-blank">
|
||||
<header></header>
|
||||
<div class="starting-lineup-table">
|
||||
<table>
|
||||
<thead>
|
||||
@@ -275,6 +274,6 @@
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{>page_section_divider}}
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user