mirror of
https://github.com/Sudo-JHare/FHIRVINE-Smart-Proxy.git
synced 2025-06-15 12:40:01 +00:00
38 lines
1.9 KiB
HTML
38 lines
1.9 KiB
HTML
{% extends "base.html" %}
|
|
{% from "_formhelpers.html" import render_field %}
|
|
|
|
{% block content %}
|
|
<div class="container mt-4">
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-8 col-lg-6">
|
|
<div class="card shadow-sm">
|
|
<div class="card-header">
|
|
<h2 class="text-center mb-0">Register New SMART Application</h2>
|
|
</div>
|
|
<div class="card-body">
|
|
<p class="text-muted text-center small mb-4">
|
|
Register your application to use FHIRVINE as a SMART on FHIR SSO proxy.
|
|
{% if is_test %}This is a test app and will expire in 24 hours.{% endif %}
|
|
</p>
|
|
<form method="POST" action="{{ url_for('register_app', test='1' if is_test else '0') }}" novalidate>
|
|
{{ form.hidden_tag() }}
|
|
{{ render_field(form.app_name) }}
|
|
{{ render_field(form.redirect_uris, rows=3) }}
|
|
{{ render_field(form.scopes, rows=4) }}
|
|
<hr>
|
|
<p class="text-muted small">Optional Information:</p>
|
|
{{ render_field(form.logo_uri, autocomplete="off") }}
|
|
{{ render_field(form.contacts, rows=2, autocomplete="off") }}
|
|
{{ render_field(form.tos_uri, autocomplete="off") }}
|
|
{{ render_field(form.policy_uri, autocomplete="off") }}
|
|
<div class="d-grid gap-2 mt-4">
|
|
{{ form.submit(class="btn btn-primary btn-lg") }}
|
|
<a href="{{ url_for('app_gallery') }}" class="btn btn-outline-secondary">Cancel</a>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |