86 lines
2.7 KiB
Plaintext
86 lines
2.7 KiB
Plaintext
<%@ page contentType="text/html" pageEncoding="UTF-8"%>
|
|
<%@ page import="javax.portlet.*"%>
|
|
<%@ page import="org.gcube.common.portal.*"%>
|
|
<%@ page import=" org.gcube.portal.invites.InvitesManager"%>
|
|
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
|
|
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui"%>
|
|
<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui"%>
|
|
<%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme"%>
|
|
|
|
<portlet:defineObjects />
|
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
|
|
|
<portlet:resourceURL id="findState" var="findState"></portlet:resourceURL>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
|
|
$( "#country" ).change(function() {
|
|
$.ajax({
|
|
url: "${findState}" ,
|
|
type: 'POST',
|
|
datatype:'json',
|
|
data: {
|
|
countryName: $("#country").val()
|
|
},
|
|
success: function(data){
|
|
var content= JSON.parse(data);
|
|
$('#state').html('');// to clear the previous option
|
|
$.each(content, function(i, state) {
|
|
$('#state').append($('<option>').text(state.name).attr('value', state.stateId));
|
|
});
|
|
}
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
<h1>
|
|
Hello
|
|
<c:out escapeXml="true" value="${invitedUser.firstName}" />!<br>
|
|
</h1>
|
|
|
|
<p class="lead">
|
|
You have recently received an invitation from
|
|
<c:out escapeXml="true" value="${inviteInstance.senderFullName}" />
|
|
to join the <a
|
|
href="/web<c:out escapeXml="true" value="${vreFriendlyURL}" />"
|
|
target="_blank"><c:out escapeXml="true" value="${vreName}" /></a>
|
|
Virtual Research Environment.
|
|
<c:choose>
|
|
<c:when test="${empty invitedUser}">
|
|
var1 is empty or null.landingPage
|
|
<br />
|
|
</c:when>
|
|
<c:otherwise>
|
|
This invite is valid for your email <a
|
|
href="mailto:<c:out escapeXml="true" value="${inviteInstance.invitedEmail}" />">
|
|
<c:out escapeXml="true" value="${inviteInstance.invitedEmail}" />
|
|
</a> only, you will be asked to enter your password associated to it on this portal.
|
|
|
|
<% String exploreURL = request.getAttribute("landingPage") + "/explore?" + InvitesManager.SITEID_ATTR+"="+request.getAttribute("groupId");%>
|
|
<p class="lead">
|
|
<button class="btn btn-large btn-primary" onclick="window.location.href='<%= exploreURL %>'" type="button">Go to <c:out escapeXml="true" value="${vreName}" /></button>
|
|
</p>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
|
|
</p>
|
|
|
|
<br>
|
|
<c:out escapeXml="true" value="${inviteInstance} " />
|
|
|
|
|
|
<b>Change the Country State Change By Ajax</b>
|
|
<br>
|
|
<br>
|
|
Country:
|
|
<select id="country" name="country">
|
|
<option value="select">Select Country</option>
|
|
<option value="india">India</option>
|
|
<option value="usa">USA</option>
|
|
</select>
|
|
|
|
<br>
|
|
<br>
|
|
State:
|
|
<select id="state" name="state">
|
|
</select> |