mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-21 06:23:42 +01:00
Fixed users being able to add a profile image with no page name
This commit is contained in:
parent
38d6d64ecf
commit
4de0761e7c
@ -6,13 +6,15 @@
|
|||||||
|
|
||||||
<h2 class="mb-4"><i class="bi bi-file-earmark-break"> Page</i></h2>
|
<h2 class="mb-4"><i class="bi bi-file-earmark-break"> Page</i></h2>
|
||||||
|
|
||||||
|
@foreach($pages as $page)
|
||||||
<form action="{{ route('editPage') }}" enctype="multipart/form-data" method="post">
|
<form action="{{ route('editPage') }}" enctype="multipart/form-data" method="post">
|
||||||
@csrf
|
@csrf
|
||||||
|
@if($page->littlelink_name != '')
|
||||||
<div class="form-group col-lg-8">
|
<div class="form-group col-lg-8">
|
||||||
<label>Logo</label>
|
<label>Logo</label>
|
||||||
<input type="file" class="form-control-file" name="image">
|
<input type="file" class="form-control-file" name="image">
|
||||||
</div>
|
</div>
|
||||||
@foreach($pages as $page)
|
@endif
|
||||||
|
|
||||||
<div class="form-group col-lg-8">
|
<div class="form-group col-lg-8">
|
||||||
@if(file_exists(base_path("img/$page->littlelink_name" . ".png" )))
|
@if(file_exists(base_path("img/$page->littlelink_name" . ".png" )))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user