Inline user info in service offering page
All checks were successful
Tests / test (push) Successful in 27s
All checks were successful
Tests / test (push) Successful in 27s
ref #243
This commit is contained in:
parent
6c2795d4fa
commit
bca79be02a
3 changed files with 37 additions and 34 deletions
|
|
@ -102,8 +102,17 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if control_plane.user_info %}
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-header">
|
||||||
|
<h4 class="card-title">{% translate "Service Provider Zone Information" %}</h4>
|
||||||
|
</div>
|
||||||
|
<div class="card-content">
|
||||||
{% include "includes/control_plane_user_info.html" with control_plane=instance.context.control_plane %}
|
{% include "includes/control_plane_user_info.html" with control_plane=instance.context.control_plane %}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
{% if instance.spec and spec_fieldsets %}
|
{% if instance.spec and spec_fieldsets %}
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,14 @@
|
||||||
{{ offering }}
|
{{ offering }}
|
||||||
{% endblock page_title %}
|
{% endblock page_title %}
|
||||||
{% endblock html_title %}
|
{% endblock html_title %}
|
||||||
{% partialdef control-plane-info %}
|
{% partialdef control-plane-info inline=True %}
|
||||||
{% if selected_plane %}
|
{% if selected_plane and selected_plane.user_info %}
|
||||||
|
<div class="row mt-3">
|
||||||
|
<div class="col-12">
|
||||||
|
<h6 class="mb-3">{% translate "Service Provider Zone Information" %}</h6>
|
||||||
{% include "includes/control_plane_user_info.html" with control_plane=selected_plane %}
|
{% include "includes/control_plane_user_info.html" with control_plane=selected_plane %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endpartialdef %}
|
{% endpartialdef %}
|
||||||
{% partialdef service-form %}
|
{% partialdef service-form %}
|
||||||
|
|
@ -31,7 +36,7 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12 col-lg-8">
|
<div class="col-12">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header d-flex align-items-center">
|
<div class="card-header d-flex align-items-center">
|
||||||
{% if service.logo %}
|
{% if service.logo %}
|
||||||
|
|
@ -64,6 +69,13 @@
|
||||||
{{ select_form }}
|
{{ select_form }}
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if has_control_planes %}
|
||||||
|
<div id="control-plane-info"
|
||||||
|
hx-trigger="load, change from:form"
|
||||||
|
hx-get="{{ request.path }}?fragment=control-plane-info">
|
||||||
|
{% partial control-plane-info %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% if service.external_links or offering.external_links %}
|
{% if service.external_links or offering.external_links %}
|
||||||
<div class="row mt-3">
|
<div class="row mt-3">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
|
|
@ -83,13 +95,6 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="service-form">{% partial service-form %}</div>
|
<div id="service-form">{% partial service-form %}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-lg-4">
|
|
||||||
{% if has_control_planes %}
|
|
||||||
<div id="control-plane-info"
|
|
||||||
hx-trigger="load, change from:form"
|
|
||||||
hx-get="{{ request.path }}?fragment=control-plane-info">{% partial control-plane-info %}</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,5 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% comment %}
|
|
||||||
Reusable snippet for displaying ControlPlane user_info
|
|
||||||
Usage: {% include "includes/control_plane_user_info.html" with control_plane=control_plane_object %}
|
|
||||||
{% endcomment %}
|
|
||||||
{% if control_plane.user_info %}
|
{% if control_plane.user_info %}
|
||||||
<div class="card">
|
|
||||||
<div class="card-header">
|
|
||||||
<h4 class="card-title">{% translate "Service Provider Zone Information" %}</h4>
|
|
||||||
</div>
|
|
||||||
<div class="card-content">
|
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table mb-0 table-lg">
|
<table class="table mb-0 table-lg">
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
@ -21,6 +12,4 @@ Usage: {% include "includes/control_plane_user_info.html" with control_plane=con
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue