File tree Expand file tree Collapse file tree 7 files changed +29
-10
lines changed
Expand file tree Collapse file tree 7 files changed +29
-10
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ COPY . /src
2424WORKDIR /src/Nesteo.Server
2525
2626# Restore packages
27- RUN npm install --with-dev
27+ RUN npm install
2828
2929# Run build task
3030RUN npx grunt default
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ public IAsyncEnumerable<InspectionPreview> GetInspectionPreviewsByNestingBoxIdAs
204204 /// </summary>
205205 [ HttpGet ( "csv" ) ]
206206 [ ProducesResponseType ( StatusCodes . Status200OK ) ]
207- public Task < IActionResult > ExportNestingBoxAsync ( )
207+ public Task < IActionResult > ExportNestingBoxesAsync ( )
208208 {
209209 string fileDownloadName = $ "nesting-boxes-export-{ DateTime . Now } .csv";
210210 IAsyncEnumerable < string > records = _nestingBoxService . ExportAllRowsAsync ( ) ;
Original file line number Diff line number Diff line change 1+ @page " /data"
2+ @model DataModel
3+ @{
4+ ViewData [" Title" ] = " Data" ;
5+ }
6+
7+ <p >Use the buttons below to download all nesting boxes or inspections as CSV file for use with other tools.</p >
8+
9+ <a class =" btn btn-primary" asp-controller =" NestingBoxes" asp-action =" ExportNestingBoxesAsync" >Download nesting boxes</a >
10+ <a class =" btn btn-primary" asp-controller =" Inspections" asp-action =" ExportInspectionsAsync" >Download inspections</a >
11+
Original file line number Diff line number Diff line change 1+ using Microsoft . AspNetCore . Mvc . RazorPages ;
2+
3+ namespace Nesteo . Server . Pages . Management
4+ {
5+ public class DataModel : PageModel { }
6+ }
Original file line number Diff line number Diff line change 33}
44
55<div class =" row" >
6- <div class =" col-md-3" >
6+ <div class =" col-md-3 mb-4 " >
77 <partial name =" _ProfileNav" />
88 </div >
99 <div class =" col-md-9" >
Original file line number Diff line number Diff line change 2727 @foreach ( UserEntity user in Model .Users )
2828 {
2929 <tr >
30- <th scope =" row" >@user.UserName </th >
31- <td >@user.FirstName </td >
32- <td >@user.LastName </td >
33- <td >@( user .Email ?? " -" ) </td >
34- <td >@( user .PhoneNumber ?? " -" ) </td >
35- <td >ACTIONS </td >
30+ <th class =" align-middle" scope =" row" >@user.UserName </th >
31+ <td class =" align-middle" >@user.FirstName </td >
32+ <td class =" align-middle" >@user.LastName </td >
33+ <td class =" align-middle" >@( user .Email ?? " -" ) </td >
34+ <td class =" align-middle" >@( user .PhoneNumber ?? " -" ) </td >
35+ <td class =" align-middle" >
36+ <a class =" btn btn-primary btn-sm" asp-page =" /Management/EditUser" asp-route-userName =" @user.UserName" >Edit </a >
37+ </td >
3638 </tr >
3739 }
3840 <tr >
Original file line number Diff line number Diff line change 2020 <a class =" nav-link" asp-page =" /Management/Users" >Users</a >
2121 </li >
2222 <li class =" nav-item" >
23- <a class =" nav-link" asp-page =" " >Data</a >
23+ <a class =" nav-link" asp-page =" /Management/Data " >Data</a >
2424 </li >
2525 </ul >
2626 <ul class =" navbar-nav" >
You can’t perform that action at this time.
0 commit comments