Skip to content

Commit

Permalink
Fix - Correction de l'édition de document et déclaration sur le site …
Browse files Browse the repository at this point in the history
…de manage
  • Loading branch information
noelmugnier committed Dec 7, 2020
1 parent 4410f72 commit fdc7fc3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Sheaft.Web.Manage/Views/Declarations/Edit.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
</div>
</div>
<br />
<a asp-controller="Legals" asp-action="EditUserLegals" asp-route-userId="@Model.Id" class="btn btn-info">
<a asp-controller="Legals" asp-action="Edit" asp-route-id="@ViewBag.LegalId" class="btn btn-info">
Go back
</a>
</div>
12 changes: 4 additions & 8 deletions Sheaft.Web.Manage/Views/Documents/Edit.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,18 @@
@Html.LabelFor(c => c.Name, new { @class = "form-label" })
@Html.TextBoxFor(c => c.Name, null, new { @class = "form-control" })
</div>
<div class="form-group">
@Html.LabelFor(c => c.Kind, new { @class = "form-label" })
@Html.DropDownListFor(c => c.Kind, kinds, new { @class = "form-control" })
</div>
}
else
{
<div class="form-group">
@Html.LabelFor(c => c.Name, new { @class = "form-label" })
@Html.TextBoxFor(c => c.Name, null, new { @class = "form-control", @disabled = "disabled" })
</div>
<div class="form-group">
@Html.LabelFor(c => c.Kind, new { @class = "form-label" })
@Html.DropDownListFor(c => c.Kind, kinds, new { @class = "form-control", @disabled = "disabled" })
</div>
}
<div class="form-group">
@Html.LabelFor(c => c.Kind, new { @class = "form-label" })
@Html.DropDownListFor(c => c.Kind, kinds, new { @class = "form-control", @disabled = "disabled" })
</div>
<div class="form-group">
@Html.LabelFor(m => m.CreatedOn)
@Html.TextBoxFor(m => m.CreatedOn, null, new { @class = "form-control", @disabled = "disabled" })
Expand Down
2 changes: 1 addition & 1 deletion Sheaft.Web.Manage/Views/Legals/EditLegalBusiness.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
@Html.Label("ubos", "Ubos")
@Html.TextBox("ubos", uboCount, null, new { @class = "form-control", @disabled = "disabled" })
</div>
<a asp-controller="Declarations" asp-action="Edit" asp-route-declarationid="@Model.Declaration.Id" class="btn btn-info">
<a asp-controller="Declarations" asp-action="Edit" asp-route-id="@Model.Declaration.Id" class="btn btn-info">
Edit declaration
</a>
}
Expand Down

0 comments on commit fdc7fc3

Please sign in to comment.