Browse Source

Add pagination on Upcoming event list for Home page

pull/41/head
Berkan Sasmaz 5 years ago
parent
commit
0ff46e0db2
  1. 11
      src/EventHub.Web/Pages/Events/Index.cshtml
  2. 9
      src/EventHub.Web/Pages/Index.cshtml

11
src/EventHub.Web/Pages/Events/Index.cshtml

@ -41,7 +41,7 @@
<form method="get" id="EventListFilterForm"> <form method="get" id="EventListFilterForm">
<div class="col-md-auto"> <div class="col-md-auto">
<div class="row filter-select"> <div class="row filter-select">
<div class="col-4 pr-0"> <div class="col-8 pr-0">
<div class="form-label-group"> <div class="form-label-group">
<input type="text" id="WhenInput" class="form-control" placeholder="When"> <input type="text" id="WhenInput" class="form-control" placeholder="When">
<label for="WhenInput">When</label> <label for="WhenInput">When</label>
@ -56,15 +56,6 @@
<option value="false">In Person</option> <option value="false">In Person</option>
</select> </select>
</div> </div>
<div class="col-4">
@* ToDo: System of tags or categories needs to be implemented *@
<select class="form-select" aria-label="Software">
<option value="" selected>Category</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
</div>
</div> </div>
</div> </div>
</form> </form>

9
src/EventHub.Web/Pages/Index.cshtml

@ -101,15 +101,8 @@
@await Component.InvokeAsync(typeof(EventsAreaViewComponent), new @await Component.InvokeAsync(typeof(EventsAreaViewComponent), new
{ {
minDate = Clock.Now, minDate = Clock.Now,
maxResultCount = 15, maxResultCount = 15
isPagination = false
}) })
<div class="row">
<div class="col text-center">
<a href="@Url.Page("/Events/Index")" class="btn btn-secondary btn-lg">See All Events</a>
</div>
</div>
</div> </div>

Loading…
Cancel
Save