mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Do not allow to edit compact disc offsets added/modified dates.
This commit is contained in:
@@ -43,7 +43,7 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
|
||||
[HttpPost, ValidateAntiForgeryToken]
|
||||
public async Task<IActionResult> Edit(
|
||||
int id, [Bind("Id,AddedWhen,ModifiedWhen,Manufacturer,Model,Offset,Submissions,Agreement")]
|
||||
int id, [Bind("Id,Manufacturer,Model,Offset,Submissions,Agreement")]
|
||||
CompactDiscOffset compactDiscOffset)
|
||||
{
|
||||
if(id != compactDiscOffset.Id)
|
||||
|
||||
@@ -33,23 +33,13 @@
|
||||
// Copyright © 2011-2019 Natalia Portillo
|
||||
// ****************************************************************************/
|
||||
}
|
||||
<h4>CompactDiscOffset</h4>
|
||||
<h4>Compact disc offset</h4>
|
||||
<hr />
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<form asp-action="Edit">
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-group">
|
||||
<label asp-for="AddedWhen" class="control-label"></label>
|
||||
<input asp-for="AddedWhen" class="form-control" />
|
||||
<span asp-validation-for="AddedWhen" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModifiedWhen" class="control-label"></label>
|
||||
<input asp-for="ModifiedWhen" class="form-control" />
|
||||
<span asp-validation-for="ModifiedWhen" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Manufacturer" class="control-label"></label>
|
||||
<input asp-for="Manufacturer" class="form-control" />
|
||||
|
||||
Reference in New Issue
Block a user