-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add LTI Integration portal UI (#55855)
- Add form - Add form submit result page - Add LTI specific CSS classes - Change lti_v1_controller to respond with HTML, not JSON - Add unit tests - Add flash alerts for errors --------- Signed-off-by: Nick Lathe <nick.lathe@code.org>
- Loading branch information
Showing
10 changed files
with
241 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#lti-integration-portal | ||
.row | ||
.span10 | ||
.padded-container | ||
- if @integration_status == :created | ||
.row | ||
.span10.header | ||
%h1= t('lti.integration.success_header') | ||
.row | ||
.span10 | ||
%p= t('lti.integration.success_body').html_safe | ||
%p= t('lti.integration.guide_instructions').html_safe | ||
- else | ||
.row | ||
.span10.header | ||
%h1= t('lti.integration.exists_header') | ||
.row | ||
.span10 | ||
%p= t('lti.integration.exists_body').html_safe | ||
%p= t('lti.integration.guide_instructions').html_safe | ||
.row | ||
.span10 | ||
%br | ||
= link_to :home do | ||
%button.lti-btn-purple-right= t('lti.integration.navigate_home') | ||
= link_to :lti_v1_integrations do | ||
%button.lti-btn-white= t('lti.integration.navigate_registration') |
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,42 @@ | ||
#lti-integration-portal | ||
|
||
.row | ||
.span10.header | ||
%h1= t('lti.integration.form_header') | ||
.row | ||
.span10 | ||
%p= t('lti.integration.form_instructions').html_safe | ||
%p= t('lti.integration.form_instructions_2').html_safe | ||
= form_with(url: :lti_v1_integrations, method: :post, class: "lti-integration-form") do |f| | ||
.row | ||
.span8 | ||
.padded-container | ||
.row | ||
.span3.lti-integration-field-label | ||
= f.label :name, t('lti.integration.name').html_safe | ||
.span5 | ||
= f.text_field :name, maxlength: 100 | ||
.row | ||
.span3.lti-integration-field-label | ||
= f.label :client_id, t('lti.integration.client_id').html_safe | ||
.span5 | ||
= f.text_field :client_id, maxlength: 50 | ||
.row | ||
.span3.lti-integration-field-label | ||
= f.label :email, t('lti.integration.email').html_safe | ||
.span5 | ||
= f.email_field :email, maxlength: 255 | ||
.row | ||
.span3.lti-integration-field-label | ||
= f.label :lms, t('lti.integration.lms_selector') | ||
.span5 | ||
= f.select :lms, @form_data[:lms_platforms].map {|p| [p[:name], p[:platform].to_s]} | ||
.row | ||
.span10 | ||
%p= t('lti.integration.form_instructions_3').html_safe | ||
|
||
%button.lti-btn-purple= t('lti.integration.register') | ||
|
||
.row | ||
.span10 | ||
%em= t('lti.integration.privacy_policy').html_safe |
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