vgquotes/Src/VideoGameQuotes.Web/Views/User/Edit.aspx

31 lines
944 B
Plaintext

<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<VideoGameQuotes.Web.Models.EditUserModel>" MasterPageFile="~/Views/Shared/Site.Master" %>
<%@ Import Namespace="Portoa.Web.Util" %>
<asp:Content runat="server" ID="Title" ContentPlaceHolderID="TitleContent">Edit User</asp:Content>
<asp:Content runat="server" ID="Main" ContentPlaceHolderID="MainContent">
<h2>Edit User</h2>
<% using (Html.BeginForm()) { %>
<%= Html.HiddenFor(user => user.Id) %>
<p>
<%= Html.LabelFor(user => user.Username) %>
<br />
<%= Html.TextBoxFor(user => user.Username) %>
</p>
<p>
<%= Html.LabelFor(user => user.IpAddress) %>
<br />
<%= Html.TextBoxFor(user => user.IpAddress) %>
</p>
<p>
<%= Html.LabelFor(user => user.Group) %>
<br />
<%= Html.DropDownListFor(user => user.Group, Model.GetGroupList(Model.Group))%>
</p>
<%= Html.Submit("Save") %>
<% } %>
</asp:Content>