Skip to content

Commit

Permalink
Final polished UI for apartment and building - loggedin by Manager se…
Browse files Browse the repository at this point in the history
…ssion
  • Loading branch information
tuanh00 committed Nov 25, 2024
1 parent 960e39c commit c362034
Show file tree
Hide file tree
Showing 6 changed files with 986 additions and 16 deletions.
Binary file not shown.
971 changes: 971 additions & 0 deletions .vs/prjRentalManagement/config/applicationhost.config

Large diffs are not rendered by default.

Binary file added .vs/prjRentalManagement/v17/.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion prjRentalManagement/Views/Apartment/Edit.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

<div class="form-group mt-3 mb-3">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="Save" class="btn btn-primary" />
<input type="submit" value="Save" class="btn btn-success" />
</div>
</div>
</div>
Expand Down
17 changes: 8 additions & 9 deletions prjRentalManagement/Views/Building/Create.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
@{
ViewBag.Title = "Create Building";
}
<h2>Create</h2>
<h2>Create Building</h2>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()

<div class="form-horizontal">
<h4>building</h4>
<hr />
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
<div class="form-group">
Expand All @@ -19,23 +18,23 @@
</div>
</div>

<div class="form-group">
<div class="form-group mt-2">
@Html.LabelFor(model => model.city, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.city, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.city, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
<div class="form-group mt-2">
@Html.LabelFor(model => model.province, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.province, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.province, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
<div class="form-group mt-2">
@Html.LabelFor(model => model.postalCode, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.postalCode, new { htmlAttributes = new { @class = "form-control" } })
Expand All @@ -45,8 +44,8 @@
@*If no Owner login -> Displays a dropdown list for selecting an owner*@
@if (Session["owner"] == null)
{
<div class="form-group">
@Html.LabelFor(model => model.ownerId, "ownerId", htmlAttributes: new { @class = "control-label col-md-2" })
<div class="form-group mt-2">
@Html.LabelFor(model => model.ownerId, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.DropDownList("ownerId", null, htmlAttributes: new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.ownerId, "", new { @class = "text-danger" })
Expand Down Expand Up @@ -85,9 +84,9 @@
</div>
}

<div class="form-group">
<div class="form-group mt-3 mb-3">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="Create" class="btn btn-default" />
<input type="submit" value="Create" class="btn btn-primary" />
</div>
</div>
</div>
Expand Down
12 changes: 6 additions & 6 deletions prjRentalManagement/Views/Building/Edit.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -20,39 +20,39 @@
</div>
</div>

<div class="form-group">
<div class="form-group mt-2">
@Html.LabelFor(model => model.city, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.city, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.city, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
<div class="form-group mt-2">
@Html.LabelFor(model => model.province, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.province, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.province, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
<div class="form-group mt-2">
@Html.LabelFor(model => model.postalCode, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.postalCode, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.postalCode, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
<div class="form-group mt-2">
@Html.LabelFor(model => model.ownerId, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.DropDownList("ownerId", null, htmlAttributes: new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.ownerId, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
<div class="form-group mt-2">
@Html.LabelFor(model => model.managerId, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.DropDownList("managerId", null, htmlAttributes: new { @class = "form-control" })
Expand All @@ -62,7 +62,7 @@

<div class="form-group mt-3 mb-3">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="Save" class="btn btn-primary" />
<input type="submit" value="Save" class="btn btn-success" />
</div>
</div>
</div>
Expand Down

0 comments on commit c362034

Please sign in to comment.