* DataManager.cs: InitDb on the go
* 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
This commit is contained in:
parent
a7de4e1fec
commit
bf8dbeee04
10 changed files with 123 additions and 55 deletions
|
|
@ -1,21 +1,7 @@
|
|||
<%@ Page Title="Restore" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<DataAccess>" %>
|
||||
<%@ 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("Restore a database backup") %>
|
||||
<% using (Html.BeginForm("Restore","Admin")) { %>
|
||||
|
||||
<% string [] bcfiles = (string[]) ViewData["Backups"]; %>
|
||||
<select name="backupName">
|
||||
<% foreach (string s in bcfiles)
|
||||
{
|
||||
%>
|
||||
<option value="<%=s%>"><%=s%></option>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</select>
|
||||
<label for="dataOnly">Data only :</label>
|
||||
<%= Html.CheckBox("dataOnly")%>
|
||||
|
||||
<%= Html.ValidationSummary("Init a new data base") %>
|
||||
<% using (Html.BeginForm("InitDb","Admin")) { %>
|
||||
<%= Html.LabelFor(model => model.Host) %>:
|
||||
<%= Html.TextBox( "Host" ) %>
|
||||
<%= Html.ValidationMessage("Host", "*") %><br/>
|
||||
|
|
@ -31,7 +17,7 @@
|
|||
<%= 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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue