-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into 237/eval-form-phase-uniqueness
- Loading branch information
Showing
8 changed files
with
97 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<div | ||
class="usa-summary-box bg-base-lightest border-1px border-base-dark radius-0" | ||
role="region" | ||
aria-labelledby="summary-box-key-information" | ||
> | ||
<div class="usa-summary-box__body"> | ||
<div class="display-flex flex-column tablet:flex-row tablet:flex-align-center"> | ||
<div class="tablet:flex-fill"> | ||
<div class="display-flex flex-align-center margin-bottom-2 tablet:margin-bottom-0"> | ||
<div class="margin-right-2"> | ||
<span class="font-sans-3xl text-primary text-bold"><%= @submissions_count %></span> | ||
</div> | ||
<div> | ||
<h3 class="usa-summary-box__heading text-primary margin-bottom-05" id="summary-box-key-information"> | ||
Total Submissions | ||
</h3> | ||
<p class="usa-summary-box__text text-primary-darker text-bold"> | ||
Evaluations due by <%= @phase.evaluation_form&.closing_date&.strftime('%m/%d/%Y') || "N/A" %> | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="border-top border-base-dark margin-y-2 tablet:display-none"></div> | ||
|
||
<div class="display-flex flex-row tablet:margin-left-auto"> | ||
<div class="text-center margin-right-5"> | ||
<span class="font-sans-xl text-green text-bold"><%= @submissions_by_status[:completed] || 0 %></span><br> | ||
<span class="text-base-sm text-green text-bold">Completed</span> | ||
</div> | ||
<div class="text-center margin-right-5"> | ||
<span class="font-sans-xl text-orange text-bold"><%= @submissions_by_status[:in_progress] || 0 %></span><br> | ||
<span class="text-base-sm text-orange text-bold">In Progress</span> | ||
</div> | ||
<div class="text-center margin-right-2"> | ||
<span class="font-sans-xl text-secondary-dark text-bold"><%= @submissions_by_status[:not_started] || 0 %></span><br> | ||
<span class="text-base-sm text-secondary-dark text-bold">Not Started</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="display-flex flex-wrap tablet:flex-justify margin-top-2"> | ||
<div class="font-body-xs"> | ||
<%= image_tag( | ||
"images/usa-icons/verified.svg", | ||
class: "usa-icon--size-3 margin-right-1", | ||
alt: "" | ||
)%> | ||
<span class="text-top"> | ||
<span class="text-primary"><%= @submissions.eligible_for_evaluation.count %> of <%= @submissions_count %></span> | ||
submissions selected for evaluation | ||
</span> | ||
</div> | ||
<div class="font-body-xs"> | ||
<%= image_tag( | ||
"images/usa-icons/star_outline.svg", | ||
class: "usa-icon--size-3 margin-right-1", | ||
alt: "" | ||
)%> | ||
<span class="text-top"> | ||
<span class="text-primary"><%= @submissions.winner.count %> of <%= @submissions.eligible_for_evaluation.count %></span> | ||
submissions selected to advance | ||
</span> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters