Added scroll to bottom button

Added scroll to bottom button to:

config page
advanced config page
alternative config editor page
This commit is contained in:
Julian Prieber 2022-08-23 13:18:09 +02:00
parent 1ddae3fc94
commit 250d48a187
2 changed files with 5 additions and 3 deletions

View File

@ -17,6 +17,7 @@ Home Page, links, titles, Google Analytics and meta tags.</p>
<form action="{{ route('editAC') }}" method="post"> <form action="{{ route('editAC') }}" method="post">
@csrf @csrf
<div class="form-group col-lg-8"> <div class="form-group col-lg-8">
<br><a style="font-size:140%;" href="#bottom">🠟 Scroll to bottom 🠟</a><br>
<label>Advanced Configuration file.</label> <label>Advanced Configuration file.</label>
<pre><textarea class="form-control" name="AdvancedConfig" rows="280">{{ file_get_contents('config/advanced-config.php') }}</textarea></pre> <pre><textarea class="form-control" name="AdvancedConfig" rows="280">{{ file_get_contents('config/advanced-config.php') }}</textarea></pre>
</div> </div>
@ -34,10 +35,10 @@ Home Page, links, titles, Google Analytics and meta tags.</p>
</form> </form>
@elseif(str_ends_with($_SERVER['REQUEST_URI'], 'env')) @elseif(str_ends_with($_SERVER['REQUEST_URI'], 'env'))
<h2 class="mb-4"><i class="bi bi-pencil-square"> ENV</i></h2> <h2 class="mb-4"><i class="bi bi-pencil-square"> ENV</i></h2>
<form action="{{ route('editENV') }}" method="post"> <form action="{{ route('editENV') }}" method="post">
@csrf @csrf
<div class="form-group col-lg-8"> <div class="form-group col-lg-8">
<br><a style="font-size:140%;" href="#bottom">🠟 Scroll to bottom 🠟</a><br>
<label>.env</label> <label>.env</label>
<pre><textarea class="form-control" name="AdvancedConfig" rows="80">{{ file_get_contents('.env') }}</textarea></pre> <pre><textarea class="form-control" name="AdvancedConfig" rows="80">{{ file_get_contents('.env') }}</textarea></pre>
</div> </div>
@ -45,7 +46,7 @@ Home Page, links, titles, Google Analytics and meta tags.</p>
</form> </form>
@endif @endif
<a name="bottom"></a>
@endsection @endsection
@endif @endif

View File

@ -44,6 +44,7 @@
<div class="tab-content" id="nav-tabContent"> <div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active p-3" id="current-env" role="tabpanel" aria-labelledby="nav-home-tab"> <div class="tab-pane fade show active p-3" id="current-env" role="tabpanel" aria-labelledby="nav-home-tab">
<br><a style="font-size:140%;" href="#bottom">🠟 Scroll to bottom 🠟</a><br>
<env-main-tab></env-main-tab> <env-main-tab></env-main-tab>
</div> </div>
<div class="tab-pane fade p-3" id="backup-env" role="tabpanel" aria-labelledby="nav-profile-tab"> <div class="tab-pane fade p-3" id="backup-env" role="tabpanel" aria-labelledby="nav-profile-tab">
@ -54,7 +55,7 @@
</div> </div>
<p style="color:#fff; font-weight:500; font-size:100%; position:relative; bottom:25px;">You can disable or enable registration <a href="{{ url('panel/pages') }}">here</a>.</p> <p style="color:#fff; font-weight:500; font-size:100%; position:relative; bottom:25px;">You can disable or enable registration <a href="{{ url('panel/pages') }}">here</a>.</p>
</div> </div>
<a name="bottom"></a>
<env-keys-modal ref="keysModal"></env-keys-modal> <env-keys-modal ref="keysModal"></env-keys-modal>
</div> </div>
<p style="color:#fff; font-weight:500; font-size:160%;">Use the <a href="{{url()->current()}}/../panel/env">Alternative Config Editor </a></p> <p style="color:#fff; font-weight:500; font-size:160%;">Use the <a href="{{url()->current()}}/../panel/env">Alternative Config Editor </a></p>