-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
funguje edit príspevku aj pridávanie nového
- Loading branch information
Showing
6 changed files
with
85 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
/** @var \App\Core\LinkGenerator $link */ | ||
/** @var Array $data */ | ||
|
||
use App\Models\Post; | ||
|
||
?> | ||
<form method="post" action="<?= $link->url('admin.create') ?>" enctype="multipart/form-data"> | ||
|
||
<input type="hidden" name="id" value=""> | ||
|
||
<!-- text (Nazov) --> | ||
<label for="post-nazov" class="form-label">Názov príspevku</label> | ||
<div class="input-group has-validation mb-3 "> | ||
<input type="text" class="form-control" name="nazov" id="post-nazov" value=""> | ||
</div> | ||
|
||
<!-- text (Popis) --> | ||
<label for="post-popis" class="form-label">Text príspevku</label> | ||
<div class="input-group has-validation mb-3 "> | ||
<input type="text" class="form-control" name="popis" id="post-popis" value=""> | ||
</div> | ||
|
||
<!-- date (Datum Publikovania) --> | ||
<label for="post-date" class="form-label">Dátum publikovania</label> | ||
<div class="input-group has-validation mb-3 "> | ||
<input type="date" class="form-control" name="date" id="post-date" value=""> | ||
</div> | ||
|
||
<!-- url (Zdroj) --> | ||
<label for="post-url" class="form-label">Adresa</label> | ||
<div class="input-group has-validation mb-3 "> | ||
<input type="url" class="form-control" name="url" id="post-url" value=""> | ||
</div> | ||
|
||
<button type="submit" class="btn btn-primary">Uložiť</button> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters