-
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 #42 from GSA-TTS/frontend-cleanup
Solidifying frontend
- Loading branch information
Showing
16 changed files
with
240 additions
and
179 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,7 @@ | ||
.usa-header { | ||
border-bottom: 2px solid #dfe1e2; | ||
|
||
.usa-logo { | ||
font-size: 40px; | ||
} | ||
} |
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,6 @@ | ||
.usa-table { | ||
tbody th, | ||
td { | ||
border-bottom: 1px solid var(--Primary-primary-lighter, #d9e8f6); | ||
} | ||
} |
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,5 +1,7 @@ | ||
@forward "@uswds"; | ||
@import "base/base"; | ||
@import "base/variables"; | ||
@import "components/usa-header"; | ||
@import "components/usa-nav"; | ||
@import "components/usa-sidenav"; | ||
@import "components/usa-table"; |
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,12 @@ | ||
import "@uswds/uswds/css/uswds.css"; | ||
import Alpine from "alpinejs"; | ||
|
||
declare global { | ||
interface Window { | ||
Alpine: any; | ||
} | ||
} | ||
|
||
window.Alpine = Alpine; | ||
|
||
Alpine.start(); |
This file was deleted.
Oops, something went wrong.
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
81 changes: 37 additions & 44 deletions
81
nad_ch/controllers/web/templates/data_submissions/index.html
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,50 +1,43 @@ | ||
{% extends "_layouts/base.html" %} {% block title %}Home Page{% endblock %} | ||
{%block content %} | ||
<div> | ||
<header class="usa-header usa-header--basic"> | ||
<div class="usa-nav-container"> | ||
<div class="usa-navbar"> | ||
<div class="usa-logo"> | ||
<em class="usa-logo__text">Reports</em> | ||
</div> | ||
</div> | ||
</div> | ||
</header> | ||
|
||
<div class="grid-container"> | ||
<div class="grid-row"> | ||
<div class="grid-col"> | ||
{% if submissions %} | ||
<div class="usa-table-default"> | ||
<table class="usa-table usa-table--borderless width-full"> | ||
<thead class="width-full"> | ||
<tr> | ||
<th scope="col">Name</th> | ||
<th scope="col">Created</th> | ||
<th scope="col"></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for sub in submissions %} | ||
<tr> | ||
<th scope="row">{{ sub.filename }}</th> | ||
<td>{{ sub.date_created }}</td> | ||
<td> | ||
<a | ||
href="{{ url_for('submissions.view_report', submission_id=sub.id, _external=True) }}" | ||
>View</a | ||
> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
{% else %} | ||
<p>You haven't uploaded any data submissions yet.</p> | ||
{% endif %} | ||
<header class="usa-header usa-header--basic"> | ||
<div class="usa-nav-container"> | ||
<div class="usa-navbar"> | ||
<div class="usa-logo"> | ||
<em class="usa-logo__text">Reports</em> | ||
</div> | ||
</div> | ||
</div> | ||
</header> | ||
|
||
{% if submissions %} | ||
<div class="usa-table-default width-full"> | ||
<table class="usa-table usa-table--borderless width-full"> | ||
<thead class="bg-base-lighter border-bottom-2px border-base-light"> | ||
<tr> | ||
<th scope="col">Name</th> | ||
<th scope="col">Created</th> | ||
<th scope="col"></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for sub in submissions %} | ||
<tr> | ||
<th class="border-bottom-1px border-base-lightest" scope="row"> | ||
{{ sub.filename }} | ||
</th> | ||
<td>{{ sub.date_created }}</td> | ||
<td> | ||
<a | ||
href="{{ url_for('submissions.view_report', submission_id=sub.id, _external=True) }}" | ||
>View</a | ||
> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
{% endblock %} | ||
{% else %} | ||
<p>You haven't uploaded any data submissions yet.</p> | ||
{% endif %} {% endblock %} |
Oops, something went wrong.