Files
cloudron-box/src/oidc_templates/interaction.ejs

86 lines
1.9 KiB
Plaintext
Raw Normal View History

<!DOCTYPE html>
2023-03-11 17:22:27 +01:00
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" />
2023-03-23 10:00:17 +01:00
<title>Authorize <%= name %></title>
2023-05-11 12:15:10 +02:00
<link id="favicon" type="image/png" rel="icon" href="/api/v1/cloudron/avatar">
<link rel="apple-touch-icon" href="/api/v1/cloudron/avatar">
<link rel="icon" href="/api/v1/cloudron/avatar">
<!-- Theme CSS -->
<link type="text/css" rel="stylesheet" href="/theme.css">
2023-04-27 16:20:32 +02:00
<style>
.card {
padding: 20px;
margin-bottom: 0;
max-width: 620px;
min-height: 100%;
}
.avatar {
margin-top: 20px;
}
@media(min-width:620px) {
.card {
margin-bottom: 15px;
margin-top: 100px;
min-height: auto;
}
.avatar {
margin-top: -84px
}
}
</style>
2023-03-11 17:22:27 +01:00
</head>
<body>
<% if (hasAccess) { -%>
<form id="submitForm" method="post" action="<%= submitUrl %>">
<!-- <button type="submit"></button> -->
</form>
<% } else { -%>
<div class="layout-root">
<div class="layout-content">
2023-04-27 16:20:32 +02:00
<div class="card">
<div class="row">
<div class="col-md-12" style="text-align: center;">
2023-05-12 13:32:43 +02:00
<img width="128" height="128" class="avatar" src="<%= iconUrl %>"/>
<br/>
2023-04-25 13:13:04 +02:00
<h3>You do not have access to <b><%= name %></b></h3>
</div>
</div>
<br/>
<div class="row">
2023-03-13 19:08:41 +01:00
<div class="col-md-12 text-center">
2023-04-25 13:13:04 +02:00
<a class="btn btn-primary btn-outline" href="<%= submitUrl %>">Continue</a>
</div>
</div>
</div>
</div>
2023-08-11 13:36:46 +02:00
<footer class="text-center">
<span class="text-muted"><%- footer %></span>
</footer>
</div>
<% } -%>
<script>
<% if (hasAccess) { -%>
document.getElementById('submitForm').submit();
<% } -%>
</script>
2023-03-11 17:22:27 +01:00
</body>
</html>