1 | @using Microsoft.AspNetCore.Antiforgery
|
---|
2 | @model List<Models.DataTransferObjects.Administrator.AdministratorCompaniesDTO>
|
---|
3 | @inject IAntiforgery antiforgery
|
---|
4 |
|
---|
5 |
|
---|
6 | <div class="row">
|
---|
7 | <div class="col-md-12 pt-3">
|
---|
8 | <div class="card">
|
---|
9 | <div class="card-header text-white ">
|
---|
10 | <div class="card-title text-black">All Companies</div>
|
---|
11 | </div>
|
---|
12 | <div>
|
---|
13 | <div class="card-body">
|
---|
14 | <div class="table-responsive">
|
---|
15 | <table class="table table-striped my-4 w-100" id="coachesTable">
|
---|
16 | <thead>
|
---|
17 | <tr>
|
---|
18 | <th>Company Name</th>
|
---|
19 | <th>Company Email</th>
|
---|
20 | <th>Business User Name</th>
|
---|
21 | <th>Business User Email</th>
|
---|
22 | <th>Is Approved</th>
|
---|
23 | <th></th>
|
---|
24 | </tr>
|
---|
25 | </thead>
|
---|
26 | <tbody>
|
---|
27 | @foreach (var company in Model)
|
---|
28 | {
|
---|
29 | <tr>
|
---|
30 | <td>@company.CompanyName</td>
|
---|
31 | <td>@company.CompanyEmail</td>
|
---|
32 | <td>@company.BusinessUserName</td>
|
---|
33 | <td>@company.BusinessUserEmail</td>
|
---|
34 | <td><i class="@(company.IsApproved ? "fa-solid fa-check-double": "fa-solid fa-user-xmark")"></i></td>
|
---|
35 | <td>
|
---|
36 | @Html.ActionLink("", "Action", "Controller", new{@companyId = company.CompanyId}, new {
|
---|
37 | @class = "mb-1 btn btn-warning far fa-edit", @title = "Edit"
|
---|
38 | })
|
---|
39 |
|
---|
40 | @if(!company.IsApproved){
|
---|
41 | @Html.ActionLink("", "ApproveCompany", "Administrator", new{@companyId = company.CompanyId}, new {
|
---|
42 | @class = "mb-1 btn btn-success fa-solid fa-check-double", @title = "Approve Company"
|
---|
43 | })
|
---|
44 | }
|
---|
45 | @*<a class="mb-1 btn btn-success fa-solid fa-check-double" title="Approve Company" id="approve" value="@company.CompanyId"></a>*@
|
---|
46 | </td>
|
---|
47 | </tr>
|
---|
48 |
|
---|
49 | }
|
---|
50 | </tbody>
|
---|
51 | </table>
|
---|
52 | </div>
|
---|
53 | </div>
|
---|
54 | </div>
|
---|
55 |
|
---|
56 | </div>
|
---|
57 | </div>
|
---|
58 | </div>
|
---|
59 |
|
---|
60 |
|
---|