+ *
* @copyright 2020 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
* @link https://castopod.org/
@@ -33,4 +33,4 @@ class PlatformModel extends Model
protected $useSoftDeletes = false;
protected $useTimestamps = true;
-}
\ No newline at end of file
+}
diff --git a/app/Models/PodcastModel.php b/app/Models/PodcastModel.php
index 01bcb804..3fe1c70c 100644
--- a/app/Models/PodcastModel.php
+++ b/app/Models/PodcastModel.php
@@ -1,4 +1,9 @@
extend('layouts/default') ?>
+
+= $this->section('content') ?>
+
+= lang('Episodes.create') ?>
+
+
+ = \Config\Services::validation()->listErrors() ?>
+
+
+= form_open_multipart(route_to('episodes_create', '@' . $podcast->name), [
+ 'method' => 'post',
+ 'class' => 'flex flex-col max-w-md',
+]) ?>
+= csrf_field() ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ type == 'serial' ? 'required' : '' ?> />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+= form_close() ?>
+
+
+= $this->endSection() ?>
diff --git a/app/Views/episodes/view.php b/app/Views/episodes/view.php
new file mode 100644
index 00000000..345bd293
--- /dev/null
+++ b/app/Views/episodes/view.php
@@ -0,0 +1,16 @@
+= $this->extend('layouts/default') ?>
+
+= $this->section('content') ?>
+
+= $episode->title ?>
+
+
+
+= $this->endSection() ?>
diff --git a/app/Views/home.php b/app/Views/home.php
index 1b7b2393..a0587247 100644
--- a/app/Views/home.php
+++ b/app/Views/home.php
@@ -2,21 +2,23 @@
= $this->section('content') ?>
-= lang("Home.all_podcasts") ?> (= count($podcasts) ?>)
+= lang('Home.all_podcasts') ?> (= count(
+ $podcasts
+ ) ?>)
-= $this->endSection() ?>
\ No newline at end of file
+= $this->endSection() ?>
diff --git a/app/Views/layouts/default.php b/app/Views/layouts/default.php
index e2b3bb9c..f0c27589 100644
--- a/app/Views/layouts/default.php
+++ b/app/Views/layouts/default.php
@@ -13,9 +13,11 @@
@@ -23,6 +25,6 @@
= $this->renderSection('content') ?>
\ No newline at end of file
diff --git a/app/Views/podcasts/create.php b/app/Views/podcasts/create.php
index b0e8aa37..69fd6897 100644
--- a/app/Views/podcasts/create.php
+++ b/app/Views/podcasts/create.php
@@ -2,109 +2,127 @@
= $this->section('content') ?>
-= lang("Podcasts.create") ?>
+= lang('Podcasts.create') ?>
-
+
+ = \Config\Services::validation()->listErrors() ?>
+
-= form_open_multipart('podcasts/create', ["method" => "post", "class" => "flex flex-col max-w-md"]) ?>
+= form_open_multipart(base_url(route_to('podcasts_create')), [
+ 'method' => 'post',
+ 'class' => 'flex flex-col max-w-md',
+]) ?>
= csrf_field() ?>
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-