* InitDb.aspx: * StaticPage.master: * Created.aspx: * LocalizedText.fr.resx: * AdminController.cs: * LocalizedText.Designer.cs: * Web.csproj: Db initialisation web pages * DataAccess.cs: a connection string * LocalizedText.resx: internationalisaX creating the admin role
23 lines
1.1 KiB
Text
23 lines
1.1 KiB
Text
<%@ Page Title="Init db" Language="C#" MasterPageFile="~/Models/StaticPage.master" Inherits="System.Web.Mvc.ViewPage<DataAccess>" %>
|
|
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
|
<%= Html.ValidationSummary("Init a new data base") %>
|
|
<% using (Html.BeginForm("InitDb","Admin")) { %>
|
|
<%= 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/>
|
|
<label for="doInit">Executer le script de création de la base:</label><input type="checkbox" name="doInit" id="doInit" >
|
|
<input type="submit"/>
|
|
<% } %>
|
|
</asp:Content>
|