Ignore:
Timestamp:
08/22/24 01:46:17 (5 weeks ago)
Author:
ElenaMoskova <elena.moskova99@…>
Branches:
main
Children:
72b1da2
Parents:
d6040ef
Message:

Аsync, access permission, and other fixes.

Regulation of access permissions. Which fields can be accessed by different users.

Location:
PostgreSqlDotnetCore/Views
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • PostgreSqlDotnetCore/Views/Blog/Create.cshtml

    rd6040ef r57fc402  
    1717        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
    1818
    19         <div class="form-group">
     19       @* <div class="form-group">
    2020            @Html.LabelFor(model => model.date_askes, htmlAttributes: new { @class = "control-label col-md-2" })
    2121            <div class="col-md-10">
     
    2424            </div>
    2525        </div>
     26        *@
     27      @*  <div class="form-group">
     28            @Html.LabelFor(model => model.date_askes, htmlAttributes: new { @class = "control-label col-md-2" })
     29            <div class="col-md-10">
     30                @Html.EditorFor(model => model.date_askes, new { htmlAttributes = new { @class = "form-control", @type = "date", value = DateTime.UtcNow.ToString("yyyy-MM-dd") } })
     31                @Html.ValidationMessageFor(model => model.date_askes, "", new { @class = "text-danger" })
     32            </div>
     33        </div>
     34        *@
     35
     36       
     37
     38
     39       
    2640
    2741        <div class="form-group">
  • PostgreSqlDotnetCore/Views/City/Index.cshtml

    rd6040ef r57fc402  
    1616            @Html.DisplayNameFor(model => model.name)
    1717        </th>
    18    
     18
    1919        <th></th>
    2020
    2121    </tr>
    2222
    23 @foreach (var item in Model) {
    24     <tr>
    25         <td>
    26             @Html.DisplayFor(modelItem => item.name)
    27         </td>
    28      
     23    @foreach (var item in Model)
     24    {
     25        <tr>
     26            <td>
     27                @Html.DisplayFor(modelItem => item.name)
     28            </td>
    2929
    30         <td>
    31             @Html.ActionLink("Edit", "Edit", new { id = item.id }) |
    32             @Html.ActionLink("Details", "Details", new { id = item.id }) |
    33             @Html.ActionLink("Delete", "Delete", new { id = item.id })
    34         </td>
    35     </tr>
    36 }
     30
     31            <td>
     32                @Html.ActionLink("Edit", "Edit", new { id = item.id }) |
     33                @Html.ActionLink("Details", "Details", new { id = item.id }) |
     34                @Html.ActionLink("Delete", "Delete", new { id = item.id })
     35            </td>
     36        </tr>
     37    }
    3738
    3839</table>
  • PostgreSqlDotnetCore/Views/Shared/_Layout.cshtml

    rd6040ef r57fc402  
    5050                                    <a class="nav-link text-dark" asp-area="" asp-controller="City" asp-action="Index">Manage Cities</a>
    5151                                </li>
     52                               
    5253                                <li class="nav-item">
    5354                                    <a class="nav-link text-dark" asp-area="" asp-controller="Blog" asp-action="Index">BlogPost</a>
    5455                                </li>
    5556                            }
     57
     58                           
    5659                        }
     60
     61                       
     62                       
     63
     64
     65                       
    5766                        <li class="nav-item">
    5867                            <a class="nav-link text-dark" asp-area="" asp-controller="VetCenter" asp-action="Index">VetCenters</a>
  • PostgreSqlDotnetCore/Views/VetCenter/Index.cshtml

    rd6040ef r57fc402  
    99<h2>Vet Center</h2>
    1010
    11 <p>
     11@*<p>
    1212    @Html.ActionLink("Create New", "Create")
    1313</p>
     14*@
     15@if (ViewBag.hasAccess != null && ViewBag.hasAccess == true)
     16{
     17    <p>
     18        @Html.ActionLink("Create New", "Create")
     19    </p>
     20}
     21
    1422<table class="table">
    1523    <tr>
Note: See TracChangeset for help on using the changeset viewer.