Permalink
Browse files

css exploration

  • Loading branch information...
ehelin committed May 30, 2018
1 parent 6d36bd4 commit 0498fda53ac41402a9595560f043181b465a3e22
@@ -2,10 +2,10 @@
@{ Html.RenderPartial("Title"); }
<div id="pageTitle">
<p>Location Details</p>
<div id="pageTitle" class="foreground textColor text">
<h4>Location Details</h4>
</div>
<div id="pageBodyDetailForm">
<div id="pageBodyDetailForm" class="foreground textColor text">
@{bool modelLocationNameExists = Model != null && !string.IsNullOrEmpty(Model.LocationName);}
@{bool modelLocationIdExists = Model != null && Model.LocationiId > 0;}
@{bool modelLocationDetailsIdExists = Model != null && Model.LocationDetails != null && Model.LocationDetails.LocationDetailId > 0;}
@@ -29,7 +29,7 @@
<label>Food</label>
@Html.TextBox("Model.LocationDetails.Food", modelFoodExists ? Model.LocationDetails.Food : null)
<br />
<input type="submit" value="Submit" />
<input type="submit" value="Submit" class="foreground textColor"/>
@Html.Hidden("Model.LocationiId", modelLocationIdExists ? Model.LocationiId : 0);
@Html.Hidden("Model.LocationDetails.LocationDetailId", modelLocationDetailsIdExists ? Model.LocationDetails.LocationDetailId : 0);
@Html.Hidden("Model.isEdit", Model.isEdit);
@@ -54,6 +54,10 @@
}
}
</div>
<div id="pageNavigation">
@Html.ActionLink("Summary", "Index", "Location")
</div>
<br />
<div id="pageNavigation" class="foreground textColor text">
@Html.ActionLink("Summary", "Index", "Location",
new {
@class = "foreground textColor text"
})
</div>
@@ -2,22 +2,43 @@
@{ Html.RenderPartial("Title"); }
<div id="pageTitle">
<p>Location Summary</p>
<div id="pageTitle" class="foreground textColor text">
<h4>Location Summary</h4>
</div>
<div id="pageBodyList">
<div id="pageBodyList" class="foreground textColor text">
<ul>
@foreach (LocationModel location in Model.Locations)
{
<li>
<input type="button" value="Edit" onclick="location.href='@Url.Action("Details", "Location", new { id = @location.LocationiId, isEdit = true, isDelete = false })';" />
<input type="button" value="Delete" onclick="location.href='@Url.Action("Delete", "Location", new { id = @location.LocationiId })';" />
@Html.ActionLink(location.LocationName, "Details", "Location", new { id = @location.LocationiId }, null)
<input type="button" value="Edit" class="foreground textColor"
onclick="location.href='@Url.Action("Details",
"Location",
new {
id = @location.LocationiId,
isEdit = true,
isDelete = false,
@class = "foreground textColor text"
})';" />
<input type="button" value="Delete" class="foreground textColor"
onclick="location.href='@Url.Action("Delete",
"Location",
new {
id = @location.LocationiId
})';" />
@Html.ActionLink(location.LocationName, "Details",
"Location",
new {
id = @location.LocationiId
}, null)
</li>
}
</ul>
</div>
<div id="pageNavigation">
<input type="button" value="New" onclick="location.href='@Url.Action("Details", "Location", new { id = 0, isEdit = false, isDelete = false })';" />
<div id="pageNavigation" class="foreground textColor">
<input type="button" value="New" class="foreground textColor"
onclick="location.href='@Url.Action("Details",
"Location",
new { id = 0, isEdit = false, isDelete = false })';" />
</div>
@@ -2,5 +2,7 @@
ViewData["Title"] = "The Awesome Location Manager' (TALM)";
}
<h2>The Awesome Location Manager (TALM)</h2>
<div class="foreground textCenter textColor">
<h2>The Awesome Location Manager (TALM)</h2>
</div>
@@ -4,8 +4,11 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - FullStackDeveloper</title>
<link href="@Url.Content("~/css/desktopsite.css")" rel="stylesheet" type="text/css" />
</head>
<body>
<body class="background">
<div>
@RenderBody()
</div>
@@ -1 +1,31 @@
.background {
background-color: #695DBD
}
.foreground {
background-color: white;
}
.textCenter {
margin: auto;
width: 30%;
text-align: center;
}
.textColor {
color: #695DBD;
}
.text {
font-family: Arial;
font-size: medium;
}
.accent {
background-color: #695DBD
}
/*.button {
border: solid;
border-color: #695DBD;
}*/

0 comments on commit 0498fda

Please sign in to comment.