* T.cs: * IModule.cs: * App.master: * IProvider.cs: * Error.aspx: * AOEMail.aspx: * Login.aspx: * Index.aspx: * Admin.aspx: * yavscModel.csproj: * WFManager.cs: * Index.aspx: * AddRole.aspx: * Profile.aspx: * Edit.aspx: * Register.aspx: * Index.aspx: * RoleList.aspx: * UserList.aspx: * Validate.aspx: * RemovePost.aspx: * Index.aspx: * BasketImpact.cs: * Brand.aspx: * Delete.aspx: * Create.aspx: * Backups.aspx: * HomeController.cs: * BlogManager.cs: * Restore.aspx: * Details.aspx: * TitleNotFound.aspx: * Product.aspx: * AdminController.cs: * Command.aspx: * Service.aspx: * BlogProvider.cs: * NewProject.aspx: * Catalog.aspx: * Restored.aspx: * BasketController.cs: * AccountController.cs: * WorkFlowController.cs: * BlogsApiController.cs: * ChangePassword.aspx: * RemoveRoleQuery.aspx: * CreateBackup.aspx: * IContentProvider.cs: * BackOfficeController.cs: * FrontOfficeController.cs: * NpgsqlBlogProvider.cs: * NpgsqlContentProvider.cs: * RegistrationPending.aspx: * ProductCategory.aspx: * FrontOfficeApiController.cs: * ChangePasswordSuccess.aspx: * ReferenceNotFound.aspx: * BackupCreated.aspx Fixes many HTTP 500 Refactoring on the go
37 lines
1.2 KiB
Text
37 lines
1.2 KiB
Text
<%@ Page Language="C#" MasterPageFile="~/Models/App.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","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>
|