-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #189 from GSA/160_eval_form
Evaluation Form layout and app container shakeup
- Loading branch information
Showing
6 changed files
with
89 additions
and
69 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<main class="grid-container flex-justify-center width-full padding-bottom-4"> | ||
<div class="flex-justify-center width-full padding-bottom-4"> | ||
<h1><%= dashboard_title[role] %></h1> | ||
<% dashboard_cards_by_role[role].each_slice(2) do |card1, card2| %> | ||
<div class="grid-row grid-gap-2"> | ||
<%= render partial: "dashboard_card", locals: { card: card1 } %> | ||
<%= render partial: "dashboard_card", locals: { card: card2 } if card2 %> | ||
</div> | ||
<% end %> | ||
</main> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
<main role="main"> | ||
<div class="usa-card__container col-md-6"> | ||
<% if logged_in? %> | ||
<%= render partial: "dashboard", locals: { role: current_user.role.to_sym } %> | ||
<% else %> | ||
<h1 class="usa-card__body">Logged Out Dashboard Index</h1> | ||
<% end %> | ||
</div> | ||
</main> | ||
<div class="col-md-6"> | ||
<% if logged_in? %> | ||
<%= render partial: "dashboard", locals: { role: current_user.role.to_sym } %> | ||
<% else %> | ||
<h1 class="usa-card__body">Logged Out Dashboard Index</h1> | ||
<% end %> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,24 @@ | ||
<div class="usa-card__body"> | ||
<h1>Evaluation Forms</h1> | ||
<p class="text-normal">Manage existing evaluation forms and create new evaluation forms.</p> | ||
<h1>Evaluation Forms</h1> | ||
<p class="text-normal">Manage existing evaluation forms and create new evaluation forms.</p> | ||
|
||
<p> | ||
<%= link_to new_evaluation_form_path, class: "width-full tablet:width-auto" do %> | ||
<button class="usa-button font-body-2xs text-no-wrap" style="background-color: #4d8055"> | ||
<%= image_tag( | ||
"images/usa-icons/content_copy.svg", | ||
class: "usa-icon icon-white", | ||
alt: "evaluation forms" | ||
)%> | ||
Create New Evaluation Form | ||
</button> | ||
<% end %> | ||
</p> | ||
<p> | ||
<%= link_to new_evaluation_form_path, class: "width-full tablet:width-auto" do %> | ||
<button class="usa-button font-body-2xs text-no-wrap" style="background-color: #4d8055"> | ||
<%= image_tag( | ||
"images/usa-icons/content_copy.svg", | ||
class: "usa-icon icon-white", | ||
alt: "evaluation forms" | ||
)%> | ||
Create New Evaluation Form | ||
</button> | ||
<% end %> | ||
</p> | ||
|
||
<% if @evaluation_forms.empty? %> | ||
<div class="text-normal"> | ||
<p>You currently do not have any evaluation forms.<br/> | ||
Please create an evaluation form for your challenge before it is published.</p> | ||
</div> | ||
<% else %> | ||
<%= render partial: "table", locals: { evaluation_forms: @evaluation_forms } %> | ||
<% end %> | ||
|
||
</div> | ||
<% if @evaluation_forms.empty? %> | ||
<div class="text-normal"> | ||
<p>You currently do not have any evaluation forms.<br/> | ||
Please create an evaluation form for your challenge before it is published.</p> | ||
</div> | ||
<% else %> | ||
<%= render partial: "table", locals: { evaluation_forms: @evaluation_forms } %> | ||
<% end %> |
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