Completed web programming project #44
@ -57,7 +57,7 @@
|
||||
<form action="<?php the_permalink('admin:recipe-list') ?>" method="get">
|
||||
<div class="input-admin">
|
||||
<input type="text" name="s" placeholder="Search for recipes">
|
||||
<button class="hover-anim" type="submit"><i class="fa-solid fa-magnifying-glass"></i></button>
|
||||
<button class="btn btn-secondary hover-anim" type="submit"><i class="fa-solid fa-magnifying-glass"></i></button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
<form method="get">
|
||||
<div class="input-admin">
|
||||
<input type="text" name="s" placeholder="Search for <?php echo $context['verbose_name_multiply'] ?>" value="<?php echo isset($_GET['s']) ? $_GET['s'] : '' ?>">
|
||||
<button type="submit" class="hover-anim"><i class="fa-solid fa-magnifying-glass"></i></button>
|
||||
<button type="submit" class="hover-anim btn btn-secondary"><i class="fa-solid fa-magnifying-glass"></i></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@ -15,8 +15,8 @@
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<div class="btn-control">
|
||||
<a href="<?php the_permalink('admin:ing-cat-rel-list', [$recipe->get_id()]) ?>" class="btn">Show all</a>
|
||||
<a href="<?php the_permalink('admin:ing-cat-rel-new', [$recipe->get_id()]) ?>" class="btn btn-primary">Add ingredient</a>
|
||||
<a href="<?php the_permalink('admin:ing-cat-rel-list', [$recipe->get_id()]) ?>" class="btn btn-secondary hover-anim">Show all</a>
|
||||
<a href="<?php the_permalink('admin:ing-cat-rel-new', [$recipe->get_id()]) ?>" class="btn btn-primary hover-anim">Add ingredient</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1,6 +1,6 @@
|
||||
<div class="admin-block">
|
||||
<div class="admin-block__title">Author</div>
|
||||
<div class="admin-block__content">
|
||||
<a href="<?php the_permalink('admin:user', [$author->get_id()]) ?>"><?php echo $author->field_username ?></a>
|
||||
<a href="<?php the_permalink('admin:user', [$author->get_id()]) ?>" class="recipe-author"><?php echo $author->field_username ?></a>
|
||||
</div>
|
||||
</div>
|
||||
@ -22,6 +22,9 @@
|
||||
}
|
||||
body {
|
||||
min-height: 100vh;
|
||||
font-family: var(--common-font);
|
||||
font-size: 14px;
|
||||
color: var(--common-text);
|
||||
}
|
||||
.wrapper-admin {
|
||||
display: flex;
|
||||
@ -220,6 +223,11 @@ body {
|
||||
.admin-block__table .row {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.admin-block__table a{
|
||||
color: var(--title-color);
|
||||
}
|
||||
|
||||
.admin-container.delete {
|
||||
text-align: center;
|
||||
}
|
||||
@ -289,7 +297,48 @@ body {
|
||||
|
||||
.admin-block__content .btn-control {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
input:disabled{
|
||||
background-color: #e9ecef;
|
||||
color: #6c757d;
|
||||
}
|
||||
|
||||
.admin-single__form select{
|
||||
padding: 6px;
|
||||
border-radius: 10px;
|
||||
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.admin-single__form img{
|
||||
height: 260px;
|
||||
width: 350;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.admin-single__form #instruction{
|
||||
width: 400px;
|
||||
padding: 5px;
|
||||
|
||||
}
|
||||
|
||||
.admin-single__form input[type="file"]{
|
||||
margin-bottom: 20px;
|
||||
|
||||
}
|
||||
|
||||
.recipe-author{
|
||||
color: var(--title-color);
|
||||
}
|
||||
|
||||
.admin-single__form label{
|
||||
display: inline-block;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.admin-single__form .input-checkbox{
|
||||
accent-color: #0DBB99;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user