2015-02-08 20:59:08 +01:00
|
|
|
<%@ Page Title="Init db" Language="C#" MasterPageFile="~/Models/NoLogin.master" Inherits="System.Web.Mvc.ViewPage<DataAccess>" %>
|
2015-01-25 22:59:29 +01:00
|
|
|
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
2015-01-26 00:29:19 +01:00
|
|
|
<%= Html.ValidationSummary("Init a new data base") %>
|
|
|
|
|
<% using (Html.BeginForm("InitDb","Admin")) { %>
|
2015-01-25 22:59:29 +01:00
|
|
|
<%= Html.LabelFor(model => model.Host) %>:
|
|
|
|
|
<%= Html.TextBox( "Host" ) %>
|
|
|
|
|
<%= Html.ValidationMessage("Host", "*") %><br/>
|
|
|
|
|
<%= Html.LabelFor(model => model.Port) %>:
|
|
|
|
|
<%= Html.TextBox( "Port" ) %>
|
|
|
|
|
<%= Html.ValidationMessage("Port", "*") %><br/>
|
2015-10-10 13:42:48 +02:00
|
|
|
<%= Html.LabelFor(model => model.DbName) %>:
|
|
|
|
|
<%= Html.TextBox( "DbName" ) %>
|
|
|
|
|
<%= Html.ValidationMessage("DbName", "*") %><br/>
|
|
|
|
|
<%= Html.LabelFor(model => model.DbUser) %>:
|
|
|
|
|
<%= Html.TextBox( "DbUser" ) %>
|
|
|
|
|
<%= Html.ValidationMessage("DbUser", "*") %><br/>
|
2015-01-25 22:59:29 +01:00
|
|
|
<%= Html.LabelFor(model => model.Password) %>:
|
|
|
|
|
<%= Html.Password( "Password" ) %>
|
|
|
|
|
<%= Html.ValidationMessage("Password", "*") %><br/>
|
2015-05-09 16:42:33 +02:00
|
|
|
<label for="doInit">Executer le script de création de la base: </label><input type="checkbox" name="doInit" id="doInit" >
|
2015-01-25 22:59:29 +01:00
|
|
|
<input type="submit"/>
|
|
|
|
|
<% } %>
|
|
|
|
|
</asp:Content>
|