refactor
This commit is contained in:
@@ -350,16 +350,18 @@
|
||||
</div>
|
||||
|
||||
<h3 class="pt-8">HTTP Basic Authentication</h3>
|
||||
<div x-data="{ enabled: {{ $application->http_basic_auth_enabled ? 'true' : 'false' }} }">
|
||||
<div>
|
||||
<div class="w-96">
|
||||
<x-forms.checkbox helper="This will add the proper proxy labels to the container."
|
||||
label="Enable" id="application.http_basic_auth_enabled" x-model="enabled" />
|
||||
</div>
|
||||
|
||||
<div class="flex gap-2 py-2" x-show="enabled">
|
||||
<x-forms.input id="application.http_basic_auth_username" label="Username" />
|
||||
<x-forms.input id="application.http_basic_auth_password" type="password" label="Password" />
|
||||
<x-forms.checkbox helper="This will add the proper proxy labels to the container." instantSave
|
||||
label="Enable" id="application.is_http_basic_auth_enabled" />
|
||||
</div>
|
||||
@if ($application->is_http_basic_auth_enabled)
|
||||
<div class="flex gap-2 py-2">
|
||||
<x-forms.input id="application.http_basic_auth_username" label="Username" required />
|
||||
<x-forms.input id="application.http_basic_auth_password" type="password" label="Password"
|
||||
required />
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@if ($application->settings->is_container_label_readonly_enabled)
|
||||
|
||||
Reference in New Issue
Block a user