-
-
Notifications
You must be signed in to change notification settings - Fork 928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SAK-50427 LTI Enhance the UI for Tool Deployment Feature #12851
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
</div> | ||
|
||
<script> | ||
//<![CDATA[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like you can remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you saying that the //<![CDATA[ is no longer needed for page validation?
|
||
<form action="#toolForm("")" method="post" name="customizeForm" > | ||
#if ($isEdit && $isAdmin && $autoStartUrl ) | ||
<div style="float:right" id="lti-advantage-div"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid inline style if possible?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so - This is not a general thing - it is just one button that needs to float right. Any other approach would be harder to understand for future developers.
</form> | ||
|
||
#if (($isEdit && $isAdmin && $autoStartUrl) || $canDeploy) | ||
<div id="modal-iframe-div" style="display:none" tabindex="-1" role="dialog"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid inline style if possible?
#end | ||
|
||
#if ($canDeploy) | ||
<div style="float:right; display: none;" id="lti-deployment-div"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid inline style if possible?
#if (!$tool.get("SITE_ID") && $tool.get("visible") == 1) | ||
## If SITE_ID is blank and the tool is stealthed, then it can be deployed | ||
<li style="display:inline"><span aria-hidden="true"> / </span> <a href="$sakai_ActionURL.setPanel("ToolSiteDeploy")&tool_id=$tool.get("id")">$tlang.getString("gen.deploy")</a> </li> | ||
<li style="display:inline"><a href="$sakai_ActionURL.setPanel("ToolEdit")&id=$tool.get("id")">$tlang.getString("gen.edit")</a></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid inline style if possible?
@@ -109,7 +109,11 @@ ${includeLatestJQuery} | |||
#if ($messageSuccess)<div class="sak-banner-success">$tlang.getString("gen.success") $formattedText.escapeHtml($messageSuccess)</div>#end | |||
#if ($alertMessage)<div class="sak-banner-error">$tlang.getString("gen.alert") $formattedText.escapeHtml($alertMessage)</div>#end | |||
#if ($configMessage)<div class="sak-banner-error">$tlang.getString("gen.alert") $formattedText.escapeHtml($configMessage)</div>#end | |||
#if ($isAdmin || $allowMaintainerAddSystemTool)<div align="right" style="padding:10px"><a href="" title="$tlang.getString("add.to.system")" onclick="location = '$sakai_ActionURL.setPanel("ToolInsert")';return false;"> $tlang.getString("add.to.system")</a>#if ($isAdmin )<br/><a href="" title="$tlang.getString("add.auto")" onclick="location = '$sakai_ActionURL.setPanel("AutoInsert")';return false;"> $tlang.getString("add.auto")</a>#end</div>#end | |||
#if ($isAdmin || $allowMaintainerAddSystemTool) | |||
<div align="right" style="padding:10px"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inline syle
</div> | ||
|
||
#if ($isAdmin) | ||
<div id="siteId-input" class="foorm-text" style="clear:both;"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inline style
|
||
#if ($isAdmin) | ||
<div id="siteId-input" class="foorm-text" style="clear:both;"> | ||
<label for="siteId" style="display:block;float:none;font-weight:bold">$tlang.getString('tool.new.insert.start.siteId')</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inline style
#if ($isAdmin) | ||
<div id="siteId-input" class="foorm-text" style="clear:both;"> | ||
<label for="siteId" style="display:block;float:none;font-weight:bold">$tlang.getString('tool.new.insert.start.siteId')</label> | ||
<div id="div_siteId"><input type="text" id="siteId" name="siteId" size="40" style="border:1px solid #555;padding:5px;font-size:1em;width:300px" value="$!previousPost.get("siteId")"/></div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inline style
<input type="hidden" name="sakai_csrf_token" value="$sakai_csrf_token" /> | ||
<input type="hidden" name="sakai_csrf_token" value="$sakai_csrf_token" /> | ||
|
||
<div id="title-input" class="foorm-text" style="clear:both;"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inline style
https://sakaiproject.atlassian.net/browse/SAK-50427