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

54 lines
1.6 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>
<!-- Theme CSS -->
<link type="text/css" rel="stylesheet" href="/theme.css">
<!-- Fontawesome -->
<link type="text/css" rel="stylesheet" href="/3rdparty/fontawesome/css/all.css"/>
2023-03-11 17:22:27 +01:00
<!-- Bootstrap Core JavaScript -->
<script type="text/javascript" src="/3rdparty/js/jquery.min.js"></script>
<script type="text/javascript" src="/3rdparty/js/bootstrap.min.js"></script>
2023-03-11 17:22:27 +01:00
</head>
<body>
<div class="layout-root">
<div class="layout-content">
<div class="card" style="padding: 20px; margin-top: 100px; max-width: 620px;">
<div class="row">
<div class="col-md-12" style="text-align: center;">
<img width="128" height="128" style="margin-top: -84px" src="/api/v1/cloudron/avatar"/>
<br/>
2023-04-25 13:13:04 +02:00
<% if (hasAccess) { -%>
<h3>Authorize for <b><%= name %></b></h3>
<% } else { -%>
<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
<% if (hasAccess) { -%>
<form method="post" action="<%= submitUrl %>">
<button class="btn btn-primary btn-outline" type="submit">Authorize</button>
</form>
2023-04-25 13:13:04 +02:00
<% } else { -%>
<a class="btn btn-primary btn-outline" href="<%= submitUrl %>">Continue</a>
<% } -%>
</div>
</div>
</div>
</div>
</div>
2023-03-11 17:22:27 +01:00
</body>
</html>