Merge branch 'staging' into grid-styling
This commit is contained in:
commit
29d5f8baf5
1
static/icons/clock.svg
Normal file
1
static/icons/clock.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="clock" class="svg-inline--fa fa-clock fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"></path></svg>
|
After Width: | Height: | Size: 554 B |
@ -21,7 +21,7 @@
|
|||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|
||||||
&--default {
|
&--default {
|
||||||
background-color: $color-gray-dark;
|
background-color: $color-gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
&--info {
|
&--info {
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{% from "components/alert.html" import Alert %}
|
||||||
{% from "components/icon.html" import Icon %}
|
{% from "components/icon.html" import Icon %}
|
||||||
{% from "components/label.html" import Label %}
|
{% from "components/label.html" import Label %}
|
||||||
{% from 'components/save_button.html' import SaveButton %}
|
{% from 'components/save_button.html' import SaveButton %}
|
||||||
@ -10,10 +11,13 @@
|
|||||||
new_env_form) %}
|
new_env_form) %}
|
||||||
|
|
||||||
<h3>{{ "portfolios.applications.settings.environments" | translate }}</h3>
|
<h3>{{ "portfolios.applications.settings.environments" | translate }}</h3>
|
||||||
<section class="panel" id="application-environments">
|
{% if portfolio.num_task_orders == 0 -%}
|
||||||
|
{{ Alert(message="portfolios.applications.environments.funding_alert"|translate({'name': portfolio.name})) }}
|
||||||
|
{%- endif %}
|
||||||
{% if g.matchesPath("application-environments") -%}
|
{% if g.matchesPath("application-environments") -%}
|
||||||
{% include "fragments/flash.html" %}
|
{% include "fragments/flash.html" %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
<section class="panel" id="application-environments">
|
||||||
{% if 0 == environments_obj | length -%}
|
{% if 0 == environments_obj | length -%}
|
||||||
<div class="empty-state panel__content">
|
<div class="empty-state panel__content">
|
||||||
<p class="empty-state__message">
|
<p class="empty-state__message">
|
||||||
@ -30,6 +34,7 @@
|
|||||||
<li class="accordion-table__item">
|
<li class="accordion-table__item">
|
||||||
<div class="accordion-table__item-content">
|
<div class="accordion-table__item-content">
|
||||||
<div class="environment-list__item">
|
<div class="environment-list__item">
|
||||||
|
{% if not env["pending"] -%}
|
||||||
<span>
|
<span>
|
||||||
<a
|
<a
|
||||||
href='{{ url_for("applications.access_environment", environment_id=env.id)}}'
|
href='{{ url_for("applications.access_environment", environment_id=env.id)}}'
|
||||||
@ -38,6 +43,12 @@
|
|||||||
{{ env['name'] }} {{ Icon('link', classes='icon--medium icon--primary') }}
|
{{ env['name'] }} {{ Icon('link', classes='icon--medium icon--primary') }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
|
{% else -%}
|
||||||
|
<span>
|
||||||
|
{{ env['name'] }}
|
||||||
|
</span>
|
||||||
|
{{ Label(type="pending_creation", classes='label--below')}}
|
||||||
|
{%- endif %}
|
||||||
{% if user_can(permissions.EDIT_ENVIRONMENT) -%}
|
{% if user_can(permissions.EDIT_ENVIRONMENT) -%}
|
||||||
{{
|
{{
|
||||||
ToggleButton(
|
ToggleButton(
|
||||||
@ -57,10 +68,6 @@
|
|||||||
classes="environment-list__item__members"
|
classes="environment-list__item__members"
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
<br>
|
|
||||||
{% if env['pending'] -%}
|
|
||||||
{{ Label(type="changes_pending", classes='label--below')}}
|
|
||||||
{%- endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -9,6 +9,11 @@
|
|||||||
"text": "changes pending",
|
"text": "changes pending",
|
||||||
"color": "default",
|
"color": "default",
|
||||||
},
|
},
|
||||||
|
"pending_creation": {
|
||||||
|
"icon": "clock",
|
||||||
|
"text": "pending creation",
|
||||||
|
"color": "default",
|
||||||
|
},
|
||||||
"ppoc": {"text": "primary point of contact"}
|
"ppoc": {"text": "primary point of contact"}
|
||||||
} %}
|
} %}
|
||||||
|
|
||||||
|
@ -417,6 +417,7 @@ portfolios:
|
|||||||
add_subscription: Add new subscription
|
add_subscription: Add new subscription
|
||||||
blank_slate: This Application has no environments
|
blank_slate: This Application has no environments
|
||||||
disabled: ": Access Suspended"
|
disabled: ": Access Suspended"
|
||||||
|
funding_alert: "Application environments will not be created until the {name} portfolio is funded."
|
||||||
environments_heading: Application Environments
|
environments_heading: Application Environments
|
||||||
existing_application_title: "{application_name} Application Settings"
|
existing_application_title: "{application_name} Application Settings"
|
||||||
member_count: "{count} Members"
|
member_count: "{count} Members"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user