Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Equipo 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
migudel
Equipo 3
Commits
21b777d1
Commit
21b777d1
authored
6 months ago
by
hugcubi
Browse files
Options
Downloads
Patches
Plain Diff
Añadido filtrado en reservas de usuarios
parent
da95c5fc
No related branches found
No related tags found
1 merge request
!10
Add ts types and json mocks, remove poblate scripts and fix the cascade...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
angular/RestClient/src/app/core/features/user/user-booking-list/user-booking-list.component.html
+11
-10
11 additions, 10 deletions
...s/user/user-booking-list/user-booking-list.component.html
with
11 additions
and
10 deletions
angular/RestClient/src/app/core/features/user/user-booking-list/user-booking-list.component.html
+
11
−
10
View file @
21b777d1
...
...
@@ -3,7 +3,7 @@
<div
class=
"filter-container"
>
<label
for=
"filter"
>
Filtrar por estado:
</label>
<select
id=
"filter"
[(ngModel)]=
"selectedState"
(change)=
"updateBookings()"
>
<select
id=
"filter"
[(ngModel)]=
"selectedState"
>
<option
value=
"all"
>
Todas
</option>
<option
value=
"active"
>
Reservas activas
</option>
<option
value=
"inactive"
>
Reservas inactivas
</option>
...
...
@@ -11,14 +11,15 @@
</div>
<ul
class=
"booking-list"
>
@for( booking of bookings; track booking.id) {
<li
class=
"booking-item"
>
<span
class=
"booking-id"
>
Reserva #{{ booking.id }}
</span>
<span
class=
"booking-dates"
>
{{ booking.startDate }} - {{ booking.endDate }}
</span
>
<span
class=
"booking-status"
>
{{ genBookingState(booking) }}
</span>
</li>
}
<ng-container
*ngFor=
"let booking of bookings"
>
<li
*ngIf=
"selectedState === 'all' ||
(selectedState === 'active' && genBookingState(booking) === 'Reserva activa') ||
(selectedState === 'inactive' && genBookingState(booking) === 'Reserva inactiva')"
class=
"booking-item"
>
<span
class=
"booking-id"
>
Reserva #{{ booking.id }}
</span>
<span
class=
"booking-dates"
>
{{ booking.startDate }} - {{ booking.endDate }}
</span>
<span
class=
"booking-status"
>
{{ genBookingState(booking) }}
</span>
</li>
</ng-container>
</ul>
</div>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment