Initial import
This commit is contained in:
19
web/Views/Account/AddRole.aspx
Normal file
19
web/Views/Account/AddRole.aspx
Normal file
@ -0,0 +1,19 @@
|
||||
<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h2>Ajout d'un role</h2>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
|
||||
<%= Html.ValidationSummary() %>
|
||||
<% using(Html.BeginForm("DoAddRole", "Account")) %>
|
||||
<% { %>
|
||||
Nom du rôle :
|
||||
<%= Html.TextBox( "RoleName" ) %>
|
||||
<%= Html.ValidationMessage("RoleName", "*") %><br/>
|
||||
<input class="actionlink" type="submit"/>
|
||||
<% } %>
|
||||
</asp:Content>
|
||||
|
||||
|
34
web/Views/Account/Admin.aspx
Normal file
34
web/Views/Account/Admin.aspx
Normal file
@ -0,0 +1,34 @@
|
||||
<%@ Page Title="Administration" Language="C#" Inherits="System.Web.Mvc.ViewPage<NewAdminModel>" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h2>Liste des administrateurs </h2>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<div>
|
||||
|
||||
<table>
|
||||
<% foreach (string u in (string[])ViewData["admins"]) { %>
|
||||
<tr><td>
|
||||
<%= u %> </td><td><%= Html.ActionLink("Remove","RemoveFromRole",new { username = u, rolename="Admin", returnUrl = Request.Url.PathAndQuery })%>
|
||||
</td></tr>
|
||||
|
||||
<% } %>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h2>Ajout d'un administrateur
|
||||
</h2>
|
||||
<p><%= Html.ValidationSummary() %> </p>
|
||||
|
||||
<% using ( Html.BeginForm("Admin", "Account") ) { %>
|
||||
|
||||
<%= Html.LabelFor(model => model.UserName) %> :
|
||||
<%= Html.DropDownListFor(model => model.UserName, (List<SelectListItem>)ViewData["useritems"] ) %>
|
||||
<%= Html.ValidationMessage("UserName", "*") %>
|
||||
|
||||
<input type="submit"/>
|
||||
<% } %>
|
||||
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
26
web/Views/Account/ChangePassword.aspx
Normal file
26
web/Views/Account/ChangePassword.aspx
Normal file
@ -0,0 +1,26 @@
|
||||
<%@ Page Title="Change your Password" Language="C#" Inherits="System.Web.Mvc.ViewPage<ChangePasswordModel>" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
|
||||
<%= Html.ValidationSummary("Modification de mot de passe") %>
|
||||
<% using(Html.BeginForm("ChangePassword", "Account")) { %>
|
||||
<label for="UserName">User Name:</label>
|
||||
<%= Html.TextBox( "UserName" ) %>
|
||||
<%= Html.ValidationMessage("UserName", "*") %><br/>
|
||||
<label for="OldPassword">Old password:</label>
|
||||
<%= Html.Password( "OldPassword" ) %>
|
||||
<%= Html.ValidationMessage("OldPassword", "*") %><br/>
|
||||
<label for="NewPassword">New password:</label>
|
||||
<%= Html.Password( "NewPassword" ) %>
|
||||
<%= Html.ValidationMessage("NewPassword", "*") %><br/>
|
||||
<label for="ConfirmPassword">Confirm password:</label>
|
||||
<%= Html.Password( "ConfirmPassword" ) %>
|
||||
<%= Html.ValidationMessage("ConfirmPassword", "*") %>
|
||||
<input type="submit"/>
|
||||
<% } %>
|
||||
|
||||
</asp:Content>
|
||||
|
||||
|
8
web/Views/Account/ChangePasswordSuccess.aspx
Normal file
8
web/Views/Account/ChangePasswordSuccess.aspx
Normal file
@ -0,0 +1,8 @@
|
||||
<%@ Page Title="Successfully changed your password" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<div>
|
||||
<%= Html.ActionLink("Register","Register")%></div>
|
||||
<div><%= Html.ActionLink("ChangePassword","ChangePassword")%></div>
|
||||
</asp:Content>
|
8
web/Views/Account/Index.aspx
Normal file
8
web/Views/Account/Index.aspx
Normal file
@ -0,0 +1,8 @@
|
||||
<%@ Page Title="Comptes utilisateur - Index" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h2>Comptes utilisteur</h2>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
</asp:Content>
|
28
web/Views/Account/Login.aspx
Normal file
28
web/Views/Account/Login.aspx
Normal file
@ -0,0 +1,28 @@
|
||||
<%@ Page Title="Login" Language="C#" Inherits="System.Web.Mvc.ViewPage<LoginModel>" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
|
||||
<div>
|
||||
<%= Html.ValidationSummary("Ouverture de session") %>
|
||||
<% using(Html.BeginForm("DoLogin", "Account")) %>
|
||||
<% { %>
|
||||
<%= Html.LabelFor(model => model.UserName) %>
|
||||
<%= Html.TextBox( "UserName" ) %>
|
||||
<%= Html.ValidationMessage("UserName", "*") %><br/>
|
||||
|
||||
<%= Html.LabelFor(model => model.Password) %>
|
||||
<%= Html.Password( "Password" ) %>
|
||||
<%= Html.ValidationMessage("Password", "*") %><br/>
|
||||
|
||||
<label for="RememberMe">Se souvenir du mot de passe:</label>
|
||||
<%= Html.CheckBox("RememberMe") %>
|
||||
<%= Html.ValidationMessage("RememberMe", "") %><br/>
|
||||
<%= Html.Hidden("returnUrl",ViewData["returnUrl"]) %>
|
||||
<!-- Html.AntiForgeryToken() -->
|
||||
<input type="submit"/>
|
||||
<% } %>
|
||||
</div>
|
||||
<div>
|
||||
<%= Html.ActionLink("S'enregistrer","Register",new {returnUrl=ViewData["returnUrl"]}) %></div>
|
||||
</asp:Content>
|
47
web/Views/Account/Profile.aspx
Normal file
47
web/Views/Account/Profile.aspx
Normal file
@ -0,0 +1,47 @@
|
||||
<%@ Page Title="Profile" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<yavscModel.RolesAndMembers.Profile>" %>
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
<title><%=ViewData["UserName"]%> : Profile - <%=YavscHelpers.SiteName%></title>
|
||||
</asp:Content>
|
||||
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
|
||||
<h1><%=ViewData["UserName"]%> : Profile - <a href="/"><%=YavscHelpers.SiteName%></a></h1>
|
||||
<p><%= Html.ActionLink("Changer de mot de passe","ChangePassword", "Account")%></p>
|
||||
</asp:Content>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<%= Html.ValidationSummary() %>
|
||||
<% using(Html.BeginForm("UpdateProfile", "Account", FormMethod.Post, new { enctype = "multipart/form-data" })) %>
|
||||
<% { %>
|
||||
|
||||
<table class="layout">
|
||||
<tr><td align="right">
|
||||
<%= Html.LabelFor(model => model.Address) %></td><td>
|
||||
<%= Html.TextBox("Address") %>
|
||||
<%= Html.ValidationMessage("Address", "*") %></td></tr>
|
||||
<tr><td align="right">
|
||||
<%= Html.LabelFor(model => model.CityAndState) %></td><td>
|
||||
<%= Html.TextBox("CityAndState") %>
|
||||
<%= Html.ValidationMessage("CityAndState", "*") %></td></tr>
|
||||
<tr><td align="right">
|
||||
<%= Html.LabelFor(model => model.Country) %></td><td>
|
||||
<%= Html.TextBox("Country") %>
|
||||
<%= Html.ValidationMessage("Country", "*") %></td></tr>
|
||||
<tr><td align="right">
|
||||
<%= Html.LabelFor(model => model.WebSite) %></td><td>
|
||||
<%= Html.TextBox("WebSite") %>
|
||||
<%= Html.ValidationMessage("WebSite", "*") %></td></tr>
|
||||
<tr><td align="right">
|
||||
<%= Html.LabelFor(model => model.BlogVisible) %></td><td>
|
||||
<%= Html.CheckBox("BlogVisible") %>
|
||||
<%= Html.ValidationMessage("BlogVisible", "*") %></td></tr>
|
||||
<tr><td align="right">
|
||||
<%= Html.LabelFor(model => model.BlogTitle) %></td><td>
|
||||
<%= Html.TextBox("BlogTitle") %>
|
||||
<%= Html.ValidationMessage("BlogTitle", "*") %></td></tr>
|
||||
<tr><td align="right">
|
||||
Avatar </td><td> <img class="avatar" src="/Blogs/Avatar?user=<%=ViewData["UserName"]%>" alt=""/>
|
||||
<input type="file" id="AvatarFile" name="AvatarFile"/>
|
||||
<%= Html.ValidationMessage("AvatarFile", "*") %></td></tr>
|
||||
|
||||
</table>
|
||||
<input type="submit"/>
|
||||
<% } %>
|
||||
</asp:Content>
|
45
web/Views/Account/Register.aspx
Normal file
45
web/Views/Account/Register.aspx
Normal file
@ -0,0 +1,45 @@
|
||||
<%@ Page Title="Register" Language="C#" Inherits="Yavsc.RegisterPage" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h2> Créez votre compte utilisateur <%= Html.Encode(YavscHelpers.SiteName) %> </h2>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<%= Html.ValidationSummary() %>
|
||||
<% using(Html.BeginForm("Register", "Account")) %>
|
||||
<% { %>
|
||||
<table class="layout">
|
||||
<tr><td align="right">
|
||||
<%= Html.LabelFor(model => model.UserName) %>
|
||||
</td><td>
|
||||
<%= Html.TextBox( "UserName" ) %>
|
||||
<%= Html.ValidationMessage("UserName", "*") %></td></tr>
|
||||
<tr><td align="right">
|
||||
<%= Html.LabelFor(model => model.Password) %>
|
||||
</td><td>
|
||||
<%= Html.Password( "Password" ) %>
|
||||
<%= Html.ValidationMessage("Password", "*") %>
|
||||
</td></tr>
|
||||
<tr><td align="right">
|
||||
<%= Html.LabelFor(model => model.ConfirmPassword) %>
|
||||
</td><td>
|
||||
<%= Html.Password( "ConfirmPassword" ) %>
|
||||
<%= Html.ValidationMessage("ConfirmPassword", "*") %>
|
||||
</td></tr>
|
||||
<tr><td align="right">
|
||||
<%= Html.LabelFor(model => model.Email) %>
|
||||
</td><td>
|
||||
<%= Html.TextBox( "Email" ) %>
|
||||
<%= Html.ValidationMessage("Email", "*") %>
|
||||
</td></tr>
|
||||
</table>
|
||||
<br/>
|
||||
<%= Html.Hidden("returnUrl",ViewData["returnUrl"]) %>
|
||||
|
||||
<input type="submit"/>
|
||||
<% } %>
|
||||
</asp:Content>
|
||||
|
||||
|
17
web/Views/Account/RegistrationPending.aspx
Normal file
17
web/Views/Account/RegistrationPending.aspx
Normal file
@ -0,0 +1,17 @@
|
||||
<%@ Page Title="Comptes utilisateur - Index" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h2>Comptes utilisteur</h2>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<p>
|
||||
Votre compte utilisateur
|
||||
<%= Html.Encode(YavscHelpers.SiteName) %>
|
||||
a été créé, un e-mail de validation de votre compte a été envoyé a l'adresse fournie:<br/>
|
||||
<<%= Html.Encode(ViewData["email"]) %>>.<br/>
|
||||
Vous devriez le recevoir rapidement.<br/>
|
||||
Pour valider votre compte, suivez le lien indiqué dans cet e-mail.
|
||||
</p>
|
||||
<a class="actionlink" href="<%=ViewData["ReturnUrl"]%>">Retour</a>
|
||||
</asp:Content>
|
22
web/Views/Account/RemoveRoleQuery.aspx
Normal file
22
web/Views/Account/RemoveRoleQuery.aspx
Normal file
@ -0,0 +1,22 @@
|
||||
<%@ Page Title="User removal" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h2>Suppression d'un rôle</h2>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<div>
|
||||
<%= Html.ValidationSummary() %>
|
||||
<% using ( Html.BeginForm("RemoveRole") ) { %>
|
||||
Supprimer le rôle
|
||||
<%= Html.Encode( ViewData["roletoremove"] ) %> ?
|
||||
<br/>
|
||||
<input type="hidden" name="rolename" value="<%=ViewData["roletoremove"]%>"/>
|
||||
<input class="actionlink" type="submit" name="submitbutton" value="Supprimer"/>
|
||||
<input class="actionlink" type="submit" name="submitbutton" value="Annuler" />
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
</asp:Content>
|
||||
|
||||
|
22
web/Views/Account/RemoveUserQuery.aspx
Normal file
22
web/Views/Account/RemoveUserQuery.aspx
Normal file
@ -0,0 +1,22 @@
|
||||
<%@ Page Title="User removal" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h2>Suppression d'un utilisateur</h2>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<div>
|
||||
<%= Html.ValidationSummary() %>
|
||||
<% using ( Html.BeginForm("RemoveUser","Account") ) { %>
|
||||
Supprimer l'utilisateur
|
||||
<%= Html.Encode( ViewData["usertoremove"] ) %> ?
|
||||
<br/>
|
||||
<input type="hidden" name="username" value="<%=ViewData["usertoremove"]%>"/>
|
||||
<input class="actionlink" type="submit" name="submitbutton" value="Supprimer"/>
|
||||
<input class="actionlink" type="submit" name="submitbutton" value="Annuler" />
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
</asp:Content>
|
||||
|
||||
|
23
web/Views/Account/RoleList.aspx
Normal file
23
web/Views/Account/RoleList.aspx
Normal file
@ -0,0 +1,23 @@
|
||||
<%@ Page Title="Role list" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h2>Liste des rôles</h2>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
Roles:
|
||||
<ul>
|
||||
<%foreach (string rolename in (string[]) Model){ %>
|
||||
|
||||
<li><%=rolename%> <% if (Roles.IsUserInRole("Admin")) { %>
|
||||
<%= Html.ActionLink("Supprimer","RemoveRole", new { rolename = rolename }, new { @class="actionlink" } ) %>
|
||||
<% } %></li>
|
||||
<% } %>
|
||||
|
||||
</ul>
|
||||
<% if (Roles.IsUserInRole("Admin")) { %>
|
||||
<%= Html.ActionLink("Ajouter un rôle","AddRole", null, new { @class="actionlink" } ) %>
|
||||
<% } %>
|
||||
</asp:Content>
|
||||
|
||||
|
22
web/Views/Account/UserList.aspx
Normal file
22
web/Views/Account/UserList.aspx
Normal file
@ -0,0 +1,22 @@
|
||||
<%@ Page Title="User List" Language="C#" Inherits="System.Web.Mvc.ViewPage<System.Web.Security.MembershipUserCollection>" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h2>Liste des utilisateurs</h2>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
|
||||
<ul>
|
||||
<%foreach (MembershipUser user in Model){ %>
|
||||
|
||||
<li><%=user.UserName%> <%=user.Email%> <%=(!user.IsApproved)?"(Not Approuved)":""%> <%=user.IsOnline?"Online":"Offline"%>
|
||||
<% if (Roles.IsUserInRole("Admin")) { %>
|
||||
<%= Html.ActionLink("Supprimer","RemoveUserQuery", new { username = user.UserName }, new { @class="actionlink" } ) %>
|
||||
<% } %>
|
||||
</li>
|
||||
|
||||
<% }%>
|
||||
</ul>
|
||||
|
||||
</asp:Content>
|
||||
|
8
web/Views/Account/Validate.aspx
Normal file
8
web/Views/Account/Validate.aspx
Normal file
@ -0,0 +1,8 @@
|
||||
<%@ Page Title="Comptes utilisateur - Validation" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h2>Validation d'un compte utilisateur</h2>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
</asp:Content>
|
13
web/Views/BackOffice/BackupCreated.aspx
Normal file
13
web/Views/BackOffice/BackupCreated.aspx
Normal file
@ -0,0 +1,13 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<Export>" %>
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
|
||||
<h1>Backup created</h1>
|
||||
</asp:Content>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div><h2>Error message </h2> <%= Html.Encode(Model.Error) %></div>
|
||||
<div><h2>Message </h2> <%= Html.Encode(Model.Message) %></div>
|
||||
<div><h2>File name</h2> <%= Html.Encode(Model.FileName) %></div>
|
||||
<div><h2>Exit Code</h2> <%= Html.Encode(Model.ExitCode) %></div>
|
||||
|
||||
</asp:Content>
|
12
web/Views/BackOffice/Backups.aspx
Normal file
12
web/Views/BackOffice/Backups.aspx
Normal file
@ -0,0 +1,12 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<DataAccess>" %>
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
<title>Backups</title>
|
||||
</asp:Content>
|
||||
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
|
||||
<h1>Backups</h1>
|
||||
</asp:Content>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
|
||||
<%=Html.ActionLink("Create a database backup", "CreateBackup", "BackOffice")%><br/>
|
||||
<%=Html.ActionLink("Restaurations", "Restore", "BackOffice")%><br/>
|
||||
</asp:Content>
|
27
web/Views/BackOffice/CreateBackup.aspx
Normal file
27
web/Views/BackOffice/CreateBackup.aspx
Normal file
@ -0,0 +1,27 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<DataAccess>" %>
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<%= Html.ValidationSummary("CreateBackup") %>
|
||||
<% using (Html.BeginForm("CreateBackup","BackOffice")) { %>
|
||||
|
||||
<%= Html.LabelFor(model => model.Host) %>:
|
||||
<%= Html.TextBox( "Host" ) %>
|
||||
<%= Html.ValidationMessage("Host", "*") %><br/>
|
||||
<%= Html.LabelFor(model => model.Port) %>:
|
||||
<%= Html.TextBox( "Port" ) %>
|
||||
<%= Html.ValidationMessage("Port", "*") %><br/>
|
||||
<%= Html.LabelFor(model => model.Dbname) %>:
|
||||
<%= Html.TextBox( "Dbname" ) %>
|
||||
<%= Html.ValidationMessage("Dbname", "*") %><br/>
|
||||
<%= Html.LabelFor(model => model.Dbuser) %>:
|
||||
<%= Html.TextBox( "Dbuser" ) %>
|
||||
<%= Html.ValidationMessage("Dbuser", "*") %><br/>
|
||||
<%= Html.LabelFor(model => model.Password) %>:
|
||||
<%= Html.Password( "Password" ) %>
|
||||
<%= Html.ValidationMessage("Password", "*") %><br/>
|
||||
<input type="submit"/>
|
||||
<% } %>
|
||||
</asp:Content>
|
8
web/Views/BackOffice/Index.aspx
Normal file
8
web/Views/BackOffice/Index.aspx
Normal file
@ -0,0 +1,8 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<DataAccess>" %>
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<%= Html.ActionLink("Backups","Backups","BackOffice") %>
|
||||
</asp:Content>
|
43
web/Views/BackOffice/Restore.aspx
Normal file
43
web/Views/BackOffice/Restore.aspx
Normal file
@ -0,0 +1,43 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<DataAccess>" %>
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
|
||||
|
||||
<%= Html.ValidationSummary("Restore a database backup") %>
|
||||
<% using (Html.BeginForm("Restore","BackOffice")) { %>
|
||||
|
||||
<% string [] bckdirs = Model.GetBackupDirs(); %>
|
||||
<select name="backupName">
|
||||
<% foreach (string s in bckdirs)
|
||||
{
|
||||
%>
|
||||
<option value="<%=s%>"><%=s%></option>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</select>
|
||||
<label for="dataOnly">Data only :</label>
|
||||
<%= Html.CheckBox("dataOnly")%>
|
||||
|
||||
<%= Html.LabelFor(model => model.Host) %>:
|
||||
<%= Html.TextBox( "Host" ) %>
|
||||
<%= Html.ValidationMessage("Host", "*") %><br/>
|
||||
<%= Html.LabelFor(model => model.Port) %>:
|
||||
<%= Html.TextBox( "Port" ) %>
|
||||
<%= Html.ValidationMessage("Port", "*") %><br/>
|
||||
<%= Html.LabelFor(model => model.Dbname) %>:
|
||||
<%= Html.TextBox( "Dbname" ) %>
|
||||
<%= Html.ValidationMessage("Dbname", "*") %><br/>
|
||||
<%= Html.LabelFor(model => model.Dbuser) %>:
|
||||
<%= Html.TextBox( "Dbuser" ) %>
|
||||
<%= Html.ValidationMessage("Dbuser", "*") %><br/>
|
||||
<%= Html.LabelFor(model => model.Password) %>:
|
||||
<%= Html.Password( "Password" ) %>
|
||||
<%= Html.ValidationMessage("Password", "*") %><br/>
|
||||
|
||||
<input type="submit"/>
|
||||
<% } %>
|
||||
</asp:Content>
|
12
web/Views/BackOffice/Restored.aspx
Normal file
12
web/Views/BackOffice/Restored.aspx
Normal file
@ -0,0 +1,12 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<TaskOutput>" %>
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<h1><%=Html.Encode(ViewData["BackupName"])%> Restauration</h1>
|
||||
<div><h2>Error message </h2> <%= Html.Encode(Model.Error) %></div>
|
||||
<div><h2>Message </h2> <%= Html.Encode(Model.Message) %></div>
|
||||
<div><h2>Exit Code</h2> <%= Html.Encode(Model.ExitCode) %></div>
|
||||
|
||||
</asp:Content>
|
67
web/Views/Blogs/Edit.aspx
Normal file
67
web/Views/Blogs/Edit.aspx
Normal file
@ -0,0 +1,67 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BlogEditEntryModel>" MasterPageFile="~/Models/App.master"%>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="head" runat="server">
|
||||
<title><%= Html.Encode(ViewData["BlogTitle"]) %> edition
|
||||
- <%=Html.Encode(YavscHelpers.SiteName) %>
|
||||
</title>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
|
||||
<h1 class="blogtitle">
|
||||
<a href="/Blog/<%=ViewData["UserName"]%>">
|
||||
<img class="avatar" src="/Blogs/Avatar?user=<%=ViewData["UserName"]%>" alt="from <%=ViewData["UserName"]%>"/>
|
||||
<%= Html.Encode(ViewData["BlogTitle"]) %> </a> -
|
||||
<%= Html.Encode(Model.Title) %> -
|
||||
Édition </h1>
|
||||
|
||||
|
||||
|
||||
<div class="message">
|
||||
<%= Html.Encode(ViewData["Message"]) %>
|
||||
</div>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
|
||||
|
||||
<% if (Model != null ) if (Model.Content != null ) {
|
||||
BBCodeHelper.Init (); %>
|
||||
<%= Html.ActionLink(Model.Title,"UserPost",new{user=Model.UserName,title=Model.Title}) %>
|
||||
<div class="blogpost">
|
||||
<%= BBCodeHelper.Parser.ToHtml(Model.Content) %>
|
||||
</div>
|
||||
<% } %>
|
||||
Usage BBcodes :
|
||||
<div style="font-family:monospace;">
|
||||
<%
|
||||
foreach (string usage in BBCodeHelper.BBTagsUsage) { %>
|
||||
<div style="display:inline"><%= usage %></div>
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
<%= Html.ValidationSummary("Edition du billet") %>
|
||||
|
||||
<% using(Html.BeginForm("ValidateEdit", "Blogs")) { %>
|
||||
<%= Html.LabelFor(model => model.Title) %>:<br/>
|
||||
<%= Html.TextBox( "Title" ) %>
|
||||
<%= Html.ValidationMessage("Title", "*") %>
|
||||
<br/>
|
||||
<%= Html.LabelFor(model => model.Content) %>:<br/>
|
||||
<%= Html.TextArea( "Content" , new { @class="editblog", @rows="15" }) %>
|
||||
<%= Html.ValidationMessage("Content", "*") %>
|
||||
<br/>
|
||||
<%= Html.CheckBox( "Visible" ) %>
|
||||
<%= Html.LabelFor(model => model.Visible) %>
|
||||
<%= Html.ValidationMessage("Visible", "*") %>
|
||||
<br/>
|
||||
<%= Html.CheckBox( "Preview" ) %>
|
||||
<%= Html.LabelFor(model => model.Preview) %>
|
||||
<%= Html.ValidationMessage("Preview", "*") %>
|
||||
<%= Html.Hidden("Id") %>
|
||||
<%= Html.Hidden("UserName") %>
|
||||
|
||||
<br/>
|
||||
<input type="submit"/>
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
</asp:Content>
|
||||
|
14
web/Views/Blogs/Error.aspx
Normal file
14
web/Views/Blogs/Error.aspx
Normal file
@ -0,0 +1,14 @@
|
||||
<%@ Page Title="Comptes utilisateur - Index" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h2>Comptes utilisteur</h2>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
|
||||
<div>
|
||||
<%= Html.Encode(ViewData["Message"]) %></div>
|
||||
Your UID :
|
||||
<%= Html.Encode(ViewData ["UID"]) %> </br>
|
||||
<a class="actionlink" href="<%=ViewData["returnUrl"]%>">Retour</a>
|
||||
</asp:Content>
|
34
web/Views/Blogs/Index.aspx
Normal file
34
web/Views/Blogs/Index.aspx
Normal file
@ -0,0 +1,34 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Npgsql.Web.Blog.DataModel.BlogEntryCollection>" MasterPageFile="~/Models/App.master"%>
|
||||
<%@ Register Assembly="Yavsc.WebControls" TagPrefix="yavsc" Namespace="Yavsc.WebControls" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="head" runat="server">
|
||||
<%= "<title>Les dernières parutions - " + Html.Encode(YavscHelpers.SiteName) + "</title>" %>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h2>Les dernières parutions</h2>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
|
||||
<% foreach (Npgsql.Web.Blog.DataModel.BlogEntry e in this.Model) { %>
|
||||
<div class="blogpost">
|
||||
<h3 class="blogtitle">
|
||||
<%= Html.ActionLink(e.Title,"UserPost", new { user=e.UserName, title = e.Title }) %>
|
||||
</h3>
|
||||
<div class="metablog">(<%=Html.Encode(e.UserName)%> <%=e.Modified.ToString("yyyy/MM/dd") %>)</div>
|
||||
<% if (Membership.GetUser()!=null)
|
||||
if (Membership.GetUser().UserName==e.UserName)
|
||||
{ %>
|
||||
<%= Html.ActionLink("Editer","Edit", new { user = e.UserName, title = e.Title }, new { @class="actionlink" }) %>
|
||||
<%= Html.ActionLink("Supprimer","Remove", new { user = e.UserName, title = e.Title }, new { @class="actionlink" } ) %>
|
||||
<% } %>
|
||||
|
||||
</div>
|
||||
|
||||
<% } %>
|
||||
<form runat="server" id="form1" method="GET">
|
||||
<% rp1.ResultCount = (int) ViewData["RecordCount"];
|
||||
rp1.CurrentPage = (int) ViewData["PageIndex"]; %>
|
||||
<yavsc:ResultPages id="rp1" Action = "?pageIndex={0}" runat="server" ></yavsc:ResultPages>
|
||||
|
||||
</form>
|
||||
</asp:Content>
|
||||
|
67
web/Views/Blogs/Post.aspx
Normal file
67
web/Views/Blogs/Post.aspx
Normal file
@ -0,0 +1,67 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BlogEditEntryModel>" MasterPageFile="~/Models/App.master"%>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="head" runat="server">
|
||||
<title><%= Html.Encode(ViewData["BlogTitle"]) %> - Nouveau billet
|
||||
- <%=Html.Encode(YavscHelpers.SiteName) %>
|
||||
</title>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h1 class="blogtitle">
|
||||
<a href="/Blog/<%=ViewData["UserName"]%>">
|
||||
<img class="avatar" src="/Blogs/Avatar?user=<%=ViewData["UserName"]%>" alt="from <%=ViewData["UserName"]%>"/>
|
||||
<%= Html.Encode(ViewData["BlogTitle"]) %> </a> -
|
||||
Nouveau billet -
|
||||
<a href="/"><%= Html.Encode(YavscHelpers.SiteName) %></a> </h1>
|
||||
|
||||
<div class="message">
|
||||
<%= Html.Encode(ViewData["Message"]) %>
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<div class="message">
|
||||
<%= Html.Encode(ViewData["Message"]) %>
|
||||
</div>
|
||||
<% if (Model != null ) if (Model.Content != null ) { %>
|
||||
<div class="blogpost">
|
||||
<%= BBCodeHelper.Parser.ToHtml(Model.Content) %>
|
||||
</div>
|
||||
<% } %>
|
||||
<div class="editpost">
|
||||
|
||||
|
||||
<%= Html.ValidationSummary() %>
|
||||
<% using(Html.BeginForm("ValidatePost", "Blogs")) %>
|
||||
<% { %>
|
||||
|
||||
<%= Html.LabelFor(model => model.Title) %>:<br/>
|
||||
<%= Html.TextBox( "Title" ) %>
|
||||
<%= Html.ValidationMessage("Title", "*") %>
|
||||
<br/>
|
||||
<div>
|
||||
Usage BBcodes :
|
||||
<ul>
|
||||
<%
|
||||
foreach (string usage in BBCodeHelper.BBTagsUsage) { %>
|
||||
<li><%= usage %></li>
|
||||
<% } %>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<%= Html.LabelFor(model => model.Content) %>:<br/>
|
||||
<%= Html.TextArea( "Content", new { @class="editblog", @rows="15" }) %>
|
||||
<%= Html.ValidationMessage("Content", "*") %>
|
||||
<br/>
|
||||
<%= Html.CheckBox( "Visible" ) %>
|
||||
<%= Html.LabelFor(model => model.Visible) %>
|
||||
<%= Html.ValidationMessage("Visible", "*") %>
|
||||
<br/>
|
||||
<%= Html.CheckBox( "Preview" ) %> <%= Html.LabelFor(model => model.Preview) %>
|
||||
<%= Html.ValidationMessage("Preview", "*") %>
|
||||
<br/>
|
||||
<%= Html.Hidden("Id") %>
|
||||
<input type="submit"/>
|
||||
<% } %>
|
||||
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
17
web/Views/Blogs/TitleNotFound.aspx
Normal file
17
web/Views/Blogs/TitleNotFound.aspx
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Npgsql.Web.Blog.DataModel.BlogEntryCollection>" MasterPageFile="~/Models/App.master"%>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="head" runat="server">
|
||||
<title> </title>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
|
||||
Pas d'article trouvé @ "<%= Html.Encode(ViewData["PostTitle"]) %>"
|
||||
<% if (ViewData["UserName"]!=null) { %>
|
||||
|
||||
<br/>
|
||||
<%= Html.ActionLink("Poster?","Post/", new { user=ViewData["UserName"], title = ViewData["PostTitle"]}, new { @class="actionlink" }) %>
|
||||
<% } %>
|
||||
</asp:Content>
|
||||
|
47
web/Views/Blogs/UserPost.aspx
Normal file
47
web/Views/Blogs/UserPost.aspx
Normal file
@ -0,0 +1,47 @@
|
||||
<%@ Page Title="Billet" Language="C#" Inherits="System.Web.Mvc.ViewPage<Npgsql.Web.Blog.DataModel.BlogEntry>" MasterPageFile="~/Models/App.master"%>
|
||||
<asp:Content ContentPlaceHolderID="titleContent" ID="titleContent" runat="server"><%=Html.Encode(Model.Title)%> - <%=Html.Encode(ViewData["BlogTitle"])%></asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h1 class="blogtitle"><%= Html.ActionLink(Model.Title,"UserPost",new{user=Model.UserName,title=Model.Title}) %> -
|
||||
<a href="/Blog/<%=Model.UserName%>"><img class="avatar" src="/Blogs/Avatar?user=<%=Model.UserName%>" alt=""/> <%=ViewData["BlogTitle"]%></a> </h1>
|
||||
|
||||
<div class="metablog">(Id:<a href="/Blogs/UserPost/<%=Model.Id%>"><i><%=Model.Id%></i></a>, <%= Model.Posted.ToString("yyyy/MM/dd") %>
|
||||
- <%= Model.Modified.ToString("yyyy/MM/dd") %> <%= Model.Visible? "":", Invisible!" %>)
|
||||
<% if (Membership.GetUser()!=null)
|
||||
if (Membership.GetUser().UserName==Model.UserName)
|
||||
{ %>
|
||||
<%= Html.ActionLink("Editer","Edit", new { user=Model.UserName, title = Model.Title }, new { @class="actionlink" }) %>
|
||||
<%= Html.ActionLink("Supprimer","Remove", new { user=Model.UserName, title = Model.Title }, new { @class="actionlink" } ) %>
|
||||
<% } %>
|
||||
</div>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<div>
|
||||
<div class="blogpost">
|
||||
<% BBCodeHelper.Init(); %>
|
||||
<%= BBCodeHelper.Parser.ToHtml(Model.Content) %>
|
||||
</div>
|
||||
<%
|
||||
string username = "";
|
||||
if (Membership.GetUser()!=null)
|
||||
username = Membership.GetUser().UserName; %>
|
||||
|
||||
<% foreach (var c in (Comment[])ViewData["Comments"]) { %>
|
||||
|
||||
<div class="comment" style="min-height:32px;"> <img style="clear:left;float:left;max-width:32px;max-height:32px;" src="/Blogs/Avatar/<%=c.From%>" alt="<%=c.From%>"/>
|
||||
<%= BBCodeHelper.Parser.ToHtml(c.CommentText) %>
|
||||
<% if ( username == Model.UserName || c.From == username ) { %>
|
||||
<%= Html.ActionLink("Supprimer","RemoveComment", new { cmtid = c.Id } )%>
|
||||
<% } %>
|
||||
</div>
|
||||
<% } %>
|
||||
<div class="postcomment">
|
||||
<% using (Html.BeginForm("Comment","Blogs")) { %>
|
||||
<%=Html.Hidden("UserName")%>
|
||||
<%=Html.Hidden("Title")%>
|
||||
<%=Html.TextArea("CommentText","")%>
|
||||
<%=Html.Hidden("PostId",Model.Id)%>
|
||||
<input type="submit" value="Poster un commentaire"/>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
42
web/Views/Blogs/UserPosts.aspx
Normal file
42
web/Views/Blogs/UserPosts.aspx
Normal file
@ -0,0 +1,42 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Npgsql.Web.Blog.DataModel.BlogEntryCollection>" MasterPageFile="~/Models/App.master"%>
|
||||
<%@ Register Assembly="Yavsc.WebControls" TagPrefix="yavsc" Namespace="Yavsc.WebControls" %>
|
||||
<asp:Content ContentPlaceHolderID="titleContent" ID="titleContent" runat="server"><%=Html.Encode(ViewData["BlogTitle"])%></asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h1><a href="/Blog/<%=ViewData["BlogUser"]%>">
|
||||
<img class="avatar" src="/Blogs/Avatar?user=<%=ViewData["BlogUser"]%>" alt=""/>
|
||||
<%=ViewData["BlogTitle"]%></a></h1>
|
||||
<div class="message"><%= Html.Encode(ViewData["Message"])%></div>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<%
|
||||
foreach (BlogEntry e in this.Model) { %>
|
||||
<div <% if (!e.Visible) { %> style="background-color:#022;" <% } %>>
|
||||
|
||||
<h2 class="blogtitle" ><%= Html.ActionLink(e.Title,"UserPost", new { user=e.UserName, title = e.Title }) %></h2>
|
||||
<div class="metablog">(<%= e.Posted.ToString("yyyy/MM/dd") %>
|
||||
- <%= e.Modified.ToString("yyyy/MM/dd") %> <%= e.Visible? "":", Invisible!" %>)
|
||||
</div>
|
||||
<% if (Membership.GetUser()!=null)
|
||||
if (Membership.GetUser().UserName==e.UserName)
|
||||
{ %>
|
||||
<%= Html.ActionLink("Editer","Edit", new { user = e.UserName, title = e.Title }, new { @class="actionlink" }) %>
|
||||
<%= Html.ActionLink("Supprimer","Remove", new { user = e.UserName, title = e.Title }, new { @class="actionlink" } ) %>
|
||||
<% } %>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<form runat="server" id="form1" method="GET">
|
||||
<%
|
||||
rp1.ResultCount = (int) ViewData["RecordCount"];
|
||||
rp1.CurrentPage = (int) ViewData["PageIndex"];
|
||||
user.Value = (string) ViewData["BlogUser"];
|
||||
|
||||
%>
|
||||
|
||||
<yavsc:ResultPages id="rp1" Action = "?pageIndex={0}" runat="server"></yavsc:ResultPages>
|
||||
<asp:HiddenField id="user" runat="server"></asp:HiddenField>
|
||||
</form>
|
||||
|
||||
|
||||
</asp:Content>
|
20
web/Views/FileSystem/Create.aspx
Normal file
20
web/Views/FileSystem/Create.aspx
Normal file
@ -0,0 +1,20 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<FileUpload>" %>
|
||||
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<% using(Html.BeginForm("Create", "FileSystem", FormMethod.Post, new { enctype = "multipart/form-data" })) { %>
|
||||
<div>
|
||||
|
||||
<input type="file" ID="AFile" multiple="multiple" runat="server"/>
|
||||
<%= Html.ValidationMessage("AFile") %>
|
||||
|
||||
<br />
|
||||
|
||||
<input type="submit" name="Envoyer" />
|
||||
|
||||
<br />
|
||||
<asp:Label ID="Label1"
|
||||
runat="server"/>
|
||||
|
||||
</div>
|
||||
<% } %>
|
||||
</asp:Content>
|
7
web/Views/FileSystem/Delete.aspx
Normal file
7
web/Views/FileSystem/Delete.aspx
Normal file
@ -0,0 +1,7 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
</asp:Content>
|
15
web/Views/FileSystem/Details.aspx
Normal file
15
web/Views/FileSystem/Details.aspx
Normal file
@ -0,0 +1,15 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<System.IO.FileInfo>" %>
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<%= Model.Name %><br/>
|
||||
Création :
|
||||
<%= Model.CreationTime %><br/>
|
||||
Dérnière modification :
|
||||
<%= Model.LastWriteTime %><br/>
|
||||
Dernier accès :
|
||||
<%= Model.LastAccessTime %><br/>
|
||||
Lien permanent : <a href="/<%= ViewData["Content"] %>">/<%= ViewData["Content"] %></a>
|
||||
</asp:Content>
|
9
web/Views/FileSystem/Edit.aspx
Normal file
9
web/Views/FileSystem/Edit.aspx
Normal file
@ -0,0 +1,9 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<%= Html.ActionLink("Delete","FileSystem") %>
|
||||
<%= Html.ActionLink("Rename","FileSystem") %>
|
||||
</asp:Content>
|
16
web/Views/FileSystem/Index.aspx
Normal file
16
web/Views/FileSystem/Index.aspx
Normal file
@ -0,0 +1,16 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<Yavsc.FileInfoCollection>" %>
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<h1> Index of <%=ViewData["UserName"] %>'s files (<%= Html.Encode(Model.Count) %>) </h1>
|
||||
<ul>
|
||||
<% foreach (System.IO.FileInfo fi in Model) { %>
|
||||
<li> <%= Html.ActionLink(fi.Name,"Details",new {id = fi.Name}) %> </li>
|
||||
<% } %>
|
||||
</ul>
|
||||
|
||||
<%= Html.ActionLink("Ajouter des fichiers","Create") %>
|
||||
</asp:Content>
|
32
web/Views/FrontOffice/Brand.aspx
Normal file
32
web/Views/FrontOffice/Brand.aspx
Normal file
@ -0,0 +1,32 @@
|
||||
<%@ Page Title="Catalog" Language="C#" Inherits="System.Web.Mvc.ViewPage<Brand>" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h1><% if (Model.Logo!=null) { %>
|
||||
<img src="<%=Model.Logo.Src%>" alt="<%=Model.Logo.Alt%>"/>
|
||||
<% } %>
|
||||
<%=Html.Encode(Model.Name)%></h1>
|
||||
<p><i><%=Html.Encode(Model.Slogan)%></i></p>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<% foreach (ProductCategory pc in Model.Categories ) { %>
|
||||
<div>
|
||||
<h2><%= Html.ActionLink( pc.Name, "ProductCategory", new { id = Model.Name, pc = pc.Reference }, new { @class="actionlink" } ) %></h2>
|
||||
</div>
|
||||
|
||||
<% foreach (Product p in pc.Products ) { %>
|
||||
<div>
|
||||
<h3><%= Html.ActionLink( p.Name, "Product", new { id = Model.Name, pc = pc.Reference , pref = p.Reference }, new { @class="actionlink" } ) %></h3>
|
||||
<p>
|
||||
<%= p.Description %>
|
||||
<% if (p.Images !=null)
|
||||
foreach (ProductImage i in p.Images ) { %>
|
||||
<img src="<%=i.Src%>" alt="<%=i.Alt%>"/>
|
||||
<% } %>
|
||||
</p>
|
||||
</div>
|
||||
<% } %>
|
||||
<% } %>
|
||||
|
||||
|
||||
</asp:Content>
|
32
web/Views/FrontOffice/Catalog.aspx
Normal file
32
web/Views/FrontOffice/Catalog.aspx
Normal file
@ -0,0 +1,32 @@
|
||||
<%@ Page Title="Catalog" Language="C#" Inherits="System.Web.Mvc.ViewPage<Catalog>" MasterPageFile="~/Models/App.master" %>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<% foreach (Brand b in Model.Brands ) { %><div>
|
||||
<h1> <%= Html.ActionLink( b.Name, "Brand", new { id = b.Name }, new { @class="actionlink" } ) %> </h1>
|
||||
<p><i><%= Html.Encode( b.Slogan ) %></i></p>
|
||||
<% foreach (ProductCategory pc in b.Categories ) { %>
|
||||
<div>
|
||||
<h2><%= Html.ActionLink( pc.Name, "ProductCategory", new { id = b.Name, pc = pc.Reference }, new { @class="actionlink" } ) %></h2>
|
||||
</div>
|
||||
|
||||
<% foreach (Product p in pc.Products ) { %>
|
||||
<div>
|
||||
<h3><%= Html.ActionLink( p.Name, "Product", new { id = b.Name, pc = pc.Reference , pref = p.Reference }, new { @class="actionlink" } ) %></h3>
|
||||
<p>
|
||||
<%= p.Description %>
|
||||
<% if (p.Images !=null)
|
||||
foreach (ProductImage i in p.Images ) { %>
|
||||
<img src="<%=i.Src%>" alt="<%=i.Alt%>"/>
|
||||
<% } %>
|
||||
</p>
|
||||
</div>
|
||||
<% } %>
|
||||
<% } %>
|
||||
</div><% } %>
|
||||
</asp:Content>
|
||||
|
||||
|
7
web/Views/FrontOffice/Command.aspx
Normal file
7
web/Views/FrontOffice/Command.aspx
Normal file
@ -0,0 +1,7 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<FormCollection collection>" %>
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
</asp:Content>
|
30
web/Views/FrontOffice/Product.aspx
Normal file
30
web/Views/FrontOffice/Product.aspx
Normal file
@ -0,0 +1,30 @@
|
||||
<%@ Page Title="Catalog" Language="C#" Inherits="System.Web.Mvc.ViewPage<PhysicalProduct>" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
<title><%= Html.Encode(Model.Name) %></title>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h1><%= Html.Encode(Model.Name) %></h1>
|
||||
<i><%= Html.Encode(Model.Reference) %></i></asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<div class="product">
|
||||
<p><%= Html.Encode(Model.Description) %></p>
|
||||
<% if (Model.Images!=null) foreach (ProductImage i in Model.Images) { %>
|
||||
<img src="<%=i.Src%>" alt="<%=i.Alt%>"/>
|
||||
<% } %>
|
||||
<% if (Model.UnitaryPrice !=null) { %>
|
||||
Prix unitaire : <%= Html.Encode(Model.UnitaryPrice.Quantity.ToString())%>
|
||||
<%= Html.Encode(Model.UnitaryPrice.Unit.Name)%>
|
||||
<% } else { %> Gratuit! <% } %>
|
||||
</div>
|
||||
<div class="booking">
|
||||
<% if (Model.CommandForm!=null) { %>
|
||||
Défaut de formulaire de commande!!!
|
||||
<% } else { Response.Write( Html.CommandForm(Model,"Ajouter au panier")); } %>
|
||||
|
||||
<% if (Model.CommandValidityDates!=null) { %>
|
||||
Offre valable du <%= Model.CommandValidityDates.StartDate.ToString("dd/MM/yyyy") %> au
|
||||
<%= Model.CommandValidityDates.EndDate.ToString("dd/MM/yyyy") %>.
|
||||
<% } %>
|
||||
|
||||
</div>
|
||||
</asp:Content>
|
23
web/Views/FrontOffice/ProductCategory.aspx
Normal file
23
web/Views/FrontOffice/ProductCategory.aspx
Normal file
@ -0,0 +1,23 @@
|
||||
<%@ Page Title="Catalog" Language="C#" Inherits="System.Web.Mvc.ViewPage<ProductCategory>" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<% foreach (Product p in Model.Products ) { %>
|
||||
|
||||
<h3><%= Html.ActionLink( p.Name, "Product", new { id = ViewData["BrandName"], pc = Model.Reference , pref = p.Reference }, new { @class="actionlink" } ) %></h3>
|
||||
|
||||
<p>
|
||||
<%= p.Description %>
|
||||
<% if (p.Images !=null)
|
||||
foreach (ProductImage i in p.Images ) { %>
|
||||
<img src="<%=i.Src%>" alt="<%=i.Alt%>"/>
|
||||
<% } %>
|
||||
</p>
|
||||
|
||||
|
||||
<% } %>
|
||||
|
||||
|
||||
</asp:Content>
|
7
web/Views/FrontOffice/ReferenceNotFound.aspx
Normal file
7
web/Views/FrontOffice/ReferenceNotFound.aspx
Normal file
@ -0,0 +1,7 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
</asp:Content>
|
31
web/Views/FrontOffice/Service.aspx
Normal file
31
web/Views/FrontOffice/Service.aspx
Normal file
@ -0,0 +1,31 @@
|
||||
<%@ Page Title="Catalog" Language="C#" Inherits="System.Web.Mvc.ViewPage<Service>" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
<title><%= Html.Encode(Model.Name) %></title>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
||||
<h1><%=ViewData ["BrandName"]%> - <%=ViewData ["ProdCatName"]%> - <%= Html.ActionLink( Model.Name, "Product", new { id = ViewData ["BrandName"], pc = ViewData ["ProdCatRef"] , pref = Model.Reference } ) %></h1>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<div class="service">
|
||||
<p><%= Html.Encode(Model.Description) %></p>
|
||||
<% if (Model.Images!=null) foreach (ProductImage i in Model.Images) { %>
|
||||
<img src="<%=i.Src%>" alt="<%=i.Alt%>"/>
|
||||
<% } %>
|
||||
<% if (Model.HourPrice !=null) { %>
|
||||
Prix horaire de la prestation :
|
||||
<%= Html.Encode(Model.HourPrice.Quantity.ToString())%>
|
||||
<%= Html.Encode(Model.HourPrice.Unit.Name)%>
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
<div class="booking">
|
||||
<%= Html.CommandForm(Model,"Ajouter au panier") %>
|
||||
|
||||
<% if (Model.CommandValidityDates!=null) { %>
|
||||
Offre valable du <%= Model.CommandValidityDates.StartDate.ToString("dd/MM/yyyy") %> au
|
||||
<%= Model.CommandValidityDates.EndDate.ToString("dd/MM/yyyy") %>.
|
||||
<% } %>
|
||||
|
||||
</div>
|
||||
</asp:Content>
|
7
web/Views/Home/AOEMail.aspx
Normal file
7
web/Views/Home/AOEMail.aspx
Normal file
@ -0,0 +1,7 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
</asp:Content>
|
8
web/Views/Home/Index.aspx
Normal file
8
web/Views/Home/Index.aspx
Normal file
@ -0,0 +1,8 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master"%>
|
||||
<asp:Content ContentPlaceHolderID="titleContent" ID="titleContent" runat="server">Indexe</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<div>
|
||||
<%= Html.ActionLink("blogs","Index","Blogs") %>
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
3
web/Views/Home/NCView.aspx
Normal file
3
web/Views/Home/NCView.aspx
Normal file
@ -0,0 +1,3 @@
|
||||
<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="" %>
|
||||
|
||||
|
12
web/Views/Home/NView.aspx
Normal file
12
web/Views/Home/NView.aspx
Normal file
@ -0,0 +1,12 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
|
||||
<div>
|
||||
</body>
|
||||
</html>
|
17
web/Views/Home/Thanks.ascx
Normal file
17
web/Views/Home/Thanks.ascx
Normal file
@ -0,0 +1,17 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||
<p>
|
||||
<% var ts = ((string[,])ViewData["Thanks"]);
|
||||
if (ts != null) { %>
|
||||
<hr/><i> Powered by</i><br/>
|
||||
<% for (int i = 0; i <= ts.GetUpperBound(0); i++)
|
||||
{
|
||||
|
||||
%>
|
||||
<%= "<a href=\""+Html.Encode(ts[i,1])+"\" class=\"socle\">"
|
||||
+ ts[i,0]+"</a>"
|
||||
%>
|
||||
<%
|
||||
}}
|
||||
%>
|
||||
</p>
|
||||
|
28
web/Views/RegisterPage.cs
Normal file
28
web/Views/RegisterPage.cs
Normal file
@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Web.UI.WebControls;
|
||||
using yavscModel.RolesAndMembers;
|
||||
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
public class RegisterPage : System.Web.Mvc.ViewPage<RegisterViewModel>
|
||||
{
|
||||
public RegisterPage ()
|
||||
{
|
||||
}
|
||||
|
||||
public CreateUserWizard Createuserwizard1;
|
||||
|
||||
public void OnRegisterSendMail(object sender, MailMessageEventArgs e)
|
||||
{
|
||||
// Set MailMessage fields.
|
||||
e.Message.IsBodyHtml = false;
|
||||
e.Message.Subject = "New user on Web site.";
|
||||
// Replace placeholder text in message body with information
|
||||
// provided by the user.
|
||||
e.Message.Body = e.Message.Body.Replace("<%PasswordQuestion%>", Createuserwizard1.Question);
|
||||
e.Message.Body = e.Message.Body.Replace("<%PasswordAnswer%>", Createuserwizard1.Answer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
41
web/Views/Web.config
Normal file
41
web/Views/Web.config
Normal file
@ -0,0 +1,41 @@
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<system.web>
|
||||
<httpHandlers>
|
||||
<add path="*" verb="*" type="System.Web.HttpNotFoundHandler" />
|
||||
</httpHandlers>
|
||||
<!--
|
||||
Enabling request validation in view pages would cause validation to occur
|
||||
after the input has already been processed by the controller. By default
|
||||
MVC performs request validation before a controller processes the input.
|
||||
To change this behavior apply the ValidateInputAttribute to a
|
||||
controller or action.
|
||||
-->
|
||||
<pages validateRequest="true"
|
||||
pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
|
||||
pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
|
||||
userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
|
||||
<controls>
|
||||
<add assembly="System.Web.Mvc" namespace="System.Web.Mvc" tagPrefix="mvc" />
|
||||
<add tagPrefix="yavsc" namespace="Yavsc.WebControls" assembly="Yavsc.WebControls" />
|
||||
</controls>
|
||||
<namespaces>
|
||||
<add namespace="SalesCatalog.Model" />
|
||||
<add namespace="yavscModel" />
|
||||
<add namespace="Yavsc.Helpers" />
|
||||
<add namespace="Yavsc.Admin" />
|
||||
<add namespace="Yavsc.CatExts" />
|
||||
<add namespace="yavscModel.RolesAndMembers" />
|
||||
<add namespace="yavscModel.Admin" />
|
||||
<add namespace="Npgsql.Web.Blog.DataModel" />
|
||||
</namespaces>
|
||||
</pages>
|
||||
</system.web>
|
||||
<system.webServer>
|
||||
<validation validateIntegratedModeConfiguration="false" />
|
||||
<handlers>
|
||||
<remove name="BlockViewHandler" />
|
||||
<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
</configuration>
|
11
web/Views/WorkFlow/Index.aspx
Normal file
11
web/Views/WorkFlow/Index.aspx
Normal file
@ -0,0 +1,11 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master"%>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="head" runat="server">
|
||||
<%= "<title>Index - " + Html.Encode(YavscHelpers.SiteName) + "</title>" %>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<div>
|
||||
<%= Html.ActionLink("blogs","Index","WorkFlow") %>
|
||||
</div>
|
||||
|
||||
</asp:Content>
|
||||
|
22
web/Views/WorkFlow/NewProject.aspx
Normal file
22
web/Views/WorkFlow/NewProject.aspx
Normal file
@ -0,0 +1,22 @@
|
||||
<%@ Page Title="Nouveau projet" Language="C#" Inherits="System.Web.Mvc.ViewPage<WorkFlow.NewProjectModel>" MasterPageFile="~/Models/App.master" %>
|
||||
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<div>
|
||||
<%= Html.ValidationSummary("Nouveau projet") %>
|
||||
<% using ( Html.BeginForm("NewProject", "WorkFlow") ) { %>
|
||||
<%= Html.LabelFor(model => model.Name) %> :
|
||||
<%= Html.TextBox( "Name" ) %>
|
||||
<%= Html.ValidationMessage("Name", "*") %><br/>
|
||||
<%= Html.LabelFor(model => model.Manager) %> :
|
||||
<%= Html.TextBox( "Manager" ) %>
|
||||
<%= Html.ValidationMessage("Manager", "*") %><br/>
|
||||
<%= Html.LabelFor(model => model.Description) %> :
|
||||
<%= Html.TextBox( "Description" ) %>
|
||||
<%= Html.ValidationMessage("Description", "*") %><br/>
|
||||
<input type="submit"/>
|
||||
<% } %>
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
|
Reference in New Issue
Block a user