Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Juan Montilla
/
TBW2223_equipo12
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6e23446c
authored
May 18, 2023
by
Manuel Ruiz Toribio
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug vegano arreglado
parent
e033d7ff
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
25 deletions
.env
app/Config/Routes.php
app/Views/pages/home.php
app/Views/pages/insertRecipe.php
.env
View file @
6e23446c
...
...
@@ -15,16 +15,16 @@
#--------------------------------------------------------------------
CI_ENVIRONMENT = production
CI_ENVIRONMENT = production
#--------------------------------------------------------------------
# APP
#--------------------------------------------------------------------
#app.baseURL = 'https://tbw2223-12-mrtjcmh.oa.r.appspot.com'
#
app.baseURL = 'https://tbw2223-12-mrtjcmh.oa.r.appspot.com'
app.baseURL = 'https://tbw2223-12-mrtjcmh.oa.r.appspot.com'
# If you have trouble with `.`, you could also use `_`.
app_baseURL = 'http://localhost'
#
app_baseURL = 'http://localhost'
# app.forceGlobalSecureRequests = false
# app.CSPEnabled = false
...
...
@@ -33,19 +33,19 @@ CI_ENVIRONMENT = production
# DATABASE
#--------------------------------------------------------------------
database.default.hostname = localhost
database.default.database = webapp
database.default.username = webapp_user
database.default.password = FOE6f35AUtbL015D
database.default.DBDriver = MySQLi
#database.default.hostname = 34.65.71.245
#database.default.hostname = localhost
#database.default.database = webapp
#database.default.username =
mrtjcmh
#database.default.password =
d7c+}rB+Ezouc<ak
#database.default.username =
webapp_user
#database.default.password =
FOE6f35AUtbL015D
#database.default.DBDriver = MySQLi
database.default.hostname = 34.65.71.245
database.default.database = webapp
database.default.username = mrtjcmh
database.default.password = d7c+}rB+Ezouc<ak
database.default.DBDriver = MySQLi
# database.default.hostname = localhost
# database.default.database = ci4
# database.default.username = root
...
...
app/Config/Routes.php
View file @
6e23446c
...
...
@@ -46,7 +46,7 @@ $routes->get('/recipes/delete/(:num)', 'RecipesController::delete/$1');
$routes
->
get
(
'/logout'
,
'User::logout'
);
// Ruta para ver una receta
//
$routes->get('/recipe/(:num)', 'RecipesController::view_recipe/$1');
$routes
->
get
(
'/recipe/(:num)'
,
'RecipesController::view_recipe/$1'
);
// Ruta para obtener una imagen de una receta dado un id
$routes
->
get
(
'recipe/image/(:num)'
,
'RecipesController::show_image/$1'
);
...
...
app/Views/pages/home.php
View file @
6e23446c
...
...
@@ -107,7 +107,7 @@
});
let
recipeHtml
=
`
<div class="card info-card sales-card" onclick="window.location.href='recipe/
${
recipe
.
id
}
'">
<div class="card info-card sales-card
recipe-card
" onclick="window.location.href='recipe/
${
recipe
.
id
}
'">
<a href="recipe/
${
recipe
.
id
}
"></a>
<div class="row flex-nowrap">
<div class="col-lg-3 col-md-4 col-sm-12 imagen-container">
...
...
app/Views/pages/insertRecipe.php
View file @
6e23446c
...
...
@@ -60,16 +60,15 @@
<option
value=
"Otoño"
>
Otoño
</option>
<option
value=
"4estaciones"
>
4 estaciones
</option>
</select>
</div>
<!-- Opción vegana -->
<div
class=
"form-group col-md-4"
>
<label
for=
"is_vegan"
class=
"chip-label"
>
Vegana
</label>
<div
class=
"custom-control custom-switch"
>
<input
type=
"checkbox"
class=
"custom-control-input"
id=
"is_vegan"
name=
"is_vegan"
>
<label
class=
"custom-control-label chip"
for=
"is_vegan"
></label>
</div>
</div>
<!-- Seleccionar vegano -->
<div
class=
"form-group col-md-4"
>
<label
for=
"is_vegan"
>
Vegana?
</label>
<select
id=
"is_vegan"
name=
"is_vegan"
class=
"form-control"
>
<option
value=
"1"
>
Si
</option>
<option
value=
"0"
>
No
</option>
</select>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment