Created
October 19, 2010 15:36
-
-
Save bojanrajkovic/634394 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Page Language="C#" MasterPageFile="~/Content/Master.master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<APAAdminUI.Models.Project>>" %> | |
<%@ Import Namespace="APAAdminUI" %> | |
<asp:Content ID="HeadContent" ContentPlaceHolderID="head" runat="server"> | |
<title>Air Power Analytics Administration Interface</title> | |
<link href="/Content/Styles/base.css" rel="stylesheet" type="text/css" /> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> | |
<script src="/Scripts/LoggedIn.js" type="text/javascript"></script> | |
<script src="/Scripts/StringFormat.js" type="text/javascript"></script> | |
</asp:Content> | |
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server"> | |
<div class="centered"> | |
<div id="header"> | |
<div id="logindisplay"> | |
[ <%= Html.ActionLink ("Log Off", "LogOff", "Home") %> ] | |
</div> | |
<div id="title"> | |
<h4>Project Administration</h4> | |
</div> | |
</div> | |
<% using (Html.BeginForm ()) { %> | |
<div> | |
<table id="search" class="padded centered"> | |
<tr> | |
<td><%= Html.Label ("projectName", "Project Name:") %></td> | |
<td><%= Html.Editor ("projectName") %></td> | |
<td><%= Html.Label ("status", "Status:") %></td> | |
<td><%= Html.DropDownList ("status", (IEnumerable<SelectListItem>) ViewData["statuses"]) %></td> | |
</tr> | |
<tr> | |
<td><%= Html.Label ("utility", "Utility:") %></td> | |
<td><%= Html.Editor ("utility") %></td> | |
<td colspan="2"><input type="button" value="Search" /></td> | |
</tr> | |
</table> | |
</div> | |
<% } %> | |
<br /> | |
<div id="projectsDiv"> | |
<table id="projects" class="centered padded hover"> | |
<tr class="blue-backed center-align"> | |
<th></th> | |
<th>Project Name</th> | |
<th>Status</th> | |
<th>Utility</th> | |
<th>Location</th> | |
</tr> | |
<% | |
foreach (var project in Model) { | |
Html.RenderPartial ("ProjectTemplate", project); | |
} | |
%> | |
</table> | |
[ <%= Html.ActionLink ("New", "Create", "Project") %> ] | |
[ <a href="#" id="open-project">Open</a> ] | |
[ <a href="#" id="delete-project">Delete</a> ] | |
</div> | |
</div> | |
</asp:Content> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment