Alert should only display when login with CAC button is clicked
This commit is contained in:
parent
e942a6ca19
commit
cc482fa0e0
@ -1,33 +1,15 @@
|
|||||||
import checkboxinput from './checkbox_input'
|
|
||||||
import FormMixin from '../mixins/form'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'fullpagenotice',
|
name: 'fullpagenotice',
|
||||||
|
|
||||||
mixins: [FormMixin],
|
|
||||||
|
|
||||||
components: {
|
|
||||||
checkboxinput,
|
|
||||||
},
|
|
||||||
|
|
||||||
data: function() {
|
data: function() {
|
||||||
return {
|
return {
|
||||||
agree: false,
|
visible: false,
|
||||||
visible: true,
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted: function() {
|
|
||||||
this.$root.$on('field-change', this.handleValidChange)
|
|
||||||
},
|
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
handleValidChange: function(event) {
|
displayNotice: function() {
|
||||||
this.agree = event.value
|
this.visible = true
|
||||||
},
|
|
||||||
|
|
||||||
agreeToTermsClick: function() {
|
|
||||||
this.visible = false
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
padding: $gap*4 0;
|
padding: $gap*4 0;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
text-align: left;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
|
|
||||||
|
@ -19,6 +19,10 @@
|
|||||||
max-width: 25rem;
|
max-width: 25rem;
|
||||||
margin: ($gap * 2) auto;
|
margin: ($gap * 2) auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.login-banner__button {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
<fullpagenotice inline-template key="notice">
|
<fullpagenotice inline-template key="notice">
|
||||||
<div class="full-page-notice" v-show="visible">
|
<div>
|
||||||
|
<div class="usa-button usa-button-primary usa-button-big login-banner__button" v-on:click="displayNotice()">
|
||||||
|
{{ "login.login_button" | translate }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="full-page-notice" v-if="visible" v-cloak>
|
||||||
<div class='usa-alert usa-alert-info'>
|
<div class='usa-alert usa-alert-info'>
|
||||||
<div class='usa-alert-body'>
|
<div class='usa-alert-body'>
|
||||||
<h3>You are accessing a U.S. Government (USG) Information System (IS) that is provided for USG-authorized use only.</h3>
|
<h3>You are accessing a U.S. Government (USG) Information System (IS) that is provided for USG-authorized use only.</h3>
|
||||||
@ -18,24 +23,9 @@
|
|||||||
<li>Notwithstanding the above, using this IS does not constitute consent to PM, LE or CI investigative searching or monitoring of the content of privileged communications, or work product, related to personal representation or services by attorneys, psychotherapists, or clergy, and their assistants. Such communications and work product are private and confidential. See User Agreement for details.</li>
|
<li>Notwithstanding the above, using this IS does not constitute consent to PM, LE or CI investigative searching or monitoring of the content of privileged communications, or work product, related to personal representation or services by attorneys, psychotherapists, or clergy, and their assistants. Such communications and work product are private and confidential. See User Agreement for details.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<checkboxinput inline-template key="agree">
|
<a href='{{ redirect_url }}' class="usa-button usa-button-primary float-right">
|
||||||
<div class="usa-input">
|
|
||||||
<fieldset data-ally-disabled="true" v-on:change="onInput">
|
|
||||||
<legend>
|
|
||||||
<input id="abc" type="checkbox" name="abc" value="y" />
|
|
||||||
<label for="abc">
|
|
||||||
I've read and consent to the terms in the IS user agreement
|
|
||||||
</label>
|
|
||||||
</legend>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
</checkboxinput>
|
|
||||||
|
|
||||||
<div
|
|
||||||
class="usa-button usa-button-primary float-right"
|
|
||||||
v-on:click="agreeToTermsClick"
|
|
||||||
v-bind:class="{ 'usa-button-disabled': !agree }">
|
|
||||||
{{ "common.continue" | translate }}
|
{{ "common.continue" | translate }}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -6,8 +6,6 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% include "fragments/dod_notice.html" %}
|
|
||||||
|
|
||||||
<div class='global-layout login-layout'>
|
<div class='global-layout login-layout'>
|
||||||
<div class='global-panel-container login-container'>
|
<div class='global-panel-container login-container'>
|
||||||
<div class='col'>
|
<div class='col'>
|
||||||
@ -23,11 +21,7 @@
|
|||||||
|
|
||||||
<img class="login-banner__logo" src="{{url_for('static', filename='img/ccpo-logo.svg')}}" alt="{{ "login.ccpo_logo_alt_text" | translate }}">
|
<img class="login-banner__logo" src="{{url_for('static', filename='img/ccpo-logo.svg')}}" alt="{{ "login.ccpo_logo_alt_text" | translate }}">
|
||||||
|
|
||||||
<a class="usa-button usa-button-big login-banner__button" href='{{ redirect_url }}'>
|
{% include "fragments/dod_notice.html" %}
|
||||||
<span>
|
|
||||||
{{ "login.login_button" | translate }}
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% with %}
|
{% with %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user