GIT: perform LF normalization

This commit is contained in:
Gary Sharp
2013-02-28 17:15:46 +11:00
parent 989f08a24d
commit 7d9be5620d
729 changed files with 300734 additions and 300712 deletions
+200 -200
View File
@@ -1,200 +1,200 @@
@model Disco.Web.Models.InitialConfig.CompleteModel
@{
ViewBag.Title = null;
}
<h1>@CommonHelpers.Breadcrumbs(Html.ToBreadcrumb("Initial Configuration", MVC.InitialConfig.Index(), "Complete"))</h1>
<div id="initialConfig_Complete">
<div class="form" style="width: 650px">
<h2>Verification Results</h2>
<table>
<tr>
<td>
<h3><span class="icon @(Model.RegistryDatabaseResult == null ? "success" : "error")"></span>Database</h3>
<div class="testResult">
@{
if (Model.RegistryDatabaseResult == null)
{
<text>The database connection string was correctly configured and saved.</text>
}
else
{
<text>There was an error saving the database connection string configuration.</text>
<br />
<div class="exception">
@{var ex = Model.RegistryDatabaseResult;
do
{
<div>
<h4>[@ex.GetType().Name]</h4>
<div class="code">
@ex.Message
</div>
</div>
if (ex.InnerException == null) { break; }
else { ex = ex.InnerException; }
} while (true);
}
</div>
}
}
</div>
</td>
</tr>
<tr>
<td>
<h3><span class="icon @(Model.DiscoDnsTestResult.Item2 == null ? "success" : "warning")"></span>Disco DNS Entry</h3>
<div class="testResult">
@{
if (Model.DiscoDnsTestResult.Item1 != null)
{
<div>The following 'disco' DNS entry was found:</div>
<div class="code">
<strong>@Model.DiscoDnsTestResult.Item1.HostName</strong>
@{
if (Model.DiscoDnsTestResult.Item1.Aliases.Length > 0)
{
<div>
Aliases:
<ul>
@foreach (var a in Model.DiscoDnsTestResult.Item1.Aliases)
{
<li>@a</li>
}
</ul>
</div>
}
if (Model.DiscoDnsTestResult.Item1.AddressList.Length > 0)
{
<div>
IP Addresses:
<ul>
@foreach (var a in Model.DiscoDnsTestResult.Item1.AddressList)
{
<li>@a.ToString()</li>
}
</ul>
</div>
}
}
</div>
}
else
{
<text>There was an error determining a DNS entry for Disco.</text>
<br />
<div class="exception">
@{var ex = Model.DiscoDnsTestResult.Item2;
do
{
<div>
<h4>[@ex.GetType().Name]</h4>
<div class="code">
@ex.Message
</div>
</div>
if (ex.InnerException == null) { break; }
else { ex = ex.InnerException; }
} while (true);
}
</div>
}
}
</div>
</td>
</tr>
<tr>
<td>
<h3><span class="icon @(Model.DiscoIctComAuWebResult == null ? "success" : "warning")"></span>Connectivity to <a href="http://discoict.com.au" target="_blank">http://discoict.com.au</a></h3>
<div class="testResult">
@{
if (Model.DiscoIctComAuWebResult == null)
{
<text>A connection was successfully established to <a href="http://discoict.com.au" target="_blank">http://discoict.com.au</a>.</text>
}
else
{
<text>There was an error establishing a connection to <a href="http://discoict.com.au" target="_blank">http://discoict.com.au</a>. This may be caused by missing proxy settings - after starting Disco check these settings in the 'System' configuration area.</text>
<br />
<div class="exception">
@{var ex = Model.DiscoIctComAuWebResult;
do
{
<div>
<h4>[@ex.GetType().Name]</h4>
<div class="code">
@ex.Message
</div>
</div>
if (ex.InnerException == null) { break; }
else { ex = ex.InnerException; }
} while (true);
}
</div>
}
}
</div>
</td>
</tr>
<tr>
<td>
<h3><span class="icon information"></span>Unblock ICMP (Ping) for the Disco server</h3>
<div class="testResult">
The Disco Client Bootstrapper requires the Disco server to respond to ICMP Echo requests (Ping) to function correctly. Please insure any firewall rules are updated accordingly.
</div>
</td>
</tr>
<tr>
<td>
<h3><span class="icon information"></span>Configure a regularly scheduled Backup</h3>
<div class="testResult">
Please ensure both the SQL Database and File Store are backed up regularly.
</div>
</td>
</tr>
</table>
</div>
<div class="actionBar">
@{
if (Model.LaunchAllowed)
{
<a href="@(Url.Action(MVC.InitialConfig.RestartWebApp()))" class="button">Start Disco</a>
}
else
{
<a id="tryAgain" href="@(Url.Action(MVC.InitialConfig.Complete()))" class="button">Try Again</a>
}
}
</div>
</div>
<div id="dialogWait" title="Please Wait">
<h2><span class="ajaxLoading"></span>Re-running Verification Tests</h2>
<div>Please wait while the verification tests are performed.</div>
</div>
<script>
(function () {
$(function () {
$('#initialConfig_Complete').find('div.exception').each(function () {
var $this = $(this);
$('<a>').text('[Show Error Details]').attr('href', '#').insertBefore($this).click(function () {
$(this).hide();
$this.slideDown();
return false;
});
$this.hide();
});
$('#tryAgain').click(function () {
$('#dialogWait').dialog('open');
});
$('#dialogWait').dialog({
autoOpen: false,
draggable: false,
modal: true,
resizable: false,
width: 400,
height: 150,
closeOnEscape: false
}).closest('.ui-dialog').find('.ui-dialog-titlebar-close').hide();
});
})();
</script>
@model Disco.Web.Models.InitialConfig.CompleteModel
@{
ViewBag.Title = null;
}
<h1>@CommonHelpers.Breadcrumbs(Html.ToBreadcrumb("Initial Configuration", MVC.InitialConfig.Index(), "Complete"))</h1>
<div id="initialConfig_Complete">
<div class="form" style="width: 650px">
<h2>Verification Results</h2>
<table>
<tr>
<td>
<h3><span class="icon @(Model.RegistryDatabaseResult == null ? "success" : "error")"></span>Database</h3>
<div class="testResult">
@{
if (Model.RegistryDatabaseResult == null)
{
<text>The database connection string was correctly configured and saved.</text>
}
else
{
<text>There was an error saving the database connection string configuration.</text>
<br />
<div class="exception">
@{var ex = Model.RegistryDatabaseResult;
do
{
<div>
<h4>[@ex.GetType().Name]</h4>
<div class="code">
@ex.Message
</div>
</div>
if (ex.InnerException == null) { break; }
else { ex = ex.InnerException; }
} while (true);
}
</div>
}
}
</div>
</td>
</tr>
<tr>
<td>
<h3><span class="icon @(Model.DiscoDnsTestResult.Item2 == null ? "success" : "warning")"></span>Disco DNS Entry</h3>
<div class="testResult">
@{
if (Model.DiscoDnsTestResult.Item1 != null)
{
<div>The following 'disco' DNS entry was found:</div>
<div class="code">
<strong>@Model.DiscoDnsTestResult.Item1.HostName</strong>
@{
if (Model.DiscoDnsTestResult.Item1.Aliases.Length > 0)
{
<div>
Aliases:
<ul>
@foreach (var a in Model.DiscoDnsTestResult.Item1.Aliases)
{
<li>@a</li>
}
</ul>
</div>
}
if (Model.DiscoDnsTestResult.Item1.AddressList.Length > 0)
{
<div>
IP Addresses:
<ul>
@foreach (var a in Model.DiscoDnsTestResult.Item1.AddressList)
{
<li>@a.ToString()</li>
}
</ul>
</div>
}
}
</div>
}
else
{
<text>There was an error determining a DNS entry for Disco.</text>
<br />
<div class="exception">
@{var ex = Model.DiscoDnsTestResult.Item2;
do
{
<div>
<h4>[@ex.GetType().Name]</h4>
<div class="code">
@ex.Message
</div>
</div>
if (ex.InnerException == null) { break; }
else { ex = ex.InnerException; }
} while (true);
}
</div>
}
}
</div>
</td>
</tr>
<tr>
<td>
<h3><span class="icon @(Model.DiscoIctComAuWebResult == null ? "success" : "warning")"></span>Connectivity to <a href="http://discoict.com.au" target="_blank">http://discoict.com.au</a></h3>
<div class="testResult">
@{
if (Model.DiscoIctComAuWebResult == null)
{
<text>A connection was successfully established to <a href="http://discoict.com.au" target="_blank">http://discoict.com.au</a>.</text>
}
else
{
<text>There was an error establishing a connection to <a href="http://discoict.com.au" target="_blank">http://discoict.com.au</a>. This may be caused by missing proxy settings - after starting Disco check these settings in the 'System' configuration area.</text>
<br />
<div class="exception">
@{var ex = Model.DiscoIctComAuWebResult;
do
{
<div>
<h4>[@ex.GetType().Name]</h4>
<div class="code">
@ex.Message
</div>
</div>
if (ex.InnerException == null) { break; }
else { ex = ex.InnerException; }
} while (true);
}
</div>
}
}
</div>
</td>
</tr>
<tr>
<td>
<h3><span class="icon information"></span>Unblock ICMP (Ping) for the Disco server</h3>
<div class="testResult">
The Disco Client Bootstrapper requires the Disco server to respond to ICMP Echo requests (Ping) to function correctly. Please insure any firewall rules are updated accordingly.
</div>
</td>
</tr>
<tr>
<td>
<h3><span class="icon information"></span>Configure a regularly scheduled Backup</h3>
<div class="testResult">
Please ensure both the SQL Database and File Store are backed up regularly.
</div>
</td>
</tr>
</table>
</div>
<div class="actionBar">
@{
if (Model.LaunchAllowed)
{
<a href="@(Url.Action(MVC.InitialConfig.RestartWebApp()))" class="button">Start Disco</a>
}
else
{
<a id="tryAgain" href="@(Url.Action(MVC.InitialConfig.Complete()))" class="button">Try Again</a>
}
}
</div>
</div>
<div id="dialogWait" title="Please Wait">
<h2><span class="ajaxLoading"></span>Re-running Verification Tests</h2>
<div>Please wait while the verification tests are performed.</div>
</div>
<script>
(function () {
$(function () {
$('#initialConfig_Complete').find('div.exception').each(function () {
var $this = $(this);
$('<a>').text('[Show Error Details]').attr('href', '#').insertBefore($this).click(function () {
$(this).hide();
$this.slideDown();
return false;
});
$this.hide();
});
$('#tryAgain').click(function () {
$('#dialogWait').dialog('open');
});
$('#dialogWait').dialog({
autoOpen: false,
draggable: false,
modal: true,
resizable: false,
width: 400,
height: 150,
closeOnEscape: false
}).closest('.ui-dialog').find('.ui-dialog-titlebar-close').hide();
});
})();
</script>
File diff suppressed because it is too large Load Diff
+119 -119
View File
@@ -1,119 +1,119 @@
@model Disco.Web.Models.InitialConfig.DatabaseModel
@{
ViewBag.Title = null;
}
<h1>@CommonHelpers.Breadcrumbs(Html.ToBreadcrumb("Initial Configuration", MVC.InitialConfig.Index(), "Database"))</h1>
@using (Html.BeginForm())
{
@Html.ValidationSummary(true)
<div class="form" style="width: 650px">
<h2>SQL Server Connection</h2>
<table>
<tr>
<th style="width: 150px;">Server:
</th>
<td>
@Html.EditorFor(m => m.Server) @Html.ValidationMessageFor(m => m.Server)
<div class="smallMessage">
If the default instance of SQL Server is not being used, include the instance name.<br />
For example: <span class="code">"SERVER_NAME\INSTANCE_NAME"</span>
</div>
</td>
</tr>
<tr>
<th>Database Name:
</th>
<td>
@Html.EditorFor(m => m.DatabaseName) @Html.ValidationMessageFor(m => m.DatabaseName)
<div class="smallMessage">
An attempt will be made to create a database with this name if it does not exist.
</div>
</td>
</tr>
<tr>
<th>Authentication Method:
</th>
<td>
@Html.DropDownListFor(m => m.AuthMethod, Model.AuthMethods) @Html.ValidationMessageFor(m => m.AuthMethod)
<div class="smallMessage">
Integrated Authentication is recommended.<br />
To use Integrated Authentication ensure the <span class="code">DiscoServiceAccount</span> domain user has the <span class="code">db_owner</span> role over the database, or <span class="code">sysadmin</span> role if creating a new database.
</div>
<div id="auth_Sql" style="margin-top: 15px; display: none;">
<h4>SQL Authentication Credentials</h4>
<div class="smallMessage">
The following credentials will be stored in clear-text.
</div>
<table class="sub">
<tr>
<th>Username:</th>
<td>@Html.EditorFor(m => m.Auth_SQL_Username) @Html.ValidationMessageFor(m => m.Auth_SQL_Username)</td>
</tr>
<tr>
<th>Password:</th>
<td>@Html.EditorFor(m => m.Auth_SQL_Password) @Html.ValidationMessageFor(m => m.Auth_SQL_Password)</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<div class="actionBar">
<input id="submitForm" type="submit" class="button" value="Continue" />
</div>
}
<div id="dialogWait" title="Please Wait">
<h2><span class="ajaxLoading"></span>Building and Validating Database</h2>
<div>Please wait while the Disco database is created and/or validated</div>
</div>
<script>
(function () {
$(function () {
var initialized = false;
$('#AuthMethod').change(function () {
$this = $(this);
if ($this.val() === 'SQL') {
// Enable Validation
$('#Auth_SQL_Username').attr('data-val', true).attr('data-val-required', 'The Username is required');
$('#Auth_SQL_Password').attr('data-val', true).attr('data-val-required', 'The Password is required');
$('#auth_Sql').slideDown();
} else {
$('#Auth_SQL_Username').attr('data-val', false);
$('#Auth_SQL_Password').attr('data-val', false);
$('#auth_Sql').slideUp();
}
// Rebuild Validation
if (initialized) {
$.validator.unobtrusive.reparse('#auth_Sql');
}
}).change();
$('#dialogWait').dialog({
autoOpen: false,
draggable: false,
modal: true,
resizable: false,
width: 400,
height: 150,
closeOnEscape: false
}).closest('.ui-dialog').find('.ui-dialog-titlebar-close').hide();
$('#submitForm').closest('form').submit(function () {
if ($(this).valid()) {
$('#dialogWait').dialog('open');
}
return true;
});
initialized = true;
});
})();
</script>
@model Disco.Web.Models.InitialConfig.DatabaseModel
@{
ViewBag.Title = null;
}
<h1>@CommonHelpers.Breadcrumbs(Html.ToBreadcrumb("Initial Configuration", MVC.InitialConfig.Index(), "Database"))</h1>
@using (Html.BeginForm())
{
@Html.ValidationSummary(true)
<div class="form" style="width: 650px">
<h2>SQL Server Connection</h2>
<table>
<tr>
<th style="width: 150px;">Server:
</th>
<td>
@Html.EditorFor(m => m.Server) @Html.ValidationMessageFor(m => m.Server)
<div class="smallMessage">
If the default instance of SQL Server is not being used, include the instance name.<br />
For example: <span class="code">"SERVER_NAME\INSTANCE_NAME"</span>
</div>
</td>
</tr>
<tr>
<th>Database Name:
</th>
<td>
@Html.EditorFor(m => m.DatabaseName) @Html.ValidationMessageFor(m => m.DatabaseName)
<div class="smallMessage">
An attempt will be made to create a database with this name if it does not exist.
</div>
</td>
</tr>
<tr>
<th>Authentication Method:
</th>
<td>
@Html.DropDownListFor(m => m.AuthMethod, Model.AuthMethods) @Html.ValidationMessageFor(m => m.AuthMethod)
<div class="smallMessage">
Integrated Authentication is recommended.<br />
To use Integrated Authentication ensure the <span class="code">DiscoServiceAccount</span> domain user has the <span class="code">db_owner</span> role over the database, or <span class="code">sysadmin</span> role if creating a new database.
</div>
<div id="auth_Sql" style="margin-top: 15px; display: none;">
<h4>SQL Authentication Credentials</h4>
<div class="smallMessage">
The following credentials will be stored in clear-text.
</div>
<table class="sub">
<tr>
<th>Username:</th>
<td>@Html.EditorFor(m => m.Auth_SQL_Username) @Html.ValidationMessageFor(m => m.Auth_SQL_Username)</td>
</tr>
<tr>
<th>Password:</th>
<td>@Html.EditorFor(m => m.Auth_SQL_Password) @Html.ValidationMessageFor(m => m.Auth_SQL_Password)</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<div class="actionBar">
<input id="submitForm" type="submit" class="button" value="Continue" />
</div>
}
<div id="dialogWait" title="Please Wait">
<h2><span class="ajaxLoading"></span>Building and Validating Database</h2>
<div>Please wait while the Disco database is created and/or validated</div>
</div>
<script>
(function () {
$(function () {
var initialized = false;
$('#AuthMethod').change(function () {
$this = $(this);
if ($this.val() === 'SQL') {
// Enable Validation
$('#Auth_SQL_Username').attr('data-val', true).attr('data-val-required', 'The Username is required');
$('#Auth_SQL_Password').attr('data-val', true).attr('data-val-required', 'The Password is required');
$('#auth_Sql').slideDown();
} else {
$('#Auth_SQL_Username').attr('data-val', false);
$('#Auth_SQL_Password').attr('data-val', false);
$('#auth_Sql').slideUp();
}
// Rebuild Validation
if (initialized) {
$.validator.unobtrusive.reparse('#auth_Sql');
}
}).change();
$('#dialogWait').dialog({
autoOpen: false,
draggable: false,
modal: true,
resizable: false,
width: 400,
height: 150,
closeOnEscape: false
}).closest('.ui-dialog').find('.ui-dialog-titlebar-close').hide();
$('#submitForm').closest('form').submit(function () {
if ($(this).valid()) {
$('#dialogWait').dialog('open');
}
return true;
});
initialized = true;
});
})();
</script>
@@ -1,317 +1,317 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.InitialConfig
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/InitialConfig/Database.cshtml")]
public class Database : System.Web.Mvc.WebViewPage<Disco.Web.Models.InitialConfig.DatabaseModel>
{
public Database()
{
}
public override void Execute()
{
#line 2 "..\..\Views\InitialConfig\Database.cshtml"
ViewBag.Title = null;
#line default
#line hidden
WriteLiteral("\r\n<h1>");
#line 5 "..\..\Views\InitialConfig\Database.cshtml"
Write(CommonHelpers.Breadcrumbs(Html.ToBreadcrumb("Initial Configuration", MVC.InitialConfig.Index(), "Database")));
#line default
#line hidden
WriteLiteral("</h1>\r\n");
#line 6 "..\..\Views\InitialConfig\Database.cshtml"
using (Html.BeginForm())
{
#line default
#line hidden
#line 8 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.ValidationSummary(true));
#line default
#line hidden
#line 8 "..\..\Views\InitialConfig\Database.cshtml"
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 650px\"");
WriteLiteral(">\r\n <h2>SQL Server Connection</h2>\r\n <table>\r\n <tr>\r\n " +
" <th");
WriteLiteral(" style=\"width: 150px;\"");
WriteLiteral(">Server:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 17 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.EditorFor(m => m.Server));
#line default
#line hidden
WriteLiteral(" ");
#line 17 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.ValidationMessageFor(m => m.Server));
#line default
#line hidden
WriteLiteral("\r\n <div");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n If the default instance of SQL Server is not being use" +
"d, include the instance name.<br />\r\n For example: <span");
WriteLiteral(" class=\"code\"");
WriteLiteral(">\"SERVER_NAME\\INSTANCE_NAME\"</span>\r\n </div>\r\n " +
"</td>\r\n </tr>\r\n <tr>\r\n <th>Database Name:\r\n" +
" </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 28 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.EditorFor(m => m.DatabaseName));
#line default
#line hidden
WriteLiteral(" ");
#line 28 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.ValidationMessageFor(m => m.DatabaseName));
#line default
#line hidden
WriteLiteral("\r\n <div");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(@">
An attempt will be made to create a database with this name if it does not exist.
</div>
</td>
</tr>
<tr>
<th>Authentication Method:
</th>
<td>
");
WriteLiteral(" ");
#line 38 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.DropDownListFor(m => m.AuthMethod, Model.AuthMethods));
#line default
#line hidden
WriteLiteral(" ");
#line 38 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.ValidationMessageFor(m => m.AuthMethod));
#line default
#line hidden
WriteLiteral("\r\n <div");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n Integrated Authentication is recommended.<br />\r\n " +
" To use Integrated Authentication ensure the <span");
WriteLiteral(" class=\"code\"");
WriteLiteral(">DiscoServiceAccount</span> domain user has the <span");
WriteLiteral(" class=\"code\"");
WriteLiteral(">db_owner</span> role over the database, or <span");
WriteLiteral(" class=\"code\"");
WriteLiteral(">sysadmin</span> role if creating a new database.\r\n </div>\r\n " +
" <div");
WriteLiteral(" id=\"auth_Sql\"");
WriteLiteral(" style=\"margin-top: 15px; display: none;\"");
WriteLiteral(">\r\n <h4>SQL Authentication Credentials</h4>\r\n " +
" <div");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n The following credentials will be stored in clear-" +
"text.\r\n </div>\r\n <table");
WriteLiteral(" class=\"sub\"");
WriteLiteral(">\r\n <tr>\r\n <th>Username" +
":</th>\r\n <td>");
#line 51 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.EditorFor(m => m.Auth_SQL_Username));
#line default
#line hidden
WriteLiteral(" ");
#line 51 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.ValidationMessageFor(m => m.Auth_SQL_Username));
#line default
#line hidden
WriteLiteral("</td>\r\n </tr>\r\n <tr>\r\n " +
" <th>Password:</th>\r\n <" +
"td>");
#line 55 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.EditorFor(m => m.Auth_SQL_Password));
#line default
#line hidden
WriteLiteral(" ");
#line 55 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.ValidationMessageFor(m => m.Auth_SQL_Password));
#line default
#line hidden
WriteLiteral("</td>\r\n </tr>\r\n </table>\r\n " +
" </div>\r\n </td>\r\n </tr>\r\n </table" +
">\r\n </div>\r\n");
WriteLiteral(" <div");
WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n <input");
WriteLiteral(" id=\"submitForm\"");
WriteLiteral(" type=\"submit\"");
WriteLiteral(" class=\"button\"");
WriteLiteral(" value=\"Continue\"");
WriteLiteral(" />\r\n </div>\r\n");
#line 66 "..\..\Views\InitialConfig\Database.cshtml"
}
#line default
#line hidden
WriteLiteral("<div");
WriteLiteral(" id=\"dialogWait\"");
WriteLiteral(" title=\"Please Wait\"");
WriteLiteral(">\r\n <h2><span");
WriteLiteral(" class=\"ajaxLoading\"");
WriteLiteral("></span>Building and Validating Database</h2>\r\n <div>Please wait while the Dis" +
"co database is created and/or validated</div>\r\n</div>\r\n<script>\r\n (function (" +
") {\r\n\r\n $(function () {\r\n var initialized = false;\r\n\r\n " +
" $(\'#AuthMethod\').change(function () {\r\n $this = $(this);\r\n " +
" if ($this.val() === \'SQL\') {\r\n // Enable Validat" +
"ion\r\n $(\'#Auth_SQL_Username\').attr(\'data-val\', true).attr(\'da" +
"ta-val-required\', \'The Username is required\');\r\n $(\'#Auth_SQL" +
"_Password\').attr(\'data-val\', true).attr(\'data-val-required\', \'The Password is re" +
"quired\');\r\n\r\n $(\'#auth_Sql\').slideDown();\r\n } " +
"else {\r\n $(\'#Auth_SQL_Username\').attr(\'data-val\', false);\r\n " +
" $(\'#Auth_SQL_Password\').attr(\'data-val\', false);\r\n\r\n " +
" $(\'#auth_Sql\').slideUp();\r\n }\r\n\r\n // Reb" +
"uild Validation\r\n if (initialized) {\r\n $.valid" +
"ator.unobtrusive.reparse(\'#auth_Sql\');\r\n }\r\n }).change" +
"();\r\n\r\n $(\'#dialogWait\').dialog({\r\n autoOpen: false,\r\n" +
" draggable: false,\r\n modal: true,\r\n " +
" resizable: false,\r\n width: 400,\r\n height: 150,\r\n " +
" closeOnEscape: false\r\n }).closest(\'.ui-dialog\').find(\'" +
".ui-dialog-titlebar-close\').hide();\r\n\r\n $(\'#submitForm\').closest(\'for" +
"m\').submit(function () {\r\n if ($(this).valid()) {\r\n " +
" $(\'#dialogWait\').dialog(\'open\');\r\n }\r\n retur" +
"n true;\r\n });\r\n\r\n initialized = true;\r\n });\r\n\r\n " +
"})();\r\n</script>\r\n");
}
}
}
#pragma warning restore 1591
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.InitialConfig
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/InitialConfig/Database.cshtml")]
public class Database : System.Web.Mvc.WebViewPage<Disco.Web.Models.InitialConfig.DatabaseModel>
{
public Database()
{
}
public override void Execute()
{
#line 2 "..\..\Views\InitialConfig\Database.cshtml"
ViewBag.Title = null;
#line default
#line hidden
WriteLiteral("\r\n<h1>");
#line 5 "..\..\Views\InitialConfig\Database.cshtml"
Write(CommonHelpers.Breadcrumbs(Html.ToBreadcrumb("Initial Configuration", MVC.InitialConfig.Index(), "Database")));
#line default
#line hidden
WriteLiteral("</h1>\r\n");
#line 6 "..\..\Views\InitialConfig\Database.cshtml"
using (Html.BeginForm())
{
#line default
#line hidden
#line 8 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.ValidationSummary(true));
#line default
#line hidden
#line 8 "..\..\Views\InitialConfig\Database.cshtml"
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 650px\"");
WriteLiteral(">\r\n <h2>SQL Server Connection</h2>\r\n <table>\r\n <tr>\r\n " +
" <th");
WriteLiteral(" style=\"width: 150px;\"");
WriteLiteral(">Server:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 17 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.EditorFor(m => m.Server));
#line default
#line hidden
WriteLiteral(" ");
#line 17 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.ValidationMessageFor(m => m.Server));
#line default
#line hidden
WriteLiteral("\r\n <div");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n If the default instance of SQL Server is not being use" +
"d, include the instance name.<br />\r\n For example: <span");
WriteLiteral(" class=\"code\"");
WriteLiteral(">\"SERVER_NAME\\INSTANCE_NAME\"</span>\r\n </div>\r\n " +
"</td>\r\n </tr>\r\n <tr>\r\n <th>Database Name:\r\n" +
" </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 28 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.EditorFor(m => m.DatabaseName));
#line default
#line hidden
WriteLiteral(" ");
#line 28 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.ValidationMessageFor(m => m.DatabaseName));
#line default
#line hidden
WriteLiteral("\r\n <div");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(@">
An attempt will be made to create a database with this name if it does not exist.
</div>
</td>
</tr>
<tr>
<th>Authentication Method:
</th>
<td>
");
WriteLiteral(" ");
#line 38 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.DropDownListFor(m => m.AuthMethod, Model.AuthMethods));
#line default
#line hidden
WriteLiteral(" ");
#line 38 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.ValidationMessageFor(m => m.AuthMethod));
#line default
#line hidden
WriteLiteral("\r\n <div");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n Integrated Authentication is recommended.<br />\r\n " +
" To use Integrated Authentication ensure the <span");
WriteLiteral(" class=\"code\"");
WriteLiteral(">DiscoServiceAccount</span> domain user has the <span");
WriteLiteral(" class=\"code\"");
WriteLiteral(">db_owner</span> role over the database, or <span");
WriteLiteral(" class=\"code\"");
WriteLiteral(">sysadmin</span> role if creating a new database.\r\n </div>\r\n " +
" <div");
WriteLiteral(" id=\"auth_Sql\"");
WriteLiteral(" style=\"margin-top: 15px; display: none;\"");
WriteLiteral(">\r\n <h4>SQL Authentication Credentials</h4>\r\n " +
" <div");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n The following credentials will be stored in clear-" +
"text.\r\n </div>\r\n <table");
WriteLiteral(" class=\"sub\"");
WriteLiteral(">\r\n <tr>\r\n <th>Username" +
":</th>\r\n <td>");
#line 51 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.EditorFor(m => m.Auth_SQL_Username));
#line default
#line hidden
WriteLiteral(" ");
#line 51 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.ValidationMessageFor(m => m.Auth_SQL_Username));
#line default
#line hidden
WriteLiteral("</td>\r\n </tr>\r\n <tr>\r\n " +
" <th>Password:</th>\r\n <" +
"td>");
#line 55 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.EditorFor(m => m.Auth_SQL_Password));
#line default
#line hidden
WriteLiteral(" ");
#line 55 "..\..\Views\InitialConfig\Database.cshtml"
Write(Html.ValidationMessageFor(m => m.Auth_SQL_Password));
#line default
#line hidden
WriteLiteral("</td>\r\n </tr>\r\n </table>\r\n " +
" </div>\r\n </td>\r\n </tr>\r\n </table" +
">\r\n </div>\r\n");
WriteLiteral(" <div");
WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n <input");
WriteLiteral(" id=\"submitForm\"");
WriteLiteral(" type=\"submit\"");
WriteLiteral(" class=\"button\"");
WriteLiteral(" value=\"Continue\"");
WriteLiteral(" />\r\n </div>\r\n");
#line 66 "..\..\Views\InitialConfig\Database.cshtml"
}
#line default
#line hidden
WriteLiteral("<div");
WriteLiteral(" id=\"dialogWait\"");
WriteLiteral(" title=\"Please Wait\"");
WriteLiteral(">\r\n <h2><span");
WriteLiteral(" class=\"ajaxLoading\"");
WriteLiteral("></span>Building and Validating Database</h2>\r\n <div>Please wait while the Dis" +
"co database is created and/or validated</div>\r\n</div>\r\n<script>\r\n (function (" +
") {\r\n\r\n $(function () {\r\n var initialized = false;\r\n\r\n " +
" $(\'#AuthMethod\').change(function () {\r\n $this = $(this);\r\n " +
" if ($this.val() === \'SQL\') {\r\n // Enable Validat" +
"ion\r\n $(\'#Auth_SQL_Username\').attr(\'data-val\', true).attr(\'da" +
"ta-val-required\', \'The Username is required\');\r\n $(\'#Auth_SQL" +
"_Password\').attr(\'data-val\', true).attr(\'data-val-required\', \'The Password is re" +
"quired\');\r\n\r\n $(\'#auth_Sql\').slideDown();\r\n } " +
"else {\r\n $(\'#Auth_SQL_Username\').attr(\'data-val\', false);\r\n " +
" $(\'#Auth_SQL_Password\').attr(\'data-val\', false);\r\n\r\n " +
" $(\'#auth_Sql\').slideUp();\r\n }\r\n\r\n // Reb" +
"uild Validation\r\n if (initialized) {\r\n $.valid" +
"ator.unobtrusive.reparse(\'#auth_Sql\');\r\n }\r\n }).change" +
"();\r\n\r\n $(\'#dialogWait\').dialog({\r\n autoOpen: false,\r\n" +
" draggable: false,\r\n modal: true,\r\n " +
" resizable: false,\r\n width: 400,\r\n height: 150,\r\n " +
" closeOnEscape: false\r\n }).closest(\'.ui-dialog\').find(\'" +
".ui-dialog-titlebar-close\').hide();\r\n\r\n $(\'#submitForm\').closest(\'for" +
"m\').submit(function () {\r\n if ($(this).valid()) {\r\n " +
" $(\'#dialogWait\').dialog(\'open\');\r\n }\r\n retur" +
"n true;\r\n });\r\n\r\n initialized = true;\r\n });\r\n\r\n " +
"})();\r\n</script>\r\n");
}
}
}
#pragma warning restore 1591
+249 -249
View File
@@ -1,249 +1,249 @@
@model Disco.Web.Models.InitialConfig.FileStoreModel
@{
ViewBag.Title = null;
Html.BundleDeferred("~/Style/jQueryUI/dynatree");
Html.BundleDeferred("~/ClientScripts/Modules/jQueryUI-DynaTree");
}
<h1>@CommonHelpers.Breadcrumbs(Html.ToBreadcrumb("Initial Configuration", MVC.InitialConfig.Index(), "File Store"))</h1>
<div id="initialConfig_FileStore">
@Html.ValidationSummary(false)
<div class="form" style="width: 650px">
<h2>File Store Location</h2>
<table>
<tr>
<td>
<div id="treeFilesystem">
</div>
<div id="treeFilesystemActions">
<a id="createDirectory" href="#" class="button" disabled="disabled">Create Directory</a>
</div>
</td>
</tr>
<tr>
<td>
<div>
Selected Location: <span id="locationPath" class="code">&lt;None&gt;</span> <span id="locationPathInvalid" class="smallMessage">(Invalid DataStore Location)</span>
</div>
</td>
</tr>
</table>
</div>
@using (Html.BeginForm())
{
@Html.HiddenFor(m => m.FileStoreLocation)
<div class="actionBar">
<input id="submitForm" type="submit" class="button" value="Continue" disabled="disabled" />
</div>
}
</div>
<div id="dialogWait" title="Please Wait">
<h2><span class="ajaxLoading"></span>Building and Validating File Store</h2>
<div>Please wait while the Disco File Store is created and/or validated</div>
</div>
<div id="dialogCreateDirectory" title="Create Directory">
<h2>Create Directory</h2>
<input type="text" id="createDirectoryName" />
<div>Parent: <span id="createDirectoryParent" class="code"></span></div>
</div>
<script>
(function () {
var fileSystemBranchUrl = '@(Url.Action(MVC.InitialConfig.FileStoreBranch()))';
var fileSystemInitialBranches = null;
var fileSystemBranchSelected = null;
var $treeFilesystem = $('#treeFilesystem');
var nodeDataLoaded = function (node) {
var addedNodes = [];
var previousUpdateMode = node.tree.enableUpdate(false);
var descriptor = node.data.fileSystemDescriptor;
// Sub Folders
if (descriptor.SubDirectories) {
var hasSubDirectories = false;
for (var k in descriptor.SubDirectories) {
hasSubDirectories = true;
var d = descriptor.SubDirectories[k];
var n = node.addChild({ key: d.Path, title: d.IsNew ? d.Name + ' [New]' : d.Name, tooltip: d.Path, unselectable: !d.Selectable, addClass: 'directory', isLazy: true, isFolder: true, fileSystemDescriptor: d });
addedNodes.push(n);
if (d.SubDirectories) {
nodeDataLoaded(n);
}
}
if (!hasSubDirectories) {
// Leaf
node.data.isLazy = false;
if (!fileSystemInitialBranches)
node.render();
}
}
node.setLazyNodeStatus(DTNodeStatus_Ok);
node.tree.enableUpdate(previousUpdateMode);
return addedNodes;
}
var loadNodeData = function (node) {
var descriptor = node.data.fileSystemDescriptor;
if (!descriptor.SubDirectories) {
$.ajax({
url: fileSystemBranchUrl,
dataType: 'json',
data: { Path: descriptor.Path },
success: function (data) {
node.data.fileSystemDescriptor = data;
return nodeDataLoaded(node);
},
error: function () {
alert('Unable to access this path: ' + descriptor.Path);
node.remove();
}
})
} else {
return nodeDataLoaded(node);
}
}
var lazyLoadNode = function (node) {
if (node.data.fileSystemDescriptor) {
node.setLazyNodeStatus(DTNodeStatus_Loading);
loadNodeData(node);
} else {
node.setLazyNodeStatus(DTNodeStatus_Ok);
}
}
var activeNodeUpdated = function () {
var activeNode = $("#treeFilesystem").dynatree("getActiveNode");
if (activeNode !== null) {
fileSystemBranchSelected = activeNode.data.fileSystemDescriptor;
} else {
fileSystemBranchSelected = null
}
if (fileSystemBranchSelected !== null) {
$('#locationPath').text(fileSystemBranchSelected.Path);
$('#createDirectory').attr('disabled', false);
if (fileSystemBranchSelected.Selectable) {
$('#submitForm').attr('disabled', false);
$('#locationPathInvalid').hide();
} else {
$('#submitForm').attr('disabled', true);
$('#locationPathInvalid').show();
}
} else {
$('#createDirectory').attr('disabled', true);
$('#submitForm').attr('disabled', true);
$('#locationPath').text('<None>');
$('#locationPathInvalid').show();
}
}
var scrollToNode = function (node) {
var $li = $(node.li);
var $treeRoot = $($treeFilesystem.dynatree('getRoot').ul);
var ih = $li.height();
var th = $treeRoot.height();
var ts = $treeRoot.scrollTop();
var is = $li.position().top;
if ((ih + is) > th) {
if (ih > th) {
$treeRoot.animate({ 'scrollTop': (is + ts) }, 'fast');
} else {
$treeRoot.animate({ 'scrollTop': (ih + is + ts - th) }, 'fast');
}
}
}
var nodeExpanded = function (flag, node) {
if (flag)
window.setTimeout(function () { scrollToNode(node); }, 1);
}
var nodeDeactivated = function () {
activeNodeUpdated();
}
var nodeActivated = function (node) {
activeNodeUpdated();
nodeExpanded(true, node);
}
$(function () {
$('#dialogWait').dialog({
autoOpen: false,
draggable: false,
modal: true,
resizable: false,
width: 400,
height: 150,
closeOnEscape: false
}).closest('.ui-dialog').find('.ui-dialog-titlebar-close').hide();
$('#dialogCreateDirectory').dialog({
autoOpen: false,
draggable: false,
modal: true,
resizable: false,
width: 400,
height: 180,
buttons: {
'Cancel': function () {
$('#dialogCreateDirectory').dialog('close');
},
'Create Directory': function () {
var activeNode = $("#treeFilesystem").dynatree("getActiveNode");
if (activeNode) {
var name = $('#createDirectoryName').val();
d = {
Name: name,
Path: fileSystemBranchSelected.Path.charAt(fileSystemBranchSelected.Path.length - 1) === '\\' ? fileSystemBranchSelected.Path + name : fileSystemBranchSelected.Path + '\\' + name,
IsNew: true,
Selectable: true,
SubDirectories: {}
}
activeNode.addChild({ title: d.Name + ' [New]', tooltip: d.Path, unselectable: !d.Selectable, addClass: 'newDirectory', isLazy: false, isFolder: true, fileSystemDescriptor: d }).activate();
}
$('#dialogCreateDirectory').dialog('close');
}
}
})
$('#createDirectory').click(function () {
if (fileSystemBranchSelected) {
$('#dialogCreateDirectory').dialog('open');
$('#createDirectoryName').val('').focus();
$('#createDirectoryParent').text(fileSystemBranchSelected.Path);
}
return false;
});
$('#submitForm').closest('form').submit(function () {
if (fileSystemBranchSelected && fileSystemBranchSelected.Selectable) {
if ($(this).valid()) {
$('#dialogWait').dialog('open');
$('#FileStoreLocation').val(fileSystemBranchSelected.Path);
}
return true;
} else {
alert('Invalid FileStore Location');
return false;
}
});
$treeFilesystem.dynatree({ onLazyRead: lazyLoadNode, onActivate: nodeActivated, onDeactivate: nodeDeactivated, onExpand: nodeExpanded });
var rootNode = $treeFilesystem.dynatree('getRoot');
var previousUpdateMode = rootNode.tree.enableUpdate(false);
rootNode.data.fileSystemDescriptor = fileSystemInitialBranches[0];
loadNodeData(rootNode);
rootNode.tree.enableUpdate(previousUpdateMode);
var initialValue = $('#FileStoreLocation').val();
if (initialValue) {
var initialNode = rootNode.tree.getNodeByKey(initialValue);
if (initialNode)
initialNode.activate();
}
fileSystemInitialBranches = null;
});
fileSystemInitialBranches = [@(new HtmlString(Json.Encode(Model.DirectoryModel)))];
})();
</script>
@model Disco.Web.Models.InitialConfig.FileStoreModel
@{
ViewBag.Title = null;
Html.BundleDeferred("~/Style/jQueryUI/dynatree");
Html.BundleDeferred("~/ClientScripts/Modules/jQueryUI-DynaTree");
}
<h1>@CommonHelpers.Breadcrumbs(Html.ToBreadcrumb("Initial Configuration", MVC.InitialConfig.Index(), "File Store"))</h1>
<div id="initialConfig_FileStore">
@Html.ValidationSummary(false)
<div class="form" style="width: 650px">
<h2>File Store Location</h2>
<table>
<tr>
<td>
<div id="treeFilesystem">
</div>
<div id="treeFilesystemActions">
<a id="createDirectory" href="#" class="button" disabled="disabled">Create Directory</a>
</div>
</td>
</tr>
<tr>
<td>
<div>
Selected Location: <span id="locationPath" class="code">&lt;None&gt;</span> <span id="locationPathInvalid" class="smallMessage">(Invalid DataStore Location)</span>
</div>
</td>
</tr>
</table>
</div>
@using (Html.BeginForm())
{
@Html.HiddenFor(m => m.FileStoreLocation)
<div class="actionBar">
<input id="submitForm" type="submit" class="button" value="Continue" disabled="disabled" />
</div>
}
</div>
<div id="dialogWait" title="Please Wait">
<h2><span class="ajaxLoading"></span>Building and Validating File Store</h2>
<div>Please wait while the Disco File Store is created and/or validated</div>
</div>
<div id="dialogCreateDirectory" title="Create Directory">
<h2>Create Directory</h2>
<input type="text" id="createDirectoryName" />
<div>Parent: <span id="createDirectoryParent" class="code"></span></div>
</div>
<script>
(function () {
var fileSystemBranchUrl = '@(Url.Action(MVC.InitialConfig.FileStoreBranch()))';
var fileSystemInitialBranches = null;
var fileSystemBranchSelected = null;
var $treeFilesystem = $('#treeFilesystem');
var nodeDataLoaded = function (node) {
var addedNodes = [];
var previousUpdateMode = node.tree.enableUpdate(false);
var descriptor = node.data.fileSystemDescriptor;
// Sub Folders
if (descriptor.SubDirectories) {
var hasSubDirectories = false;
for (var k in descriptor.SubDirectories) {
hasSubDirectories = true;
var d = descriptor.SubDirectories[k];
var n = node.addChild({ key: d.Path, title: d.IsNew ? d.Name + ' [New]' : d.Name, tooltip: d.Path, unselectable: !d.Selectable, addClass: 'directory', isLazy: true, isFolder: true, fileSystemDescriptor: d });
addedNodes.push(n);
if (d.SubDirectories) {
nodeDataLoaded(n);
}
}
if (!hasSubDirectories) {
// Leaf
node.data.isLazy = false;
if (!fileSystemInitialBranches)
node.render();
}
}
node.setLazyNodeStatus(DTNodeStatus_Ok);
node.tree.enableUpdate(previousUpdateMode);
return addedNodes;
}
var loadNodeData = function (node) {
var descriptor = node.data.fileSystemDescriptor;
if (!descriptor.SubDirectories) {
$.ajax({
url: fileSystemBranchUrl,
dataType: 'json',
data: { Path: descriptor.Path },
success: function (data) {
node.data.fileSystemDescriptor = data;
return nodeDataLoaded(node);
},
error: function () {
alert('Unable to access this path: ' + descriptor.Path);
node.remove();
}
})
} else {
return nodeDataLoaded(node);
}
}
var lazyLoadNode = function (node) {
if (node.data.fileSystemDescriptor) {
node.setLazyNodeStatus(DTNodeStatus_Loading);
loadNodeData(node);
} else {
node.setLazyNodeStatus(DTNodeStatus_Ok);
}
}
var activeNodeUpdated = function () {
var activeNode = $("#treeFilesystem").dynatree("getActiveNode");
if (activeNode !== null) {
fileSystemBranchSelected = activeNode.data.fileSystemDescriptor;
} else {
fileSystemBranchSelected = null
}
if (fileSystemBranchSelected !== null) {
$('#locationPath').text(fileSystemBranchSelected.Path);
$('#createDirectory').attr('disabled', false);
if (fileSystemBranchSelected.Selectable) {
$('#submitForm').attr('disabled', false);
$('#locationPathInvalid').hide();
} else {
$('#submitForm').attr('disabled', true);
$('#locationPathInvalid').show();
}
} else {
$('#createDirectory').attr('disabled', true);
$('#submitForm').attr('disabled', true);
$('#locationPath').text('<None>');
$('#locationPathInvalid').show();
}
}
var scrollToNode = function (node) {
var $li = $(node.li);
var $treeRoot = $($treeFilesystem.dynatree('getRoot').ul);
var ih = $li.height();
var th = $treeRoot.height();
var ts = $treeRoot.scrollTop();
var is = $li.position().top;
if ((ih + is) > th) {
if (ih > th) {
$treeRoot.animate({ 'scrollTop': (is + ts) }, 'fast');
} else {
$treeRoot.animate({ 'scrollTop': (ih + is + ts - th) }, 'fast');
}
}
}
var nodeExpanded = function (flag, node) {
if (flag)
window.setTimeout(function () { scrollToNode(node); }, 1);
}
var nodeDeactivated = function () {
activeNodeUpdated();
}
var nodeActivated = function (node) {
activeNodeUpdated();
nodeExpanded(true, node);
}
$(function () {
$('#dialogWait').dialog({
autoOpen: false,
draggable: false,
modal: true,
resizable: false,
width: 400,
height: 150,
closeOnEscape: false
}).closest('.ui-dialog').find('.ui-dialog-titlebar-close').hide();
$('#dialogCreateDirectory').dialog({
autoOpen: false,
draggable: false,
modal: true,
resizable: false,
width: 400,
height: 180,
buttons: {
'Cancel': function () {
$('#dialogCreateDirectory').dialog('close');
},
'Create Directory': function () {
var activeNode = $("#treeFilesystem").dynatree("getActiveNode");
if (activeNode) {
var name = $('#createDirectoryName').val();
d = {
Name: name,
Path: fileSystemBranchSelected.Path.charAt(fileSystemBranchSelected.Path.length - 1) === '\\' ? fileSystemBranchSelected.Path + name : fileSystemBranchSelected.Path + '\\' + name,
IsNew: true,
Selectable: true,
SubDirectories: {}
}
activeNode.addChild({ title: d.Name + ' [New]', tooltip: d.Path, unselectable: !d.Selectable, addClass: 'newDirectory', isLazy: false, isFolder: true, fileSystemDescriptor: d }).activate();
}
$('#dialogCreateDirectory').dialog('close');
}
}
})
$('#createDirectory').click(function () {
if (fileSystemBranchSelected) {
$('#dialogCreateDirectory').dialog('open');
$('#createDirectoryName').val('').focus();
$('#createDirectoryParent').text(fileSystemBranchSelected.Path);
}
return false;
});
$('#submitForm').closest('form').submit(function () {
if (fileSystemBranchSelected && fileSystemBranchSelected.Selectable) {
if ($(this).valid()) {
$('#dialogWait').dialog('open');
$('#FileStoreLocation').val(fileSystemBranchSelected.Path);
}
return true;
} else {
alert('Invalid FileStore Location');
return false;
}
});
$treeFilesystem.dynatree({ onLazyRead: lazyLoadNode, onActivate: nodeActivated, onDeactivate: nodeDeactivated, onExpand: nodeExpanded });
var rootNode = $treeFilesystem.dynatree('getRoot');
var previousUpdateMode = rootNode.tree.enableUpdate(false);
rootNode.data.fileSystemDescriptor = fileSystemInitialBranches[0];
loadNodeData(rootNode);
rootNode.tree.enableUpdate(previousUpdateMode);
var initialValue = $('#FileStoreLocation').val();
if (initialValue) {
var initialNode = rootNode.tree.getNodeByKey(initialValue);
if (initialNode)
initialNode.activate();
}
fileSystemInitialBranches = null;
});
fileSystemInitialBranches = [@(new HtmlString(Json.Encode(Model.DirectoryModel)))];
})();
</script>
@@ -1,329 +1,329 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.InitialConfig
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/InitialConfig/FileStore.cshtml")]
public class FileStore : System.Web.Mvc.WebViewPage<Disco.Web.Models.InitialConfig.FileStoreModel>
{
public FileStore()
{
}
public override void Execute()
{
#line 2 "..\..\Views\InitialConfig\FileStore.cshtml"
ViewBag.Title = null;
Html.BundleDeferred("~/Style/jQueryUI/dynatree");
Html.BundleDeferred("~/ClientScripts/Modules/jQueryUI-DynaTree");
#line default
#line hidden
WriteLiteral("\r\n<h1>");
#line 7 "..\..\Views\InitialConfig\FileStore.cshtml"
Write(CommonHelpers.Breadcrumbs(Html.ToBreadcrumb("Initial Configuration", MVC.InitialConfig.Index(), "File Store")));
#line default
#line hidden
WriteLiteral("</h1>\r\n<div");
WriteLiteral(" id=\"initialConfig_FileStore\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 9 "..\..\Views\InitialConfig\FileStore.cshtml"
Write(Html.ValidationSummary(false));
#line default
#line hidden
WriteLiteral("\r\n\r\n <div");
WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 650px\"");
WriteLiteral(">\r\n <h2>File Store Location</h2>\r\n <table>\r\n <tr>\r\n " +
" <td>\r\n <div");
WriteLiteral(" id=\"treeFilesystem\"");
WriteLiteral(">\r\n </div>\r\n <div");
WriteLiteral(" id=\"treeFilesystemActions\"");
WriteLiteral(">\r\n <a");
WriteLiteral(" id=\"createDirectory\"");
WriteLiteral(" href=\"#\"");
WriteLiteral(" class=\"button\"");
WriteLiteral(" disabled=\"disabled\"");
WriteLiteral(">Create Directory</a>\r\n </div>\r\n </td>\r\n " +
" </tr>\r\n <tr>\r\n <td>\r\n <div>\r\n " +
" Selected Location: <span");
WriteLiteral(" id=\"locationPath\"");
WriteLiteral(" class=\"code\"");
WriteLiteral(">&lt;None&gt;</span> <span");
WriteLiteral(" id=\"locationPathInvalid\"");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">(Invalid DataStore Location)</span>\r\n </div>\r\n " +
" </td>\r\n </tr>\r\n </table>\r\n </div>\r\n");
#line 32 "..\..\Views\InitialConfig\FileStore.cshtml"
#line default
#line hidden
#line 32 "..\..\Views\InitialConfig\FileStore.cshtml"
using (Html.BeginForm())
{
#line default
#line hidden
#line 34 "..\..\Views\InitialConfig\FileStore.cshtml"
Write(Html.HiddenFor(m => m.FileStoreLocation));
#line default
#line hidden
#line 34 "..\..\Views\InitialConfig\FileStore.cshtml"
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n <input");
WriteLiteral(" id=\"submitForm\"");
WriteLiteral(" type=\"submit\"");
WriteLiteral(" class=\"button\"");
WriteLiteral(" value=\"Continue\"");
WriteLiteral(" disabled=\"disabled\"");
WriteLiteral(" />\r\n </div>\r\n");
#line 38 "..\..\Views\InitialConfig\FileStore.cshtml"
}
#line default
#line hidden
WriteLiteral("</div>\r\n<div");
WriteLiteral(" id=\"dialogWait\"");
WriteLiteral(" title=\"Please Wait\"");
WriteLiteral(">\r\n <h2><span");
WriteLiteral(" class=\"ajaxLoading\"");
WriteLiteral("></span>Building and Validating File Store</h2>\r\n <div>Please wait while the D" +
"isco File Store is created and/or validated</div>\r\n</div>\r\n<div");
WriteLiteral(" id=\"dialogCreateDirectory\"");
WriteLiteral(" title=\"Create Directory\"");
WriteLiteral(">\r\n <h2>Create Directory</h2>\r\n <input");
WriteLiteral(" type=\"text\"");
WriteLiteral(" id=\"createDirectoryName\"");
WriteLiteral(" />\r\n <div>Parent: <span");
WriteLiteral(" id=\"createDirectoryParent\"");
WriteLiteral(" class=\"code\"");
WriteLiteral("></span></div>\r\n</div>\r\n<script>\r\n (function () {\r\n var fileSystemBranc" +
"hUrl = \'");
#line 51 "..\..\Views\InitialConfig\FileStore.cshtml"
Write(Url.Action(MVC.InitialConfig.FileStoreBranch()));
#line default
#line hidden
WriteLiteral("\';\r\n var fileSystemInitialBranches = null;\r\n var fileSystemBranchSe" +
"lected = null;\r\n var $treeFilesystem = $(\'#treeFilesystem\');\r\n\r\n v" +
"ar nodeDataLoaded = function (node) {\r\n var addedNodes = [];\r\n " +
" var previousUpdateMode = node.tree.enableUpdate(false);\r\n var de" +
"scriptor = node.data.fileSystemDescriptor;\r\n // Sub Folders\r\n " +
" if (descriptor.SubDirectories) {\r\n var hasSubDirectories = fa" +
"lse;\r\n for (var k in descriptor.SubDirectories) {\r\n " +
" hasSubDirectories = true;\r\n var d = descriptor.SubDirec" +
"tories[k];\r\n var n = node.addChild({ key: d.Path, title: d.Is" +
"New ? d.Name + \' [New]\' : d.Name, tooltip: d.Path, unselectable: !d.Selectable, " +
"addClass: \'directory\', isLazy: true, isFolder: true, fileSystemDescriptor: d });" +
"\r\n addedNodes.push(n);\r\n\r\n if (d.SubDirect" +
"ories) {\r\n nodeDataLoaded(n);\r\n }\r\n " +
" }\r\n if (!hasSubDirectories) {\r\n /" +
"/ Leaf\r\n node.data.isLazy = false;\r\n if (!" +
"fileSystemInitialBranches)\r\n node.render();\r\n " +
" }\r\n }\r\n node.setLazyNodeStatus(DTNodeStatus_Ok);\r\n " +
" node.tree.enableUpdate(previousUpdateMode);\r\n return addedNod" +
"es;\r\n }\r\n var loadNodeData = function (node) {\r\n var de" +
"scriptor = node.data.fileSystemDescriptor;\r\n\r\n if (!descriptor.SubDir" +
"ectories) {\r\n $.ajax({\r\n url: fileSystemBranch" +
"Url,\r\n dataType: \'json\',\r\n data: { Path: d" +
"escriptor.Path },\r\n success: function (data) {\r\n " +
" node.data.fileSystemDescriptor = data;\r\n retur" +
"n nodeDataLoaded(node);\r\n },\r\n error: func" +
"tion () {\r\n alert(\'Unable to access this path: \' + descri" +
"ptor.Path);\r\n node.remove();\r\n }\r\n " +
" })\r\n } else {\r\n return nodeDataLoaded(node" +
");\r\n }\r\n }\r\n var lazyLoadNode = function (node) {\r\n " +
" if (node.data.fileSystemDescriptor) {\r\n node.setLazyNodeS" +
"tatus(DTNodeStatus_Loading);\r\n loadNodeData(node);\r\n }" +
" else {\r\n node.setLazyNodeStatus(DTNodeStatus_Ok);\r\n }" +
"\r\n }\r\n var activeNodeUpdated = function () {\r\n var acti" +
"veNode = $(\"#treeFilesystem\").dynatree(\"getActiveNode\");\r\n\r\n if (acti" +
"veNode !== null) {\r\n fileSystemBranchSelected = activeNode.data.f" +
"ileSystemDescriptor;\r\n } else {\r\n fileSystemBranchSele" +
"cted = null\r\n }\r\n\r\n if (fileSystemBranchSelected !== null)" +
" {\r\n $(\'#locationPath\').text(fileSystemBranchSelected.Path);\r\n " +
" $(\'#createDirectory\').attr(\'disabled\', false);\r\n if " +
"(fileSystemBranchSelected.Selectable) {\r\n $(\'#submitForm\').at" +
"tr(\'disabled\', false);\r\n $(\'#locationPathInvalid\').hide();\r\n " +
" } else {\r\n $(\'#submitForm\').attr(\'disabled\', t" +
"rue);\r\n $(\'#locationPathInvalid\').show();\r\n }\r" +
"\n } else {\r\n $(\'#createDirectory\').attr(\'disabled\', tr" +
"ue);\r\n $(\'#submitForm\').attr(\'disabled\', true);\r\n " +
"$(\'#locationPath\').text(\'<None>\');\r\n $(\'#locationPathInvalid\').sh" +
"ow();\r\n }\r\n }\r\n var scrollToNode = function (node) {\r\n " +
" var $li = $(node.li);\r\n var $treeRoot = $($treeFilesystem." +
"dynatree(\'getRoot\').ul);\r\n var ih = $li.height();\r\n var th" +
" = $treeRoot.height();\r\n var ts = $treeRoot.scrollTop();\r\n " +
" var is = $li.position().top;\r\n if ((ih + is) > th) {\r\n " +
" if (ih > th) {\r\n $treeRoot.animate({ \'scrollTop\': (is + ts)" +
" }, \'fast\');\r\n } else {\r\n $treeRoot.animate({ " +
"\'scrollTop\': (ih + is + ts - th) }, \'fast\');\r\n }\r\n }\r\n" +
" }\r\n var nodeExpanded = function (flag, node) {\r\n if (f" +
"lag)\r\n window.setTimeout(function () { scrollToNode(node); }, 1);" +
"\r\n }\r\n var nodeDeactivated = function () {\r\n activeNode" +
"Updated();\r\n }\r\n var nodeActivated = function (node) {\r\n " +
" activeNodeUpdated();\r\n nodeExpanded(true, node);\r\n }\r\n\r\n " +
" $(function () {\r\n $(\'#dialogWait\').dialog({\r\n auto" +
"Open: false,\r\n draggable: false,\r\n modal: true,\r\n " +
" resizable: false,\r\n width: 400,\r\n h" +
"eight: 150,\r\n closeOnEscape: false\r\n }).closest(\'.ui-d" +
"ialog\').find(\'.ui-dialog-titlebar-close\').hide();\r\n\r\n $(\'#dialogCreat" +
"eDirectory\').dialog({\r\n autoOpen: false,\r\n draggab" +
"le: false,\r\n modal: true,\r\n resizable: false,\r\n " +
" width: 400,\r\n height: 180,\r\n buttons:" +
" {\r\n \'Cancel\': function () {\r\n $(\'#dia" +
"logCreateDirectory\').dialog(\'close\');\r\n },\r\n " +
" \'Create Directory\': function () {\r\n var activeNode = $" +
"(\"#treeFilesystem\").dynatree(\"getActiveNode\");\r\n if (acti" +
"veNode) {\r\n var name = $(\'#createDirectoryName\').val(" +
");\r\n d = {\r\n Name: nam" +
"e,\r\n Path: fileSystemBranchSelected.Path.charAt(f" +
"ileSystemBranchSelected.Path.length - 1) === \'\\\\\' ? fileSystemBranchSelected.Pat" +
"h + name : fileSystemBranchSelected.Path + \'\\\\\' + name,\r\n " +
" IsNew: true,\r\n Selectable: true,\r\n " +
" SubDirectories: {}\r\n }\r\n " +
" activeNode.addChild({ title: d.Name + \' [New]\', tooltip" +
": d.Path, unselectable: !d.Selectable, addClass: \'newDirectory\', isLazy: false, " +
"isFolder: true, fileSystemDescriptor: d }).activate();\r\n " +
"}\r\n $(\'#dialogCreateDirectory\').dialog(\'close\');\r\n " +
" }\r\n }\r\n })\r\n\r\n $(\'#createDirec" +
"tory\').click(function () {\r\n if (fileSystemBranchSelected) {\r\n " +
" $(\'#dialogCreateDirectory\').dialog(\'open\');\r\n " +
" $(\'#createDirectoryName\').val(\'\').focus();\r\n $(\'#createDire" +
"ctoryParent\').text(fileSystemBranchSelected.Path);\r\n }\r\n " +
" return false;\r\n });\r\n\r\n $(\'#submitForm\').closest(\'f" +
"orm\').submit(function () {\r\n if (fileSystemBranchSelected && file" +
"SystemBranchSelected.Selectable) {\r\n if ($(this).valid()) {\r\n" +
" $(\'#dialogWait\').dialog(\'open\');\r\n " +
" $(\'#FileStoreLocation\').val(fileSystemBranchSelected.Path);\r\n " +
" }\r\n return true;\r\n } else {\r\n " +
" alert(\'Invalid FileStore Location\');\r\n return false;\r\n " +
" }\r\n });\r\n\r\n $treeFilesystem.dynatree({ onLa" +
"zyRead: lazyLoadNode, onActivate: nodeActivated, onDeactivate: nodeDeactivated, " +
"onExpand: nodeExpanded });\r\n var rootNode = $treeFilesystem.dynatree(" +
"\'getRoot\');\r\n\r\n var previousUpdateMode = rootNode.tree.enableUpdate(f" +
"alse);\r\n rootNode.data.fileSystemDescriptor = fileSystemInitialBranch" +
"es[0];\r\n loadNodeData(rootNode);\r\n rootNode.tree.enableUpd" +
"ate(previousUpdateMode);\r\n\r\n var initialValue = $(\'#FileStoreLocation" +
"\').val();\r\n if (initialValue) {\r\n var initialNode = ro" +
"otNode.tree.getNodeByKey(initialValue);\r\n if (initialNode)\r\n " +
" initialNode.activate();\r\n }\r\n\r\n fileSystemI" +
"nitialBranches = null;\r\n });\r\n\r\n\r\n fileSystemInitialBranches = [");
#line 247 "..\..\Views\InitialConfig\FileStore.cshtml"
Write(new HtmlString(Json.Encode(Model.DirectoryModel)));
#line default
#line hidden
WriteLiteral("];\r\n })();\r\n</script>\r\n");
}
}
}
#pragma warning restore 1591
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.InitialConfig
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/InitialConfig/FileStore.cshtml")]
public class FileStore : System.Web.Mvc.WebViewPage<Disco.Web.Models.InitialConfig.FileStoreModel>
{
public FileStore()
{
}
public override void Execute()
{
#line 2 "..\..\Views\InitialConfig\FileStore.cshtml"
ViewBag.Title = null;
Html.BundleDeferred("~/Style/jQueryUI/dynatree");
Html.BundleDeferred("~/ClientScripts/Modules/jQueryUI-DynaTree");
#line default
#line hidden
WriteLiteral("\r\n<h1>");
#line 7 "..\..\Views\InitialConfig\FileStore.cshtml"
Write(CommonHelpers.Breadcrumbs(Html.ToBreadcrumb("Initial Configuration", MVC.InitialConfig.Index(), "File Store")));
#line default
#line hidden
WriteLiteral("</h1>\r\n<div");
WriteLiteral(" id=\"initialConfig_FileStore\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 9 "..\..\Views\InitialConfig\FileStore.cshtml"
Write(Html.ValidationSummary(false));
#line default
#line hidden
WriteLiteral("\r\n\r\n <div");
WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 650px\"");
WriteLiteral(">\r\n <h2>File Store Location</h2>\r\n <table>\r\n <tr>\r\n " +
" <td>\r\n <div");
WriteLiteral(" id=\"treeFilesystem\"");
WriteLiteral(">\r\n </div>\r\n <div");
WriteLiteral(" id=\"treeFilesystemActions\"");
WriteLiteral(">\r\n <a");
WriteLiteral(" id=\"createDirectory\"");
WriteLiteral(" href=\"#\"");
WriteLiteral(" class=\"button\"");
WriteLiteral(" disabled=\"disabled\"");
WriteLiteral(">Create Directory</a>\r\n </div>\r\n </td>\r\n " +
" </tr>\r\n <tr>\r\n <td>\r\n <div>\r\n " +
" Selected Location: <span");
WriteLiteral(" id=\"locationPath\"");
WriteLiteral(" class=\"code\"");
WriteLiteral(">&lt;None&gt;</span> <span");
WriteLiteral(" id=\"locationPathInvalid\"");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">(Invalid DataStore Location)</span>\r\n </div>\r\n " +
" </td>\r\n </tr>\r\n </table>\r\n </div>\r\n");
#line 32 "..\..\Views\InitialConfig\FileStore.cshtml"
#line default
#line hidden
#line 32 "..\..\Views\InitialConfig\FileStore.cshtml"
using (Html.BeginForm())
{
#line default
#line hidden
#line 34 "..\..\Views\InitialConfig\FileStore.cshtml"
Write(Html.HiddenFor(m => m.FileStoreLocation));
#line default
#line hidden
#line 34 "..\..\Views\InitialConfig\FileStore.cshtml"
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n <input");
WriteLiteral(" id=\"submitForm\"");
WriteLiteral(" type=\"submit\"");
WriteLiteral(" class=\"button\"");
WriteLiteral(" value=\"Continue\"");
WriteLiteral(" disabled=\"disabled\"");
WriteLiteral(" />\r\n </div>\r\n");
#line 38 "..\..\Views\InitialConfig\FileStore.cshtml"
}
#line default
#line hidden
WriteLiteral("</div>\r\n<div");
WriteLiteral(" id=\"dialogWait\"");
WriteLiteral(" title=\"Please Wait\"");
WriteLiteral(">\r\n <h2><span");
WriteLiteral(" class=\"ajaxLoading\"");
WriteLiteral("></span>Building and Validating File Store</h2>\r\n <div>Please wait while the D" +
"isco File Store is created and/or validated</div>\r\n</div>\r\n<div");
WriteLiteral(" id=\"dialogCreateDirectory\"");
WriteLiteral(" title=\"Create Directory\"");
WriteLiteral(">\r\n <h2>Create Directory</h2>\r\n <input");
WriteLiteral(" type=\"text\"");
WriteLiteral(" id=\"createDirectoryName\"");
WriteLiteral(" />\r\n <div>Parent: <span");
WriteLiteral(" id=\"createDirectoryParent\"");
WriteLiteral(" class=\"code\"");
WriteLiteral("></span></div>\r\n</div>\r\n<script>\r\n (function () {\r\n var fileSystemBranc" +
"hUrl = \'");
#line 51 "..\..\Views\InitialConfig\FileStore.cshtml"
Write(Url.Action(MVC.InitialConfig.FileStoreBranch()));
#line default
#line hidden
WriteLiteral("\';\r\n var fileSystemInitialBranches = null;\r\n var fileSystemBranchSe" +
"lected = null;\r\n var $treeFilesystem = $(\'#treeFilesystem\');\r\n\r\n v" +
"ar nodeDataLoaded = function (node) {\r\n var addedNodes = [];\r\n " +
" var previousUpdateMode = node.tree.enableUpdate(false);\r\n var de" +
"scriptor = node.data.fileSystemDescriptor;\r\n // Sub Folders\r\n " +
" if (descriptor.SubDirectories) {\r\n var hasSubDirectories = fa" +
"lse;\r\n for (var k in descriptor.SubDirectories) {\r\n " +
" hasSubDirectories = true;\r\n var d = descriptor.SubDirec" +
"tories[k];\r\n var n = node.addChild({ key: d.Path, title: d.Is" +
"New ? d.Name + \' [New]\' : d.Name, tooltip: d.Path, unselectable: !d.Selectable, " +
"addClass: \'directory\', isLazy: true, isFolder: true, fileSystemDescriptor: d });" +
"\r\n addedNodes.push(n);\r\n\r\n if (d.SubDirect" +
"ories) {\r\n nodeDataLoaded(n);\r\n }\r\n " +
" }\r\n if (!hasSubDirectories) {\r\n /" +
"/ Leaf\r\n node.data.isLazy = false;\r\n if (!" +
"fileSystemInitialBranches)\r\n node.render();\r\n " +
" }\r\n }\r\n node.setLazyNodeStatus(DTNodeStatus_Ok);\r\n " +
" node.tree.enableUpdate(previousUpdateMode);\r\n return addedNod" +
"es;\r\n }\r\n var loadNodeData = function (node) {\r\n var de" +
"scriptor = node.data.fileSystemDescriptor;\r\n\r\n if (!descriptor.SubDir" +
"ectories) {\r\n $.ajax({\r\n url: fileSystemBranch" +
"Url,\r\n dataType: \'json\',\r\n data: { Path: d" +
"escriptor.Path },\r\n success: function (data) {\r\n " +
" node.data.fileSystemDescriptor = data;\r\n retur" +
"n nodeDataLoaded(node);\r\n },\r\n error: func" +
"tion () {\r\n alert(\'Unable to access this path: \' + descri" +
"ptor.Path);\r\n node.remove();\r\n }\r\n " +
" })\r\n } else {\r\n return nodeDataLoaded(node" +
");\r\n }\r\n }\r\n var lazyLoadNode = function (node) {\r\n " +
" if (node.data.fileSystemDescriptor) {\r\n node.setLazyNodeS" +
"tatus(DTNodeStatus_Loading);\r\n loadNodeData(node);\r\n }" +
" else {\r\n node.setLazyNodeStatus(DTNodeStatus_Ok);\r\n }" +
"\r\n }\r\n var activeNodeUpdated = function () {\r\n var acti" +
"veNode = $(\"#treeFilesystem\").dynatree(\"getActiveNode\");\r\n\r\n if (acti" +
"veNode !== null) {\r\n fileSystemBranchSelected = activeNode.data.f" +
"ileSystemDescriptor;\r\n } else {\r\n fileSystemBranchSele" +
"cted = null\r\n }\r\n\r\n if (fileSystemBranchSelected !== null)" +
" {\r\n $(\'#locationPath\').text(fileSystemBranchSelected.Path);\r\n " +
" $(\'#createDirectory\').attr(\'disabled\', false);\r\n if " +
"(fileSystemBranchSelected.Selectable) {\r\n $(\'#submitForm\').at" +
"tr(\'disabled\', false);\r\n $(\'#locationPathInvalid\').hide();\r\n " +
" } else {\r\n $(\'#submitForm\').attr(\'disabled\', t" +
"rue);\r\n $(\'#locationPathInvalid\').show();\r\n }\r" +
"\n } else {\r\n $(\'#createDirectory\').attr(\'disabled\', tr" +
"ue);\r\n $(\'#submitForm\').attr(\'disabled\', true);\r\n " +
"$(\'#locationPath\').text(\'<None>\');\r\n $(\'#locationPathInvalid\').sh" +
"ow();\r\n }\r\n }\r\n var scrollToNode = function (node) {\r\n " +
" var $li = $(node.li);\r\n var $treeRoot = $($treeFilesystem." +
"dynatree(\'getRoot\').ul);\r\n var ih = $li.height();\r\n var th" +
" = $treeRoot.height();\r\n var ts = $treeRoot.scrollTop();\r\n " +
" var is = $li.position().top;\r\n if ((ih + is) > th) {\r\n " +
" if (ih > th) {\r\n $treeRoot.animate({ \'scrollTop\': (is + ts)" +
" }, \'fast\');\r\n } else {\r\n $treeRoot.animate({ " +
"\'scrollTop\': (ih + is + ts - th) }, \'fast\');\r\n }\r\n }\r\n" +
" }\r\n var nodeExpanded = function (flag, node) {\r\n if (f" +
"lag)\r\n window.setTimeout(function () { scrollToNode(node); }, 1);" +
"\r\n }\r\n var nodeDeactivated = function () {\r\n activeNode" +
"Updated();\r\n }\r\n var nodeActivated = function (node) {\r\n " +
" activeNodeUpdated();\r\n nodeExpanded(true, node);\r\n }\r\n\r\n " +
" $(function () {\r\n $(\'#dialogWait\').dialog({\r\n auto" +
"Open: false,\r\n draggable: false,\r\n modal: true,\r\n " +
" resizable: false,\r\n width: 400,\r\n h" +
"eight: 150,\r\n closeOnEscape: false\r\n }).closest(\'.ui-d" +
"ialog\').find(\'.ui-dialog-titlebar-close\').hide();\r\n\r\n $(\'#dialogCreat" +
"eDirectory\').dialog({\r\n autoOpen: false,\r\n draggab" +
"le: false,\r\n modal: true,\r\n resizable: false,\r\n " +
" width: 400,\r\n height: 180,\r\n buttons:" +
" {\r\n \'Cancel\': function () {\r\n $(\'#dia" +
"logCreateDirectory\').dialog(\'close\');\r\n },\r\n " +
" \'Create Directory\': function () {\r\n var activeNode = $" +
"(\"#treeFilesystem\").dynatree(\"getActiveNode\");\r\n if (acti" +
"veNode) {\r\n var name = $(\'#createDirectoryName\').val(" +
");\r\n d = {\r\n Name: nam" +
"e,\r\n Path: fileSystemBranchSelected.Path.charAt(f" +
"ileSystemBranchSelected.Path.length - 1) === \'\\\\\' ? fileSystemBranchSelected.Pat" +
"h + name : fileSystemBranchSelected.Path + \'\\\\\' + name,\r\n " +
" IsNew: true,\r\n Selectable: true,\r\n " +
" SubDirectories: {}\r\n }\r\n " +
" activeNode.addChild({ title: d.Name + \' [New]\', tooltip" +
": d.Path, unselectable: !d.Selectable, addClass: \'newDirectory\', isLazy: false, " +
"isFolder: true, fileSystemDescriptor: d }).activate();\r\n " +
"}\r\n $(\'#dialogCreateDirectory\').dialog(\'close\');\r\n " +
" }\r\n }\r\n })\r\n\r\n $(\'#createDirec" +
"tory\').click(function () {\r\n if (fileSystemBranchSelected) {\r\n " +
" $(\'#dialogCreateDirectory\').dialog(\'open\');\r\n " +
" $(\'#createDirectoryName\').val(\'\').focus();\r\n $(\'#createDire" +
"ctoryParent\').text(fileSystemBranchSelected.Path);\r\n }\r\n " +
" return false;\r\n });\r\n\r\n $(\'#submitForm\').closest(\'f" +
"orm\').submit(function () {\r\n if (fileSystemBranchSelected && file" +
"SystemBranchSelected.Selectable) {\r\n if ($(this).valid()) {\r\n" +
" $(\'#dialogWait\').dialog(\'open\');\r\n " +
" $(\'#FileStoreLocation\').val(fileSystemBranchSelected.Path);\r\n " +
" }\r\n return true;\r\n } else {\r\n " +
" alert(\'Invalid FileStore Location\');\r\n return false;\r\n " +
" }\r\n });\r\n\r\n $treeFilesystem.dynatree({ onLa" +
"zyRead: lazyLoadNode, onActivate: nodeActivated, onDeactivate: nodeDeactivated, " +
"onExpand: nodeExpanded });\r\n var rootNode = $treeFilesystem.dynatree(" +
"\'getRoot\');\r\n\r\n var previousUpdateMode = rootNode.tree.enableUpdate(f" +
"alse);\r\n rootNode.data.fileSystemDescriptor = fileSystemInitialBranch" +
"es[0];\r\n loadNodeData(rootNode);\r\n rootNode.tree.enableUpd" +
"ate(previousUpdateMode);\r\n\r\n var initialValue = $(\'#FileStoreLocation" +
"\').val();\r\n if (initialValue) {\r\n var initialNode = ro" +
"otNode.tree.getNodeByKey(initialValue);\r\n if (initialNode)\r\n " +
" initialNode.activate();\r\n }\r\n\r\n fileSystemI" +
"nitialBranches = null;\r\n });\r\n\r\n\r\n fileSystemInitialBranches = [");
#line 247 "..\..\Views\InitialConfig\FileStore.cshtml"
Write(new HtmlString(Json.Encode(Model.DirectoryModel)));
#line default
#line hidden
WriteLiteral("];\r\n })();\r\n</script>\r\n");
}
}
}
#pragma warning restore 1591
@@ -1,34 +1,34 @@
@{
ViewBag.Title = null;
}
<h1>@CommonHelpers.Breadcrumbs("Initial Configuration > Starting Disco")</h1>
<div id="dialog" title="Please Wait" style="padding-top: 30px;">
<h2><span class="ajaxLoading" style="margin-right: 15px;"></span>Starting Disco</h2>
<div style="padding-left: 31px;">Please wait while the Disco environment is initialized</div>
</div>
<script>
(function () {
$(function () {
$('#dialog').dialog({
autoOpen: true,
draggable: false,
modal: true,
resizable: false,
width: 400,
height: 150,
closeOnEscape: false
}).closest('.ui-dialog').find('.ui-dialog-titlebar-close').hide();
var refresh = function () {
window.location.href = '/';
}
window.setTimeout(refresh, 2000);
$('#layout_Page').css('minHeight', '420px');
});
})();
</script>
@{
ViewBag.Title = null;
}
<h1>@CommonHelpers.Breadcrumbs("Initial Configuration > Starting Disco")</h1>
<div id="dialog" title="Please Wait" style="padding-top: 30px;">
<h2><span class="ajaxLoading" style="margin-right: 15px;"></span>Starting Disco</h2>
<div style="padding-left: 31px;">Please wait while the Disco environment is initialized</div>
</div>
<script>
(function () {
$(function () {
$('#dialog').dialog({
autoOpen: true,
draggable: false,
modal: true,
resizable: false,
width: 400,
height: 150,
closeOnEscape: false
}).closest('.ui-dialog').find('.ui-dialog-titlebar-close').hide();
var refresh = function () {
window.location.href = '/';
}
window.setTimeout(refresh, 2000);
$('#layout_Page').css('minHeight', '420px');
});
})();
</script>
@@ -1,111 +1,111 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.InitialConfig
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/InitialConfig/RestartWebApp.cshtml")]
public class RestartWebApp : System.Web.Mvc.WebViewPage<dynamic>
{
public RestartWebApp()
{
}
public override void Execute()
{
#line 1 "..\..\Views\InitialConfig\RestartWebApp.cshtml"
ViewBag.Title = null;
#line default
#line hidden
WriteLiteral("\r\n<h1>");
#line 4 "..\..\Views\InitialConfig\RestartWebApp.cshtml"
Write(CommonHelpers.Breadcrumbs("Initial Configuration > Starting Disco"));
#line default
#line hidden
WriteLiteral("</h1>\r\n<div");
WriteLiteral(" id=\"dialog\"");
WriteLiteral(" title=\"Please Wait\"");
WriteLiteral(" style=\"padding-top: 30px;\"");
WriteLiteral(">\r\n <h2><span");
WriteLiteral(" class=\"ajaxLoading\"");
WriteLiteral(" style=\"margin-right: 15px;\"");
WriteLiteral("></span>Starting Disco</h2>\r\n <div");
WriteLiteral(" style=\"padding-left: 31px;\"");
WriteLiteral(@">Please wait while the Disco environment is initialized</div>
</div>
<script>
(function () {
$(function () {
$('#dialog').dialog({
autoOpen: true,
draggable: false,
modal: true,
resizable: false,
width: 400,
height: 150,
closeOnEscape: false
}).closest('.ui-dialog').find('.ui-dialog-titlebar-close').hide();
var refresh = function () {
window.location.href = '/';
}
window.setTimeout(refresh, 2000);
$('#layout_Page').css('minHeight', '420px');
});
})();
</script>
");
}
}
}
#pragma warning restore 1591
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.InitialConfig
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/InitialConfig/RestartWebApp.cshtml")]
public class RestartWebApp : System.Web.Mvc.WebViewPage<dynamic>
{
public RestartWebApp()
{
}
public override void Execute()
{
#line 1 "..\..\Views\InitialConfig\RestartWebApp.cshtml"
ViewBag.Title = null;
#line default
#line hidden
WriteLiteral("\r\n<h1>");
#line 4 "..\..\Views\InitialConfig\RestartWebApp.cshtml"
Write(CommonHelpers.Breadcrumbs("Initial Configuration > Starting Disco"));
#line default
#line hidden
WriteLiteral("</h1>\r\n<div");
WriteLiteral(" id=\"dialog\"");
WriteLiteral(" title=\"Please Wait\"");
WriteLiteral(" style=\"padding-top: 30px;\"");
WriteLiteral(">\r\n <h2><span");
WriteLiteral(" class=\"ajaxLoading\"");
WriteLiteral(" style=\"margin-right: 15px;\"");
WriteLiteral("></span>Starting Disco</h2>\r\n <div");
WriteLiteral(" style=\"padding-left: 31px;\"");
WriteLiteral(@">Please wait while the Disco environment is initialized</div>
</div>
<script>
(function () {
$(function () {
$('#dialog').dialog({
autoOpen: true,
draggable: false,
modal: true,
resizable: false,
width: 400,
height: 150,
closeOnEscape: false
}).closest('.ui-dialog').find('.ui-dialog-titlebar-close').hide();
var refresh = function () {
window.location.href = '/';
}
window.setTimeout(refresh, 2000);
$('#layout_Page').css('minHeight', '420px');
});
})();
</script>
");
}
}
}
#pragma warning restore 1591
+34 -34
View File
@@ -1,34 +1,34 @@
@model Disco.Web.Models.InitialConfig.WelcomeModel
@{
ViewBag.Title = null;
}
<h1>Welcome to Disco ICT Management!</h1>
<div id="initialConfig_Welcome">
<p>The installation is complete, but a few things need to be configured before Disco can be started.</p>
@using (Html.BeginForm())
{
<div class="form" style="width: 400px">
<h2>Organisation Name</h2>
<table>
<tr>
<td>
<div>
@Html.EditorFor(m => m.OrganisationName)<br />
@Html.ValidationMessageFor(m => m.OrganisationName)
</div>
</td>
</tr>
</table>
</div>
<div class="actionBar">
<input id="submitForm" type="submit" class="button" value="Continue" />
</div>
}
</div>
<script>
(function () {
$(function () {
$('#OrganisationName').focus();
});
})();
</script>
@model Disco.Web.Models.InitialConfig.WelcomeModel
@{
ViewBag.Title = null;
}
<h1>Welcome to Disco ICT Management!</h1>
<div id="initialConfig_Welcome">
<p>The installation is complete, but a few things need to be configured before Disco can be started.</p>
@using (Html.BeginForm())
{
<div class="form" style="width: 400px">
<h2>Organisation Name</h2>
<table>
<tr>
<td>
<div>
@Html.EditorFor(m => m.OrganisationName)<br />
@Html.ValidationMessageFor(m => m.OrganisationName)
</div>
</td>
</tr>
</table>
</div>
<div class="actionBar">
<input id="submitForm" type="submit" class="button" value="Continue" />
</div>
}
</div>
<script>
(function () {
$(function () {
$('#OrganisationName').focus();
});
})();
</script>
+133 -133
View File
@@ -1,133 +1,133 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.InitialConfig
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/InitialConfig/Welcome.cshtml")]
public class Welcome : System.Web.Mvc.WebViewPage<Disco.Web.Models.InitialConfig.WelcomeModel>
{
public Welcome()
{
}
public override void Execute()
{
#line 2 "..\..\Views\InitialConfig\Welcome.cshtml"
ViewBag.Title = null;
#line default
#line hidden
WriteLiteral("\r\n<h1>Welcome to Disco ICT Management!</h1>\r\n<div");
WriteLiteral(" id=\"initialConfig_Welcome\"");
WriteLiteral(">\r\n <p>The installation is complete, but a few things need to be configured be" +
"fore Disco can be started.</p>\r\n");
#line 8 "..\..\Views\InitialConfig\Welcome.cshtml"
#line default
#line hidden
#line 8 "..\..\Views\InitialConfig\Welcome.cshtml"
using (Html.BeginForm())
{
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 400px\"");
WriteLiteral(">\r\n <h2>Organisation Name</h2>\r\n <table>\r\n <" +
"tr>\r\n <td>\r\n <div>\r\n");
WriteLiteral(" ");
#line 16 "..\..\Views\InitialConfig\Welcome.cshtml"
Write(Html.EditorFor(m => m.OrganisationName));
#line default
#line hidden
WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 17 "..\..\Views\InitialConfig\Welcome.cshtml"
Write(Html.ValidationMessageFor(m => m.OrganisationName));
#line default
#line hidden
WriteLiteral("\r\n </div>\r\n </td>\r\n </tr" +
">\r\n </table>\r\n </div>\r\n");
WriteLiteral(" <div");
WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n <input");
WriteLiteral(" id=\"submitForm\"");
WriteLiteral(" type=\"submit\"");
WriteLiteral(" class=\"button\"");
WriteLiteral(" value=\"Continue\"");
WriteLiteral(" />\r\n </div>\r\n");
#line 26 "..\..\Views\InitialConfig\Welcome.cshtml"
}
#line default
#line hidden
WriteLiteral("</div>\r\n<script>\r\n (function () {\r\n $(function () {\r\n $(\'#Or" +
"ganisationName\').focus();\r\n });\r\n })();\r\n</script>\r\n");
}
}
}
#pragma warning restore 1591
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.InitialConfig
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/InitialConfig/Welcome.cshtml")]
public class Welcome : System.Web.Mvc.WebViewPage<Disco.Web.Models.InitialConfig.WelcomeModel>
{
public Welcome()
{
}
public override void Execute()
{
#line 2 "..\..\Views\InitialConfig\Welcome.cshtml"
ViewBag.Title = null;
#line default
#line hidden
WriteLiteral("\r\n<h1>Welcome to Disco ICT Management!</h1>\r\n<div");
WriteLiteral(" id=\"initialConfig_Welcome\"");
WriteLiteral(">\r\n <p>The installation is complete, but a few things need to be configured be" +
"fore Disco can be started.</p>\r\n");
#line 8 "..\..\Views\InitialConfig\Welcome.cshtml"
#line default
#line hidden
#line 8 "..\..\Views\InitialConfig\Welcome.cshtml"
using (Html.BeginForm())
{
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 400px\"");
WriteLiteral(">\r\n <h2>Organisation Name</h2>\r\n <table>\r\n <" +
"tr>\r\n <td>\r\n <div>\r\n");
WriteLiteral(" ");
#line 16 "..\..\Views\InitialConfig\Welcome.cshtml"
Write(Html.EditorFor(m => m.OrganisationName));
#line default
#line hidden
WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 17 "..\..\Views\InitialConfig\Welcome.cshtml"
Write(Html.ValidationMessageFor(m => m.OrganisationName));
#line default
#line hidden
WriteLiteral("\r\n </div>\r\n </td>\r\n </tr" +
">\r\n </table>\r\n </div>\r\n");
WriteLiteral(" <div");
WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n <input");
WriteLiteral(" id=\"submitForm\"");
WriteLiteral(" type=\"submit\"");
WriteLiteral(" class=\"button\"");
WriteLiteral(" value=\"Continue\"");
WriteLiteral(" />\r\n </div>\r\n");
#line 26 "..\..\Views\InitialConfig\Welcome.cshtml"
}
#line default
#line hidden
WriteLiteral("</div>\r\n<script>\r\n (function () {\r\n $(function () {\r\n $(\'#Or" +
"ganisationName\').focus();\r\n });\r\n })();\r\n</script>\r\n");
}
}
}
#pragma warning restore 1591
+34 -34
View File
@@ -1,35 +1,35 @@
@{
Html.BundleDeferred("~/Style/Site");
Html.BundleDeferred("~/ClientScripts/Core");
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Disco@{if(ViewBag.Title != null){<text> - @CommonHelpers.BreadcrumbsTitle(ViewBag.Title)</text>}}</title>
@Html.BundleRenderDeferred()
@RenderSection("head", false)
</head>
<body class="layout">
<div class="page">
<header>
<div class="clearfix">
<div id="heading">
<a href="@Url.Action(MVC.Public.Public.Index())">
<img src="@Links.ClientSource.Style.Images.Heading_png" alt="DISCO - ICT Asset Management" /></a>
</div>
<div id="headerMenu">
</div>
</div>
</header>
@if(ViewBag.Title != null){<div id="layout_PageHeading">@CommonHelpers.Breadcrumbs(ViewBag.Title)</div>}
<section id="layout_Page">
@RenderBody()
</section>
<footer>
Disco v@(Disco.Web.DiscoApplication.Version)
</footer>
</div>
</body>
@{
Html.BundleDeferred("~/Style/Site");
Html.BundleDeferred("~/ClientScripts/Core");
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Disco@{if(ViewBag.Title != null){<text> - @CommonHelpers.BreadcrumbsTitle(ViewBag.Title)</text>}}</title>
@Html.BundleRenderDeferred()
@RenderSection("head", false)
</head>
<body class="layout">
<div class="page">
<header>
<div class="clearfix">
<div id="heading">
<a href="@Url.Action(MVC.Public.Public.Index())">
<img src="@Links.ClientSource.Style.Images.Heading_png" alt="DISCO - ICT Asset Management" /></a>
</div>
<div id="headerMenu">
</div>
</div>
</header>
@if(ViewBag.Title != null){<div id="layout_PageHeading">@CommonHelpers.Breadcrumbs(ViewBag.Title)</div>}
<section id="layout_Page">
@RenderBody()
</section>
<footer>
Disco v@(Disco.Web.DiscoApplication.Version)
</footer>
</div>
</body>
</html>
+218 -218
View File
@@ -1,218 +1,218 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.InitialConfig
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/InitialConfig/_Layout.cshtml")]
public class Layout : System.Web.Mvc.WebViewPage<dynamic>
{
public Layout()
{
}
public override void Execute()
{
#line 1 "..\..\Views\InitialConfig\_Layout.cshtml"
Html.BundleDeferred("~/Style/Site");
Html.BundleDeferred("~/ClientScripts/Core");
#line default
#line hidden
WriteLiteral("\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n <meta");
WriteLiteral(" charset=\"utf-8\"");
WriteLiteral(" />\r\n <meta");
WriteLiteral(" http-equiv=\"X-UA-Compatible\"");
WriteLiteral(" content=\"IE=edge\"");
WriteLiteral(" />\r\n <title>Disco");
#line 10 "..\..\Views\InitialConfig\_Layout.cshtml"
if(ViewBag.Title != null){
#line default
#line hidden
WriteLiteral(" - ");
#line 10 "..\..\Views\InitialConfig\_Layout.cshtml"
Write(CommonHelpers.BreadcrumbsTitle(ViewBag.Title));
#line default
#line hidden
#line 10 "..\..\Views\InitialConfig\_Layout.cshtml"
}
#line default
#line hidden
WriteLiteral("</title>\r\n");
WriteLiteral(" ");
#line 11 "..\..\Views\InitialConfig\_Layout.cshtml"
Write(Html.BundleRenderDeferred());
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 12 "..\..\Views\InitialConfig\_Layout.cshtml"
Write(RenderSection("head", false));
#line default
#line hidden
WriteLiteral("\r\n</head>\r\n<body");
WriteLiteral(" class=\"layout\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" class=\"page\"");
WriteLiteral(">\r\n <header>\r\n <div");
WriteLiteral(" class=\"clearfix\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" id=\"heading\"");
WriteLiteral(">\r\n <a");
WriteAttribute("href", Tuple.Create(" href=\"", 578), Tuple.Create("\"", 623)
#line 19 "..\..\Views\InitialConfig\_Layout.cshtml"
, Tuple.Create(Tuple.Create("", 585), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Public.Public.Index())
#line default
#line hidden
, 585), false)
);
WriteLiteral(">\r\n <img");
WriteAttribute("src", Tuple.Create(" src=\"", 655), Tuple.Create("\"", 705)
#line 20 "..\..\Views\InitialConfig\_Layout.cshtml"
, Tuple.Create(Tuple.Create("", 661), Tuple.Create<System.Object, System.Int32>(Links.ClientSource.Style.Images.Heading_png
#line default
#line hidden
, 661), false)
);
WriteLiteral(" alt=\"DISCO - ICT Asset Management\"");
WriteLiteral(" /></a>\r\n </div>\r\n <div");
WriteLiteral(" id=\"headerMenu\"");
WriteLiteral(">\r\n </div>\r\n </div>\r\n </header>\r\n");
#line 26 "..\..\Views\InitialConfig\_Layout.cshtml"
#line default
#line hidden
#line 26 "..\..\Views\InitialConfig\_Layout.cshtml"
if(ViewBag.Title != null){
#line default
#line hidden
WriteLiteral("<div");
WriteLiteral(" id=\"layout_PageHeading\"");
WriteLiteral(">");
#line 26 "..\..\Views\InitialConfig\_Layout.cshtml"
Write(CommonHelpers.Breadcrumbs(ViewBag.Title));
#line default
#line hidden
WriteLiteral("</div>");
#line 26 "..\..\Views\InitialConfig\_Layout.cshtml"
}
#line default
#line hidden
WriteLiteral(" <section");
WriteLiteral(" id=\"layout_Page\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 28 "..\..\Views\InitialConfig\_Layout.cshtml"
Write(RenderBody());
#line default
#line hidden
WriteLiteral("\r\n </section>\r\n <footer>\r\n Disco v");
#line 31 "..\..\Views\InitialConfig\_Layout.cshtml"
Write(Disco.Web.DiscoApplication.Version);
#line default
#line hidden
WriteLiteral("\r\n </footer>\r\n </div>\r\n</body>\r\n</html>");
}
}
}
#pragma warning restore 1591
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.InitialConfig
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/InitialConfig/_Layout.cshtml")]
public class Layout : System.Web.Mvc.WebViewPage<dynamic>
{
public Layout()
{
}
public override void Execute()
{
#line 1 "..\..\Views\InitialConfig\_Layout.cshtml"
Html.BundleDeferred("~/Style/Site");
Html.BundleDeferred("~/ClientScripts/Core");
#line default
#line hidden
WriteLiteral("\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n <meta");
WriteLiteral(" charset=\"utf-8\"");
WriteLiteral(" />\r\n <meta");
WriteLiteral(" http-equiv=\"X-UA-Compatible\"");
WriteLiteral(" content=\"IE=edge\"");
WriteLiteral(" />\r\n <title>Disco");
#line 10 "..\..\Views\InitialConfig\_Layout.cshtml"
if(ViewBag.Title != null){
#line default
#line hidden
WriteLiteral(" - ");
#line 10 "..\..\Views\InitialConfig\_Layout.cshtml"
Write(CommonHelpers.BreadcrumbsTitle(ViewBag.Title));
#line default
#line hidden
#line 10 "..\..\Views\InitialConfig\_Layout.cshtml"
}
#line default
#line hidden
WriteLiteral("</title>\r\n");
WriteLiteral(" ");
#line 11 "..\..\Views\InitialConfig\_Layout.cshtml"
Write(Html.BundleRenderDeferred());
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 12 "..\..\Views\InitialConfig\_Layout.cshtml"
Write(RenderSection("head", false));
#line default
#line hidden
WriteLiteral("\r\n</head>\r\n<body");
WriteLiteral(" class=\"layout\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" class=\"page\"");
WriteLiteral(">\r\n <header>\r\n <div");
WriteLiteral(" class=\"clearfix\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" id=\"heading\"");
WriteLiteral(">\r\n <a");
WriteAttribute("href", Tuple.Create(" href=\"", 578), Tuple.Create("\"", 623)
#line 19 "..\..\Views\InitialConfig\_Layout.cshtml"
, Tuple.Create(Tuple.Create("", 585), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Public.Public.Index())
#line default
#line hidden
, 585), false)
);
WriteLiteral(">\r\n <img");
WriteAttribute("src", Tuple.Create(" src=\"", 655), Tuple.Create("\"", 705)
#line 20 "..\..\Views\InitialConfig\_Layout.cshtml"
, Tuple.Create(Tuple.Create("", 661), Tuple.Create<System.Object, System.Int32>(Links.ClientSource.Style.Images.Heading_png
#line default
#line hidden
, 661), false)
);
WriteLiteral(" alt=\"DISCO - ICT Asset Management\"");
WriteLiteral(" /></a>\r\n </div>\r\n <div");
WriteLiteral(" id=\"headerMenu\"");
WriteLiteral(">\r\n </div>\r\n </div>\r\n </header>\r\n");
#line 26 "..\..\Views\InitialConfig\_Layout.cshtml"
#line default
#line hidden
#line 26 "..\..\Views\InitialConfig\_Layout.cshtml"
if(ViewBag.Title != null){
#line default
#line hidden
WriteLiteral("<div");
WriteLiteral(" id=\"layout_PageHeading\"");
WriteLiteral(">");
#line 26 "..\..\Views\InitialConfig\_Layout.cshtml"
Write(CommonHelpers.Breadcrumbs(ViewBag.Title));
#line default
#line hidden
WriteLiteral("</div>");
#line 26 "..\..\Views\InitialConfig\_Layout.cshtml"
}
#line default
#line hidden
WriteLiteral(" <section");
WriteLiteral(" id=\"layout_Page\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 28 "..\..\Views\InitialConfig\_Layout.cshtml"
Write(RenderBody());
#line default
#line hidden
WriteLiteral("\r\n </section>\r\n <footer>\r\n Disco v");
#line 31 "..\..\Views\InitialConfig\_Layout.cshtml"
Write(Disco.Web.DiscoApplication.Version);
#line default
#line hidden
WriteLiteral("\r\n </footer>\r\n </div>\r\n</body>\r\n</html>");
}
}
}
#pragma warning restore 1591
@@ -1,4 +1,4 @@
@{
Layout = "~/Views/InitialConfig/_Layout.cshtml";
Html.BundleDeferred("~/Style/InitialConfig");
@{
Layout = "~/Views/InitialConfig/_Layout.cshtml";
Html.BundleDeferred("~/Style/InitialConfig");
}
@@ -1,55 +1,55 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.InitialConfig
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/InitialConfig/_ViewStart.cshtml")]
public class ViewStart : System.Web.Mvc.ViewStartPage
{
public ViewStart()
{
}
public override void Execute()
{
#line 1 "..\..\Views\InitialConfig\_ViewStart.cshtml"
Layout = "~/Views/InitialConfig/_Layout.cshtml";
Html.BundleDeferred("~/Style/InitialConfig");
#line default
#line hidden
}
}
}
#pragma warning restore 1591
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.InitialConfig
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/InitialConfig/_ViewStart.cshtml")]
public class ViewStart : System.Web.Mvc.ViewStartPage
{
public ViewStart()
{
}
public override void Execute()
{
#line 1 "..\..\Views\InitialConfig\_ViewStart.cshtml"
Layout = "~/Views/InitialConfig/_Layout.cshtml";
Html.BundleDeferred("~/Style/InitialConfig");
#line default
#line hidden
}
}
}
#pragma warning restore 1591