-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into issue3316
- Loading branch information
Showing
28 changed files
with
151 additions
and
110 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import * as notifier from '../utils/notificationHelper'; | ||
import getConstant from '../utils/constants'; | ||
import { paginableSelector } from '../utils/paginable'; | ||
|
||
$(() => { | ||
$(paginableSelector).on('ajax:success', 'input.set_test_plan', (e) => { | ||
const checkbox = $(e.target); | ||
const data = e.detail[0]; | ||
if (data.code === 1 && data.msg && data.msg !== '') { | ||
notifier.renderNotice(data.msg); | ||
} else { | ||
notifier.renderAlert(data.msg); | ||
} | ||
|
||
if (checkbox.is(':checked')) { | ||
checkbox.parent().siblings('.plan-visibility').html(getConstant('PLAN_VISIBILITY_WHEN_TEST')) | ||
.attr('title', ''); | ||
} else { | ||
checkbox.parent().siblings('.plan-visibility').html(getConstant('PLAN_VISIBILITY_WHEN_NOT_TEST')) | ||
.attr('title', getConstant('PLAN_VISIBILITY_WHEN_NOT_TEST_TOOLTIP')); | ||
} | ||
}); | ||
$(paginableSelector).on('ajax:error', 'input.set_test_plan', (e) => { | ||
const xhr = e.detail(2); | ||
notifier.renderAlert(xhr.responseText); | ||
}); | ||
|
||
$('#create-modal').modal('show'); | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,67 @@ | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<h1><%= _('Sign in or Create account') %></h1> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div id="dual_columns" class="container" style="display:table"> | ||
<% unless session["devise.shibboleth_data"].nil? %> | ||
<% cookies[:show_shib_link] = { value: 'show_shib_link', | ||
expires: 3.hours.from_now } %> | ||
|
||
<div class="col-md-6" style="border-top:1px solid black; border-bottom:1px solid black; border-left:1px solid black; display:table-cell; float:none"> | ||
<p class="text-center"> | ||
<%= _("Do you have a %{application_name} account?") % { | ||
application_name: ApplicationService.application_name} %> | ||
</p> | ||
<p class="text-center fontsize-h3 color-heading-text"> | ||
<i class="fas fa-arrow-circle-down" aria-hidden="true"></i> | ||
</p> | ||
<h2 class="text-center"> | ||
<%= _("Sign in") %> | ||
</h2> | ||
<p class="text-center"> | ||
<%= _("This will link your existing account to your credentials.") %> | ||
</p> | ||
<p><%= render partial: 'shared/sign_in_form' %><br></p> | ||
</div> | ||
|
||
<div class="col-md-6" | ||
style="border:1px solid black; display:table-cell; float:none"> | ||
|
||
<p class="text-center fontsize-h3 color-heading-text"> | ||
<%= _("No %{application_name} account?") % { | ||
application_name: ApplicationService.application_name} %> | ||
</p> | ||
|
||
<p class="text-center"> | ||
<i class="fas fa-arrow-circle-down" aria-hidden="true"></i> | ||
</p> | ||
|
||
<h2 class="text-center"> | ||
<%= _("Create account") %> | ||
</h2> | ||
<p class="text-center"> | ||
<%= _("This will create an account and link it to your credentials.") %> | ||
</p> | ||
<div id="create-account-form"> | ||
<p > | ||
<%= render partial: 'shared/create_account_form', locals: {orgs: @all_orgs, org_partial: @org_partial} %> | ||
<br> | ||
</p> | ||
</div> | ||
</div> | ||
<% else %> | ||
<div> | ||
<h2> | ||
<%= _("Create account") %> | ||
<i class="fas fa-user-plus" aria-hidden="true"> </i> | ||
</h2> | ||
<div id="create-account-form"> | ||
<%= render partial: 'shared/create_account_form', locals: {orgs: @all_orgs, org_partial: @org_partial} %> | ||
</div> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<h1><%= _('Sign in or Create account') %></h1> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div id="dual_columns" class="container" style="display:table"> | ||
<% unless session["devise.shibboleth_data"].nil? %> | ||
<% cookies[:show_shib_link] = { value: 'show_shib_link', | ||
expires: 3.hours.from_now } %> | ||
|
||
<div class="col-md-6" style="border-top:1px solid black; border-bottom:1px solid black; border-left:1px solid black; display:table-cell; float:none"> | ||
<p class="text-center"> | ||
<%= _("Do you have a %{application_name} account?") % { | ||
application_name: ApplicationService.application_name} %> | ||
</p> | ||
<p class="text-center fontsize-h3 color-heading-text"> | ||
<i class="fas fa-circle-arrow-down" aria-hidden="true"></i> | ||
</p> | ||
<h2 class="text-center"> | ||
<%= _("Sign in") %> | ||
</h2> | ||
<p class="text-center"> | ||
<%= _("This will link your existing account to your credentials.") %> | ||
</p> | ||
<p><%= render partial: 'shared/sign_in_form' %><br></p> | ||
</div> | ||
|
||
<div class="col-md-6" | ||
style="border:1px solid black; display:table-cell; float:none"> | ||
|
||
<p class="text-center fontsize-h3 color-heading-text"> | ||
<%= _("No %{application_name} account?") % { | ||
application_name: ApplicationService.application_name} %> | ||
</p> | ||
|
||
<p class="text-center"> | ||
<i class="fas fa-circle-arrow-down" aria-hidden="true"></i> | ||
</p> | ||
|
||
<h2 class="text-center"> | ||
<%= _("Create account") %> | ||
</h2> | ||
<p class="text-center"> | ||
<%= _("This will create an account and link it to your credentials.") %> | ||
</p> | ||
<div id="create-account-form"> | ||
<p > | ||
<%= render partial: 'shared/create_account_form', locals: {orgs: @all_orgs, org_partial: @org_partial} %> | ||
<br> | ||
</p> | ||
</div> | ||
</div> | ||
<% else %> | ||
<div> | ||
<h2> | ||
<%= _("Create account") %> | ||
<i class="fas fa-user-plus" aria-hidden="true"> </i> | ||
</h2> | ||
<div id="create-account-form"> | ||
<%= render partial: 'shared/create_account_form', locals: {orgs: @all_orgs, org_partial: @org_partial} %> | ||
</div> | ||
</div> | ||
<% end %> | ||
</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
Oops, something went wrong.