vgquotes/Src/VideoGameQuotes.Web/Views/Admin/Create.aspx
2011-02-19 23:15:36 +00:00

30 lines
1.1 KiB
Plaintext

<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<VideoGameQuotes.Web.Models.CreateAdminModel>" MasterPageFile="~/Views/Shared/Site.Master" %>
<%@ Import Namespace="Portoa.Web.Util" %>
<asp:Content runat="server" ID="Title" ContentPlaceHolderID="TitleContent">Create Admin</asp:Content>
<asp:Content runat="server" ID="Main" ContentPlaceHolderID="MainContent">
<h2>Create Admin</h2>
<%= Html.ValidationSummary("Some errors occurred") %>
<% using (Html.BeginForm()) { %>
<p>
<%= Html.LabelFor(model => model.UserId) %> <%= Html.ValidationMessageFor(model => model.UserId) %>
<br />
<%= Html.DropDownListFor(model => model.UserId, Model.GetUserList()) %>
</p>
<p>
<%= Html.LabelFor(model => model.Username) %> <%= Html.ValidationMessageFor(model => model.Username) %>
<br />
<%= Html.TextBoxFor(model => model.Username) %>
</p>
<p>
<%= Html.LabelFor(model => model.Password) %> <%= Html.ValidationMessageFor(model => model.Password) %>
<br />
<%= Html.PasswordFor(model => model.Password) %>
</p>
<%= Html.Submit("Create Admin") %>
<% } %>
</asp:Content>