[UPDT] MEET: Removed search from Gmeet credential view and fixed the enable button
This commit is contained in:
@@ -74,7 +74,7 @@ class GmeetCredentialNavView(views.HorillaNavView):
|
||||
|
||||
nav_title = _trans("Google Cloud Credentials")
|
||||
search_swap_target = "#credContainer"
|
||||
search_url = reverse_lazy("gmeet-setting-list-view")
|
||||
search_url = None
|
||||
|
||||
|
||||
@method_decorator(login_required, name="dispatch")
|
||||
|
||||
@@ -6,31 +6,31 @@
|
||||
<h2 class="text-sm font-semibold bg-[#f3f3f3] px-4 py-3 text-[#333]">
|
||||
{% trans "Google Meet Integration" %}
|
||||
</h2>
|
||||
<div class="p-4">
|
||||
<div class="grid grid-cols-12 gap-4 myform">
|
||||
<div class="col-span-12 lg:col-span-6">
|
||||
<div class="flex items-center justify-between mb-4">
|
||||
<div class="flex space-x-2">
|
||||
<h3 class="text-sm font-medium">{% trans "Enable Google meet" %}</h3>
|
||||
<span class="oh-info" title="{% trans 'Enable this to integrate Google meet to Horilla.' %}"></span>
|
||||
</div>
|
||||
<label class="toggle-label" for="is_enabled">
|
||||
<input
|
||||
type="checkbox"
|
||||
class="toggle-input"
|
||||
name="is_enabled"
|
||||
id="is_enabled"
|
||||
hx-post="{% url 'enable-integration'%}?app_label=horilla_meet"
|
||||
hx-trigger="change"
|
||||
{% if "horilla_meet"|integration_installed %} checked {% endif %}
|
||||
/>
|
||||
|
||||
<div class="flex items-center gap-20 px-4 my-4">
|
||||
<div class="flex gap-1">
|
||||
<h3 class="text-sm font-medium">{% trans "Enable Google meet" %}</h3>
|
||||
<span
|
||||
class="oh-info mr-2"
|
||||
title="{% trans 'Enable this to integrate Google meet to Horilla.' %}"
|
||||
>
|
||||
</span>
|
||||
<div class="toggle-switch"></div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<label class="toggle-label" for="is_enabled">
|
||||
<input
|
||||
type="checkbox"
|
||||
class="toggle-input"
|
||||
name="is_enabled"
|
||||
id="is_enabled"
|
||||
hx-post="{% url 'enable-integration'%}?app_label=horilla_meet"
|
||||
hx-trigger="change"
|
||||
{% if "horilla_meet"|integration_installed %} checked {% endif %}
|
||||
/>
|
||||
|
||||
<div class="toggle-switch"></div>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="px-4">
|
||||
{% if "horilla_meet"|integration_installed %}
|
||||
{% include "gmeet_credentials/gmeet_credential_section.html" %}
|
||||
|
||||
Reference in New Issue
Block a user