mirror of
https://code.castopod.org/adaures/castopod
synced 2025-06-06 18:31:05 +00:00
parent
e109df3004
commit
a83417180c
12
app/Language/en/Admin.php
Normal file
12
app/Language/en/Admin.php
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @copyright 2020 Podlibre
|
||||||
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
||||||
|
* @link https://castopod.org/
|
||||||
|
*/
|
||||||
|
|
||||||
|
return [
|
||||||
|
'dashboard' => 'Admin dashboard',
|
||||||
|
'welcome_message' => 'Welcome to the admin area!',
|
||||||
|
];
|
@ -20,4 +20,9 @@ return [
|
|||||||
'pages' => 'Pages',
|
'pages' => 'Pages',
|
||||||
'page-list' => 'All pages',
|
'page-list' => 'All pages',
|
||||||
'page-create' => 'New Page',
|
'page-create' => 'New Page',
|
||||||
|
'account' => [
|
||||||
|
'my-account' => 'My account',
|
||||||
|
'change-password' => 'Change password',
|
||||||
|
'logout' => 'Logout',
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.form-radio-btn + label {
|
.form-radio-btn + label {
|
||||||
@apply px-2 py-1 text-sm text-black bg-white border rounded cursor-pointer;
|
@apply inline-block px-2 py-1 text-sm text-black bg-white border rounded cursor-pointer;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@apply bg-green-100;
|
@apply bg-green-100;
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
'pageTitle'
|
'pageTitle'
|
||||||
) ?></h1>
|
) ?></h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap gap-y-2"><?= $this->renderSection(
|
<div class="flex flex-wrap"><?= $this->renderSection(
|
||||||
'headerRight'
|
'headerRight'
|
||||||
) ?></div>
|
) ?></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -52,13 +52,12 @@ $navigation = [
|
|||||||
<nav class="absolute z-50 flex-col hidden py-2 text-black whitespace-no-wrap bg-white border rounded shadow" aria-labelledby="my-accountDropdown" data-popper="menu" data-popper-placement="right-end">
|
<nav class="absolute z-50 flex-col hidden py-2 text-black whitespace-no-wrap bg-white border rounded shadow" aria-labelledby="my-accountDropdown" data-popper="menu" data-popper-placement="right-end">
|
||||||
<a class="px-4 py-1 hover:bg-gray-100" href="<?= route_to(
|
<a class="px-4 py-1 hover:bg-gray-100" href="<?= route_to(
|
||||||
'my-account'
|
'my-account'
|
||||||
) ?>">My Account</a>
|
) ?>"><?= lang('AdminNavigation.account.my-account') ?></a>
|
||||||
<a class="px-4 py-1 hover:bg-gray-100" href="<?= route_to(
|
<a class="px-4 py-1 hover:bg-gray-100" href="<?= route_to(
|
||||||
'change-password'
|
'change-password'
|
||||||
) ?>">Change password</a>
|
) ?>"><?= lang('AdminNavigation.account.change-password') ?></a>
|
||||||
<a class="px-4 py-1 hover:bg-gray-100" href="<?= route_to(
|
<a class="px-4 py-1 hover:bg-gray-100" href="<?= route_to(
|
||||||
'logout'
|
'logout'
|
||||||
) ?>">Logout</a>
|
) ?>"><?= lang('AdminNavigation.account.logout') ?></a>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
<?= $this->extend('admin/_layout') ?>
|
<?= $this->extend('admin/_layout') ?>
|
||||||
|
|
||||||
<?= $this->section('title') ?>
|
<?= $this->section('title') ?>
|
||||||
Dashboard
|
<?= lang('Admin.dashboard') ?>
|
||||||
<?= $this->endSection() ?>
|
<?= $this->endSection() ?>
|
||||||
|
|
||||||
<?= $this->section('pageTitle') ?>
|
<?= $this->section('pageTitle') ?>
|
||||||
Admin dashboard
|
<?= lang('Admin.dashboard') ?>
|
||||||
<?= $this->endSection() ?>
|
<?= $this->endSection() ?>
|
||||||
|
|
||||||
<?= $this->section('content') ?>
|
<?= $this->section('content') ?>
|
||||||
Welcome to the admin area!
|
<?= lang('Admin.welcome_message') ?>
|
||||||
<?= $this->endsection() ?>
|
<?= $this->endsection() ?>
|
||||||
|
@ -108,7 +108,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<?= form_fieldset('', ['class' => 'flex mb-4 gap-1']) ?>
|
<?= form_fieldset('', ['class' => 'mb-4']) ?>
|
||||||
<legend>
|
<legend>
|
||||||
<?= lang('Episode.form.type.label') .
|
<?= lang('Episode.form.type.label') .
|
||||||
hint_tooltip(lang('Episode.form.type.hint'), 'ml-1') ?>
|
hint_tooltip(lang('Episode.form.type.hint'), 'ml-1') ?>
|
||||||
|
@ -233,7 +233,7 @@
|
|||||||
<?= form_fieldset_close() ?>
|
<?= form_fieldset_close() ?>
|
||||||
|
|
||||||
|
|
||||||
<?= form_fieldset('', ['class' => 'flex mb-6 gap-1']) ?>
|
<?= form_fieldset('', ['class' => 'mb-6']) ?>
|
||||||
<legend>
|
<legend>
|
||||||
<?= lang('Episode.form.parental_advisory.label') .
|
<?= lang('Episode.form.parental_advisory.label') .
|
||||||
hint_tooltip(lang('Episode.form.type.hint'), 'ml-1') ?>
|
hint_tooltip(lang('Episode.form.type.hint'), 'ml-1') ?>
|
||||||
@ -287,11 +287,7 @@
|
|||||||
hint_tooltip(lang('Episode.form.block_hint'), 'ml-1'),
|
hint_tooltip(lang('Episode.form.block_hint'), 'ml-1'),
|
||||||
['id' => 'block', 'name' => 'block'],
|
['id' => 'block', 'name' => 'block'],
|
||||||
'yes',
|
'yes',
|
||||||
old(
|
old('block', $episode->block)
|
||||||
'block',
|
|
||||||
|
|
||||||
$episode->block
|
|
||||||
)
|
|
||||||
) ?>
|
) ?>
|
||||||
|
|
||||||
<?= form_section_close() ?>
|
<?= form_section_close() ?>
|
||||||
|
@ -4,6 +4,10 @@
|
|||||||
<?= lang('MyAccount.changePassword') ?>
|
<?= lang('MyAccount.changePassword') ?>
|
||||||
<?= $this->endSection() ?>
|
<?= $this->endSection() ?>
|
||||||
|
|
||||||
|
<?= $this->section('pageTitle') ?>
|
||||||
|
<?= lang('MyAccount.changePassword') ?>
|
||||||
|
<?= $this->endSection() ?>
|
||||||
|
|
||||||
|
|
||||||
<?= $this->section('content') ?>
|
<?= $this->section('content') ?>
|
||||||
|
|
||||||
|
@ -4,6 +4,10 @@
|
|||||||
<?= lang('MyAccount.info') ?>
|
<?= lang('MyAccount.info') ?>
|
||||||
<?= $this->endSection() ?>
|
<?= $this->endSection() ?>
|
||||||
|
|
||||||
|
<?= $this->section('pageTitle') ?>
|
||||||
|
<?= lang('MyAccount.info') ?>
|
||||||
|
<?= $this->endSection() ?>
|
||||||
|
|
||||||
|
|
||||||
<?= $this->section('content') ?>
|
<?= $this->section('content') ?>
|
||||||
|
|
||||||
|
@ -83,12 +83,12 @@ $podcastNavigation = [
|
|||||||
<nav class="absolute z-50 flex-col hidden py-2 text-black whitespace-no-wrap bg-white border rounded shadow" aria-labelledby="my-accountDropdown" data-popper="menu" data-popper-placement="right-end">
|
<nav class="absolute z-50 flex-col hidden py-2 text-black whitespace-no-wrap bg-white border rounded shadow" aria-labelledby="my-accountDropdown" data-popper="menu" data-popper-placement="right-end">
|
||||||
<a class="px-4 py-1 hover:bg-gray-100" href="<?= route_to(
|
<a class="px-4 py-1 hover:bg-gray-100" href="<?= route_to(
|
||||||
'my-account'
|
'my-account'
|
||||||
) ?>">My Account</a>
|
) ?>"><?= lang('AdminNavigation.account.my-account') ?></a>
|
||||||
<a class="px-4 py-1 hover:bg-gray-100" href="<?= route_to(
|
<a class="px-4 py-1 hover:bg-gray-100" href="<?= route_to(
|
||||||
'change-password'
|
'change-password'
|
||||||
) ?>">Change password</a>
|
) ?>"><?= lang('AdminNavigation.account.change-password') ?></a>
|
||||||
<a class="px-4 py-1 hover:bg-gray-100" href="<?= route_to(
|
<a class="px-4 py-1 hover:bg-gray-100" href="<?= route_to(
|
||||||
'logout'
|
'logout'
|
||||||
) ?>">Logout</a>
|
) ?>"><?= lang('AdminNavigation.account.logout') ?></a>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
@ -58,7 +58,9 @@
|
|||||||
'required' => 'required',
|
'required' => 'required',
|
||||||
]) ?>
|
]) ?>
|
||||||
|
|
||||||
<?= form_fieldset('', ['class' => 'flex mb-4 gap-1']) ?>
|
<?= form_fieldset('', [
|
||||||
|
'class' => 'mb-4',
|
||||||
|
]) ?>
|
||||||
<legend>
|
<legend>
|
||||||
<?= lang('Podcast.form.type.label') .
|
<?= lang('Podcast.form.type.label') .
|
||||||
hint_tooltip(lang('Podcast.form.type.hint'), 'ml-1') ?>
|
hint_tooltip(lang('Podcast.form.type.hint'), 'ml-1') ?>
|
||||||
@ -131,7 +133,7 @@
|
|||||||
]
|
]
|
||||||
) ?>
|
) ?>
|
||||||
|
|
||||||
<?= form_fieldset('', ['class' => 'flex mb-4 gap-1']) ?>
|
<?= form_fieldset('', ['class' => 'mb-4']) ?>
|
||||||
<legend>
|
<legend>
|
||||||
<?= lang('Podcast.form.parental_advisory.label') .
|
<?= lang('Podcast.form.parental_advisory.label') .
|
||||||
hint_tooltip(lang('Podcast.form.parental_advisory.hint'), 'ml-1') ?>
|
hint_tooltip(lang('Podcast.form.parental_advisory.hint'), 'ml-1') ?>
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
'required' => 'required',
|
'required' => 'required',
|
||||||
]) ?>
|
]) ?>
|
||||||
|
|
||||||
<?= form_fieldset('', ['class' => 'flex mb-4 gap-1']) ?>
|
<?= form_fieldset('', ['class' => 'mb-4']) ?>
|
||||||
<legend><?= lang('Podcast.form.type.label') .
|
<legend><?= lang('Podcast.form.type.label') .
|
||||||
hint_tooltip(lang('Podcast.form.type.hint'), 'ml-1') ?>
|
hint_tooltip(lang('Podcast.form.type.hint'), 'ml-1') ?>
|
||||||
</legend>
|
</legend>
|
||||||
@ -143,7 +143,7 @@
|
|||||||
]
|
]
|
||||||
) ?>
|
) ?>
|
||||||
|
|
||||||
<?= form_fieldset('', ['class' => 'flex mb-4 gap-1']) ?>
|
<?= form_fieldset('', ['class' => 'mb-4']) ?>
|
||||||
<legend><?= lang('Podcast.form.parental_advisory.label') .
|
<legend><?= lang('Podcast.form.parental_advisory.label') .
|
||||||
hint_tooltip(lang('Podcast.form.parental_advisory.hint'), 'ml-1') ?>
|
hint_tooltip(lang('Podcast.form.parental_advisory.hint'), 'ml-1') ?>
|
||||||
</legend>
|
</legend>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user