initial source commit
This commit is contained in:
@@ -0,0 +1,371 @@
|
||||
@model Disco.Web.Areas.Config.Models.Organisation.IndexModel
|
||||
@{
|
||||
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Organisation Details");
|
||||
Html.BundleDeferred("~/ClientScripts/Modules/Disco-PropertyChangeHelpers");
|
||||
Html.BundleDeferred("~/ClientScripts/Modules/Disco-AjaxHelperIcons");
|
||||
}
|
||||
<div class="form" style="width: 700px">
|
||||
<h2>Details</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th style="width: 160px">Name:
|
||||
</th>
|
||||
<td>
|
||||
@Html.EditorFor(m => m.OrganisationName)
|
||||
@AjaxHelpers.AjaxLoader()
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var field = $('#OrganisationName');
|
||||
document.DiscoFunctions.PropertyChangeHelper(
|
||||
field,
|
||||
'Unknown',
|
||||
'@(Url.Action(MVC.API.System.UpdateOrganisationName()))',
|
||||
'OrganisationName'
|
||||
);
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width: 160px">Logo:
|
||||
<br />
|
||||
<br />
|
||||
<a id="buttonUpdateOrganisationLogo" href="#" class="button">Update</a>
|
||||
</th>
|
||||
<td>
|
||||
<div style="text-align: center;">
|
||||
<img style="height: 256px; width: 256px;" alt="Organisation Logo" src="@(Url.OrganisationLogoUrl())" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width: 160px">Multi-Site Mode:
|
||||
</th>
|
||||
<td>
|
||||
@Html.EditorFor(m => m.MultiSiteMode) @Html.LabelFor(m => m.MultiSiteMode)
|
||||
@AjaxHelpers.AjaxLoader()
|
||||
<div id="messageMultiSiteMode" style="display: none; padding: 0.7em 0.7em; margin-top: 20px;" class="ui-state-highlight ui-corner-all">
|
||||
<span style="margin-right: 0.3em; float: left;" class="ui-icon ui-icon-info"></span>
|
||||
Multi-Site mode is recommended where multiple addresses are configured.
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var field = $('#MultiSiteMode');
|
||||
document.DiscoFunctions.PropertyChangeHelper(
|
||||
field,
|
||||
null,
|
||||
'@(Url.Action(MVC.API.System.UpdateMultiSiteMode()))',
|
||||
'MultiSiteMode'
|
||||
);
|
||||
|
||||
var $orgAddresses = $('#organisationAddresses');
|
||||
if ($orgAddresses.length > 0 && $orgAddresses.find('tr').length > 2)
|
||||
$('#messageMultiSiteMode').show();
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width: 160px">Addresses:
|
||||
<br />
|
||||
<br />
|
||||
<a href="#" id="createAddress" class="button">Create</a>
|
||||
</th>
|
||||
<td>
|
||||
@if (Model.OrganisationAddresses.Count > 0)
|
||||
{
|
||||
<table id="organisationAddresses">
|
||||
<tr>
|
||||
<th>Name
|
||||
</th>
|
||||
<th>Address
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@foreach (var item in Model.OrganisationAddresses)
|
||||
{
|
||||
<tr data-addressid="@item.Id">
|
||||
<td>
|
||||
<span class="name">@Html.DisplayFor(modelItem => item.Name)</span> (<span class="shortName">@Html.DisplayFor(modelItem => item.ShortName)</span>)
|
||||
</td>
|
||||
<td>
|
||||
<span class="address">@Html.DisplayFor(modelItem => item.Address)</span><br />
|
||||
<span class="suburb">@Html.DisplayFor(modelItem => item.Suburb)</span> <span class="postcode">@Html.DisplayFor(modelItem => item.Postcode)</span><br />
|
||||
<span class="state">@Html.DisplayFor(modelItem => item.State)</span> <span class="country">@Html.DisplayFor(modelItem => item.Country)</span><br />
|
||||
<span class="smallMessage">Phone:</span> <span class="phoneNumber">@Html.DisplayFor(modelItem => item.PhoneNumber)</span><br />
|
||||
<span class="smallMessage">Fax:</span> <span class="faxNumber">@Html.DisplayFor(modelItem => item.FaxNumber)</span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="edit" title="Edit Address"></span><span class="delete" title="Delete Address"></span>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="smallMessage">No Addresses Stored</span>
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="dialogUpdateOrganisationLogo" title="Update Organisation Logo">
|
||||
@using (Html.BeginForm(MVC.API.System.OrganisationLogo(true, null, null), FormMethod.Post, new { enctype = "multipart/form-data" }))
|
||||
{
|
||||
<h3>Update Action</h3>
|
||||
<div style="margin-top: 10px; padding-bottom: 5px;">
|
||||
<input id="updateOrganisationLogoResetLogo" type="radio" name="ResetLogo" value="true"
|
||||
checked="checked" /><label for="updateOrganisationLogoResetLogo">Remove Logo</label>
|
||||
</div>
|
||||
<div style="margin-top: 5px; border-top: 1px dashed #aaa; padding-top: 5px;">
|
||||
<input id="updateOrganisationLogoUploadLogo" type="radio" name="ResetLogo" value="false" /><label
|
||||
for="updateOrganisationLogoUploadLogo">Upload Logo</label>
|
||||
<div id="updateOrganisationLogoUploadLogoContainer" style="display: none; padding-left: 10px;">
|
||||
<input id="updateOrganisationLogoUploadLogoImage" type="file" name="Image" />
|
||||
<span id="updateOrganisationLogoUploadLogoImageRequired" class="field-validation-valid field-validation-error">* Required</span>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var button = $('#buttonUpdateOrganisationLogo');
|
||||
var buttonDialog = $('#dialogUpdateOrganisationLogo');
|
||||
button.click(function () {
|
||||
buttonDialog.dialog('open');
|
||||
return false;
|
||||
});
|
||||
buttonDialog.find('input[type="radio"]').click(function () {
|
||||
if ($('#updateOrganisationLogoUploadLogo').is(':checked')) {
|
||||
$('#updateOrganisationLogoUploadLogoImage').removeAttr('disabled');
|
||||
$('#updateOrganisationLogoUploadLogoContainer').slideDown();
|
||||
}
|
||||
else {
|
||||
$('#updateOrganisationLogoUploadLogoContainer').slideUp();
|
||||
$('#updateOrganisationLogoUploadLogoImage').attr('disabled', 'disabled');
|
||||
}
|
||||
});
|
||||
buttonDialog.dialog({
|
||||
resizable: false,
|
||||
height: 200,
|
||||
modal: true,
|
||||
autoOpen: false,
|
||||
buttons: {
|
||||
"Save": function () {
|
||||
var $this = $(this);
|
||||
|
||||
var $image = $('#updateOrganisationLogoUploadLogoImage');
|
||||
if ($('#updateOrganisationLogoUploadLogo').is(':checked') && $image.val() == '') {
|
||||
$image.addClass('input-validation-error');
|
||||
$('#updateOrganisationLogoUploadLogoImageRequired').removeClass('field-validation-valid');
|
||||
} else {
|
||||
$image.removeClass('input-validation-error');
|
||||
$('#updateOrganisationLogoUploadLogoImageRequired').addClass('field-validation-valid');
|
||||
$this.dialog("disable");
|
||||
$this.dialog("option", "buttons", null);
|
||||
$this.find('form').submit();
|
||||
}
|
||||
},
|
||||
Cancel: function () {
|
||||
$(this).dialog("close");
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div id="dialogConfirmRemove" title="Delete this Component?">
|
||||
<p>
|
||||
<span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span>
|
||||
This item will be permanently deleted and cannot be recovered. Are you sure?
|
||||
</p>
|
||||
</div>
|
||||
<div id="dialogEdit" title="Edit/Create Address">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Short Name
|
||||
</td>
|
||||
<td>
|
||||
<input id="editShortName" type="text" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Name
|
||||
</td>
|
||||
<td>
|
||||
<input id="editName" type="text" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Address
|
||||
</td>
|
||||
<td>
|
||||
<input id="editAddress" type="text" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Suburb
|
||||
</td>
|
||||
<td>
|
||||
<input id="editSuburb" type="text" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Postcode
|
||||
</td>
|
||||
<td>
|
||||
<input id="editPostcode" type="text" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>State
|
||||
</td>
|
||||
<td>
|
||||
<input id="editState" type="text" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Country
|
||||
</td>
|
||||
<td>
|
||||
<input id="editCountry" type="text" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Phone Number
|
||||
</td>
|
||||
<td>
|
||||
<input id="editPhoneNumber" type="text" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Fax Number
|
||||
</td>
|
||||
<td>
|
||||
<input id="editFaxNumber" type="text" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$("#dialogConfirmRemove").dialog({
|
||||
resizable: false,
|
||||
modal: true,
|
||||
autoOpen: false,
|
||||
buttons: {
|
||||
"Delete": function () {
|
||||
return null;
|
||||
},
|
||||
Cancel: function () {
|
||||
$(this).dialog("close");
|
||||
}
|
||||
}
|
||||
});
|
||||
$('#organisationAddresses').find('span.delete').click(function () {
|
||||
var componentRow = $(this).closest('tr');
|
||||
var id = componentRow.attr('data-addressid');
|
||||
if (id) {
|
||||
var dialog = $("#dialogConfirmRemove");
|
||||
var buttons = dialog.dialog("option", "buttons");
|
||||
buttons['Delete'] = function () { $(this).dialog("disable"); window.location.href = '@(Url.Action(MVC.API.System.DeleteOrganisationAddress()))' + '?redirect=true&id=' + id; };
|
||||
var buttons = dialog.dialog("option", "buttons", buttons);
|
||||
dialog.dialog('open');
|
||||
}
|
||||
});
|
||||
|
||||
var editAddress = function (element) {
|
||||
var id = '', shortName = '', name = '', address = '', suburb = '', postcode = '', state = '', country = '', phoneNumber = '', faxNumber = '';
|
||||
var dialog = $('#dialogEdit');
|
||||
if (element) {
|
||||
id = element.attr('data-addressid');
|
||||
shortName = element.find('.shortName').text();
|
||||
name = element.find('.name').text();
|
||||
address = element.find('.address').text();
|
||||
suburb = element.find('.suburb').text();
|
||||
postcode = element.find('.postcode').text();
|
||||
state = element.find('.state').text();
|
||||
country = element.find('.country').text();
|
||||
phoneNumber = element.find('.phoneNumber').text();
|
||||
faxNumber = element.find('.faxNumber').text();
|
||||
dialog.attr('data-addressid', id);
|
||||
dialog.dialog('option', 'title', 'Edit Address: ' + name);
|
||||
} else {
|
||||
dialog.attr('data-addressid', null);
|
||||
dialog.dialog('option', 'title', 'Create Address');
|
||||
}
|
||||
|
||||
$('#editShortName').val(shortName);
|
||||
$('#editName').val(name);
|
||||
$('#editAddress').val(address);
|
||||
$('#editSuburb').val(suburb);
|
||||
$('#editPostcode').val(postcode);
|
||||
$('#editState').val(state);
|
||||
$('#editCountry').val(country);
|
||||
$('#editPhoneNumber').val(phoneNumber);
|
||||
$('#editFaxNumber').val(faxNumber);
|
||||
dialog.dialog('open');
|
||||
}
|
||||
|
||||
$('#organisationAddresses').find('span.edit').click(function () {
|
||||
var componentRow = $(this).closest('tr');
|
||||
editAddress(componentRow);
|
||||
});
|
||||
|
||||
$('#createAddress').click(function () {
|
||||
editAddress();
|
||||
return false;
|
||||
});
|
||||
|
||||
var submitAddress = function () {
|
||||
var dialog = $('#dialogEdit');
|
||||
var data = {
|
||||
Id: dialog.attr('data-addressid'),
|
||||
ShortName: $('#editShortName').val(),
|
||||
Name: $('#editName').val(),
|
||||
Address: $('#editAddress').val(),
|
||||
Suburb: $('#editSuburb').val(),
|
||||
Postcode: $('#editPostcode').val(),
|
||||
State: $('#editState').val(),
|
||||
Country: $('#editCountry').val(),
|
||||
PhoneNumber: $('#editPhoneNumber').val(),
|
||||
FaxNumber: $('#editFaxNumber').val()
|
||||
};
|
||||
|
||||
$.ajax({
|
||||
url: '@(Url.Action(MVC.API.System.UpdateOrganisationAddress()))',
|
||||
dataType: 'json',
|
||||
data: data,
|
||||
type: 'post',
|
||||
success: function (d) {
|
||||
if (d == 'OK') {
|
||||
window.location.href = '@(Url.Action(MVC.Config.Organisation.Index()))';
|
||||
} else {
|
||||
alert('Unable to update address:\n' + d);
|
||||
dialog.dialog('enable');
|
||||
}
|
||||
},
|
||||
error: function (jqXHR, textStatus, errorThrown) {
|
||||
alert('Unable to update address:\n' + textStatus);
|
||||
dialog.dialog('enable');
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
$("#dialogEdit").dialog({
|
||||
resizable: false,
|
||||
modal: true,
|
||||
autoOpen: false,
|
||||
width: 350,
|
||||
buttons: {
|
||||
"Save": function () {
|
||||
submitAddress();
|
||||
},
|
||||
Cancel: function () {
|
||||
$(this).dialog("close");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,782 @@
|
||||
#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.Areas.Config.Views.Organisation
|
||||
{
|
||||
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("~/Areas/Config/Views/Organisation/Index.cshtml")]
|
||||
public class Index : System.Web.Mvc.WebViewPage<Disco.Web.Areas.Config.Models.Organisation.IndexModel>
|
||||
{
|
||||
public Index()
|
||||
{
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
|
||||
#line 2 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
|
||||
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Organisation Details");
|
||||
Html.BundleDeferred("~/ClientScripts/Modules/Disco-PropertyChangeHelpers");
|
||||
Html.BundleDeferred("~/ClientScripts/Modules/Disco-AjaxHelperIcons");
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n<div");
|
||||
|
||||
WriteLiteral(" class=\"form\"");
|
||||
|
||||
WriteLiteral(" style=\"width: 700px\"");
|
||||
|
||||
WriteLiteral(">\r\n <h2>Details</h2>\r\n <table>\r\n <tr>\r\n <th");
|
||||
|
||||
WriteLiteral(" style=\"width: 160px\"");
|
||||
|
||||
WriteLiteral(">Name:\r\n </th>\r\n <td>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 14 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.EditorFor(m => m.OrganisationName));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 15 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(AjaxHelpers.AjaxLoader());
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n <script");
|
||||
|
||||
WriteLiteral(" type=\"text/javascript\"");
|
||||
|
||||
WriteLiteral(@">
|
||||
$(function () {
|
||||
var field = $('#OrganisationName');
|
||||
document.DiscoFunctions.PropertyChangeHelper(
|
||||
field,
|
||||
'Unknown',
|
||||
'");
|
||||
|
||||
|
||||
#line 22 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Url.Action(MVC.API.System.UpdateOrganisationName()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\',\r\n \'OrganisationName\'\r\n );\r\n " +
|
||||
" });\r\n </script>\r\n </td>\r\n </tr>\r" +
|
||||
"\n <tr>\r\n <th");
|
||||
|
||||
WriteLiteral(" style=\"width: 160px\"");
|
||||
|
||||
WriteLiteral(">Logo:\r\n <br />\r\n <br />\r\n <a");
|
||||
|
||||
WriteLiteral(" id=\"buttonUpdateOrganisationLogo\"");
|
||||
|
||||
WriteLiteral(" href=\"#\"");
|
||||
|
||||
WriteLiteral(" class=\"button\"");
|
||||
|
||||
WriteLiteral(">Update</a>\r\n </th>\r\n <td>\r\n <div");
|
||||
|
||||
WriteLiteral(" style=\"text-align: center;\"");
|
||||
|
||||
WriteLiteral(">\r\n <img");
|
||||
|
||||
WriteLiteral(" style=\"height: 256px; width: 256px;\"");
|
||||
|
||||
WriteLiteral(" alt=\"Organisation Logo\"");
|
||||
|
||||
WriteAttribute("src", Tuple.Create(" src=\"", 1500), Tuple.Create("\"", 1534)
|
||||
|
||||
#line 37 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1506), Tuple.Create<System.Object, System.Int32>(Url.OrganisationLogoUrl()
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1506), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" />\r\n </div>\r\n </td>\r\n </tr>\r\n <tr>\r\n " +
|
||||
" <th");
|
||||
|
||||
WriteLiteral(" style=\"width: 160px\"");
|
||||
|
||||
WriteLiteral(">Multi-Site Mode:\r\n </th>\r\n <td>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 45 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.EditorFor(m => m.MultiSiteMode));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 45 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.LabelFor(m => m.MultiSiteMode));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 46 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(AjaxHelpers.AjaxLoader());
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n <div");
|
||||
|
||||
WriteLiteral(" id=\"messageMultiSiteMode\"");
|
||||
|
||||
WriteLiteral(" style=\"display: none; padding: 0.7em 0.7em; margin-top: 20px;\"");
|
||||
|
||||
WriteLiteral(" class=\"ui-state-highlight ui-corner-all\"");
|
||||
|
||||
WriteLiteral(">\r\n <span");
|
||||
|
||||
WriteLiteral(" style=\"margin-right: 0.3em; float: left;\"");
|
||||
|
||||
WriteLiteral(" class=\"ui-icon ui-icon-info\"");
|
||||
|
||||
WriteLiteral("></span>\r\n Multi-Site mode is recommended where multiple addre" +
|
||||
"sses are configured.\r\n </div>\r\n <script");
|
||||
|
||||
WriteLiteral(" type=\"text/javascript\"");
|
||||
|
||||
WriteLiteral(@">
|
||||
$(function () {
|
||||
var field = $('#MultiSiteMode');
|
||||
document.DiscoFunctions.PropertyChangeHelper(
|
||||
field,
|
||||
null,
|
||||
'");
|
||||
|
||||
|
||||
#line 57 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Url.Action(MVC.API.System.UpdateMultiSiteMode()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(@"',
|
||||
'MultiSiteMode'
|
||||
);
|
||||
|
||||
var $orgAddresses = $('#organisationAddresses');
|
||||
if ($orgAddresses.length > 0 && $orgAddresses.find('tr').length > 2)
|
||||
$('#messageMultiSiteMode').show();
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th");
|
||||
|
||||
WriteLiteral(" style=\"width: 160px\"");
|
||||
|
||||
WriteLiteral(">Addresses:\r\n <br />\r\n <br />\r\n <a");
|
||||
|
||||
WriteLiteral(" href=\"#\"");
|
||||
|
||||
WriteLiteral(" id=\"createAddress\"");
|
||||
|
||||
WriteLiteral(" class=\"button\"");
|
||||
|
||||
WriteLiteral(">Create</a>\r\n </th>\r\n <td>\r\n");
|
||||
|
||||
|
||||
#line 75 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 75 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
if (Model.OrganisationAddresses.Count > 0)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <table");
|
||||
|
||||
WriteLiteral(" id=\"organisationAddresses\"");
|
||||
|
||||
WriteLiteral(">\r\n <tr>\r\n <th>Name\r\n " +
|
||||
" </th>\r\n <th>Address\r\n " +
|
||||
" </th>\r\n <th></th>\r\n " +
|
||||
" </tr>\r\n");
|
||||
|
||||
|
||||
#line 85 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 85 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
foreach (var item in Model.OrganisationAddresses)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <tr");
|
||||
|
||||
WriteLiteral(" data-addressid=\"");
|
||||
|
||||
|
||||
#line 87 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(item.Id);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\"");
|
||||
|
||||
WriteLiteral(">\r\n <td>\r\n <spa" +
|
||||
"n");
|
||||
|
||||
WriteLiteral(" class=\"name\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 89 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.DisplayFor(modelItem => item.Name));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</span> (<span");
|
||||
|
||||
WriteLiteral(" class=\"shortName\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 89 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.DisplayFor(modelItem => item.ShortName));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</span>)\r\n </td>\r\n " +
|
||||
"<td>\r\n <span");
|
||||
|
||||
WriteLiteral(" class=\"address\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 92 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.DisplayFor(modelItem => item.Address));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</span><br />\r\n <span");
|
||||
|
||||
WriteLiteral(" class=\"suburb\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 93 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.DisplayFor(modelItem => item.Suburb));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</span> <span");
|
||||
|
||||
WriteLiteral(" class=\"postcode\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 93 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.DisplayFor(modelItem => item.Postcode));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</span><br />\r\n <span");
|
||||
|
||||
WriteLiteral(" class=\"state\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 94 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.DisplayFor(modelItem => item.State));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</span> <span");
|
||||
|
||||
WriteLiteral(" class=\"country\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 94 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.DisplayFor(modelItem => item.Country));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</span><br />\r\n <span");
|
||||
|
||||
WriteLiteral(" class=\"smallMessage\"");
|
||||
|
||||
WriteLiteral(">Phone:</span> <span");
|
||||
|
||||
WriteLiteral(" class=\"phoneNumber\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 95 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.DisplayFor(modelItem => item.PhoneNumber));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</span><br />\r\n <span");
|
||||
|
||||
WriteLiteral(" class=\"smallMessage\"");
|
||||
|
||||
WriteLiteral(">Fax:</span> <span");
|
||||
|
||||
WriteLiteral(" class=\"faxNumber\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 96 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.DisplayFor(modelItem => item.FaxNumber));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</span>\r\n </td>\r\n <" +
|
||||
"td>\r\n <span");
|
||||
|
||||
WriteLiteral(" class=\"edit\"");
|
||||
|
||||
WriteLiteral(" title=\"Edit Address\"");
|
||||
|
||||
WriteLiteral("></span><span");
|
||||
|
||||
WriteLiteral(" class=\"delete\"");
|
||||
|
||||
WriteLiteral(" title=\"Delete Address\"");
|
||||
|
||||
WriteLiteral("></span>\r\n </td>\r\n </tr" +
|
||||
">\r\n");
|
||||
|
||||
|
||||
#line 102 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </table>\r\n");
|
||||
|
||||
|
||||
#line 104 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <span");
|
||||
|
||||
WriteLiteral(" class=\"smallMessage\"");
|
||||
|
||||
WriteLiteral(">No Addresses Stored</span>\r\n");
|
||||
|
||||
|
||||
#line 108 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </td>\r\n </tr>\r\n </table>\r\n</div>\r\n<div");
|
||||
|
||||
WriteLiteral(" id=\"dialogUpdateOrganisationLogo\"");
|
||||
|
||||
WriteLiteral(" title=\"Update Organisation Logo\"");
|
||||
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 114 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 114 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
using (Html.BeginForm(MVC.API.System.OrganisationLogo(true, null, null), FormMethod.Post, new { enctype = "multipart/form-data" }))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <h3>Update Action</h3>\r\n");
|
||||
|
||||
WriteLiteral(" <div");
|
||||
|
||||
WriteLiteral(" style=\"margin-top: 10px; padding-bottom: 5px;\"");
|
||||
|
||||
WriteLiteral(">\r\n <input");
|
||||
|
||||
WriteLiteral(" id=\"updateOrganisationLogoResetLogo\"");
|
||||
|
||||
WriteLiteral(" type=\"radio\"");
|
||||
|
||||
WriteLiteral(" name=\"ResetLogo\"");
|
||||
|
||||
WriteLiteral(" value=\"true\"");
|
||||
|
||||
WriteLiteral("\r\n checked=\"checked\"");
|
||||
|
||||
WriteLiteral(" /><label");
|
||||
|
||||
WriteLiteral(" for=\"updateOrganisationLogoResetLogo\"");
|
||||
|
||||
WriteLiteral(">Remove Logo</label>\r\n </div>\r\n");
|
||||
|
||||
WriteLiteral(" <div");
|
||||
|
||||
WriteLiteral(" style=\"margin-top: 5px; border-top: 1px dashed #aaa; padding-top: 5px;\"");
|
||||
|
||||
WriteLiteral(">\r\n <input");
|
||||
|
||||
WriteLiteral(" id=\"updateOrganisationLogoUploadLogo\"");
|
||||
|
||||
WriteLiteral(" type=\"radio\"");
|
||||
|
||||
WriteLiteral(" name=\"ResetLogo\"");
|
||||
|
||||
WriteLiteral(" value=\"false\"");
|
||||
|
||||
WriteLiteral(" /><label\r\n for=\"updateOrganisationLogoUploadLogo\">Upload Logo</la" +
|
||||
"bel>\r\n <div");
|
||||
|
||||
WriteLiteral(" id=\"updateOrganisationLogoUploadLogoContainer\"");
|
||||
|
||||
WriteLiteral(" style=\"display: none; padding-left: 10px;\"");
|
||||
|
||||
WriteLiteral(">\r\n <input");
|
||||
|
||||
WriteLiteral(" id=\"updateOrganisationLogoUploadLogoImage\"");
|
||||
|
||||
WriteLiteral(" type=\"file\"");
|
||||
|
||||
WriteLiteral(" name=\"Image\"");
|
||||
|
||||
WriteLiteral(" />\r\n <span");
|
||||
|
||||
WriteLiteral(" id=\"updateOrganisationLogoUploadLogoImageRequired\"");
|
||||
|
||||
WriteLiteral(" class=\"field-validation-valid field-validation-error\"");
|
||||
|
||||
WriteLiteral(">* Required</span>\r\n </div>\r\n </div>\r\n");
|
||||
|
||||
|
||||
#line 129 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</div>\r\n<script");
|
||||
|
||||
WriteLiteral(" type=\"text/javascript\"");
|
||||
|
||||
WriteLiteral(">\r\n $(function () {\r\n var button = $(\'#buttonUpdateOrganisationLogo\');\r" +
|
||||
"\n var buttonDialog = $(\'#dialogUpdateOrganisationLogo\');\r\n button." +
|
||||
"click(function () {\r\n buttonDialog.dialog(\'open\');\r\n retur" +
|
||||
"n false;\r\n });\r\n buttonDialog.find(\'input[type=\"radio\"]\').click(fu" +
|
||||
"nction () {\r\n if ($(\'#updateOrganisationLogoUploadLogo\').is(\':checked" +
|
||||
"\')) {\r\n $(\'#updateOrganisationLogoUploadLogoImage\').removeAttr(\'d" +
|
||||
"isabled\');\r\n $(\'#updateOrganisationLogoUploadLogoContainer\').slid" +
|
||||
"eDown();\r\n }\r\n else {\r\n $(\'#updateOrganisat" +
|
||||
"ionLogoUploadLogoContainer\').slideUp();\r\n $(\'#updateOrganisationL" +
|
||||
"ogoUploadLogoImage\').attr(\'disabled\', \'disabled\');\r\n }\r\n });\r\n" +
|
||||
" buttonDialog.dialog({\r\n resizable: false,\r\n height" +
|
||||
": 200,\r\n modal: true,\r\n autoOpen: false,\r\n butt" +
|
||||
"ons: {\r\n \"Save\": function () {\r\n var $this = $" +
|
||||
"(this);\r\n\r\n var $image = $(\'#updateOrganisationLogoUploadLogo" +
|
||||
"Image\');\r\n if ($(\'#updateOrganisationLogoUploadLogo\').is(\':ch" +
|
||||
"ecked\') && $image.val() == \'\') {\r\n $image.addClass(\'input" +
|
||||
"-validation-error\');\r\n $(\'#updateOrganisationLogoUploadLo" +
|
||||
"goImageRequired\').removeClass(\'field-validation-valid\');\r\n } " +
|
||||
"else {\r\n $image.removeClass(\'input-validation-error\');\r\n " +
|
||||
" $(\'#updateOrganisationLogoUploadLogoImageRequired\').addCl" +
|
||||
"ass(\'field-validation-valid\');\r\n $this.dialog(\"disable\");" +
|
||||
"\r\n $this.dialog(\"option\", \"buttons\", null);\r\n " +
|
||||
" $this.find(\'form\').submit();\r\n }\r\n " +
|
||||
" },\r\n Cancel: function () {\r\n $(this).dialog(\"" +
|
||||
"close\");\r\n }\r\n }\r\n });\r\n });\r\n</script>\r\n<di" +
|
||||
"v");
|
||||
|
||||
WriteLiteral(" id=\"dialogConfirmRemove\"");
|
||||
|
||||
WriteLiteral(" title=\"Delete this Component?\"");
|
||||
|
||||
WriteLiteral(">\r\n <p>\r\n <span");
|
||||
|
||||
WriteLiteral(" class=\"ui-icon ui-icon-alert\"");
|
||||
|
||||
WriteLiteral(" style=\"float: left; margin: 0 7px 20px 0;\"");
|
||||
|
||||
WriteLiteral("></span>\r\n This item will be permanently deleted and cannot be recovered. " +
|
||||
"Are you sure?\r\n </p>\r\n</div>\r\n<div");
|
||||
|
||||
WriteLiteral(" id=\"dialogEdit\"");
|
||||
|
||||
WriteLiteral(" title=\"Edit/Create Address\"");
|
||||
|
||||
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <td>Short Name\r\n </td>\r" +
|
||||
"\n <td>\r\n <input");
|
||||
|
||||
WriteLiteral(" id=\"editShortName\"");
|
||||
|
||||
WriteLiteral(" type=\"text\"");
|
||||
|
||||
WriteLiteral(" />\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>Name\r\n " +
|
||||
" </td>\r\n <td>\r\n <input");
|
||||
|
||||
WriteLiteral(" id=\"editName\"");
|
||||
|
||||
WriteLiteral(" type=\"text\"");
|
||||
|
||||
WriteLiteral(" />\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>Address\r\n " +
|
||||
" </td>\r\n <td>\r\n <input");
|
||||
|
||||
WriteLiteral(" id=\"editAddress\"");
|
||||
|
||||
WriteLiteral(" type=\"text\"");
|
||||
|
||||
WriteLiteral(" />\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>Suburb\r\n " +
|
||||
" </td>\r\n <td>\r\n <input");
|
||||
|
||||
WriteLiteral(" id=\"editSuburb\"");
|
||||
|
||||
WriteLiteral(" type=\"text\"");
|
||||
|
||||
WriteLiteral(" />\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>Postcode\r\n " +
|
||||
" </td>\r\n <td>\r\n <input");
|
||||
|
||||
WriteLiteral(" id=\"editPostcode\"");
|
||||
|
||||
WriteLiteral(" type=\"text\"");
|
||||
|
||||
WriteLiteral(" />\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>State\r\n " +
|
||||
" </td>\r\n <td>\r\n <input");
|
||||
|
||||
WriteLiteral(" id=\"editState\"");
|
||||
|
||||
WriteLiteral(" type=\"text\"");
|
||||
|
||||
WriteLiteral(" />\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>Country\r\n " +
|
||||
" </td>\r\n <td>\r\n <input");
|
||||
|
||||
WriteLiteral(" id=\"editCountry\"");
|
||||
|
||||
WriteLiteral(" type=\"text\"");
|
||||
|
||||
WriteLiteral(" />\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>Phone Number" +
|
||||
"\r\n </td>\r\n <td>\r\n <input");
|
||||
|
||||
WriteLiteral(" id=\"editPhoneNumber\"");
|
||||
|
||||
WriteLiteral(" type=\"text\"");
|
||||
|
||||
WriteLiteral(" />\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>Fax Number\r\n" +
|
||||
" </td>\r\n <td>\r\n <input");
|
||||
|
||||
WriteLiteral(" id=\"editFaxNumber\"");
|
||||
|
||||
WriteLiteral(" type=\"text\"");
|
||||
|
||||
WriteLiteral(" />\r\n </td>\r\n </tr>\r\n </table>\r\n</div>\r\n<script");
|
||||
|
||||
WriteLiteral(" type=\"text/javascript\"");
|
||||
|
||||
WriteLiteral(@">
|
||||
$(function () {
|
||||
$(""#dialogConfirmRemove"").dialog({
|
||||
resizable: false,
|
||||
modal: true,
|
||||
autoOpen: false,
|
||||
buttons: {
|
||||
""Delete"": function () {
|
||||
return null;
|
||||
},
|
||||
Cancel: function () {
|
||||
$(this).dialog(""close"");
|
||||
}
|
||||
}
|
||||
});
|
||||
$('#organisationAddresses').find('span.delete').click(function () {
|
||||
var componentRow = $(this).closest('tr');
|
||||
var id = componentRow.attr('data-addressid');
|
||||
if (id) {
|
||||
var dialog = $(""#dialogConfirmRemove"");
|
||||
var buttons = dialog.dialog(""option"", ""buttons"");
|
||||
buttons['Delete'] = function () { $(this).dialog(""disable""); window.location.href = '");
|
||||
|
||||
|
||||
#line 271 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Url.Action(MVC.API.System.DeleteOrganisationAddress()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\' + \'?redirect=true&id=\' + id; };\r\n var buttons = dialog.dialog(\"o" +
|
||||
"ption\", \"buttons\", buttons);\r\n dialog.dialog(\'open\');\r\n " +
|
||||
" }\r\n });\r\n\r\n var editAddress = function (element) {\r\n " +
|
||||
"var id = \'\', shortName = \'\', name = \'\', address = \'\', suburb = \'\', postcode = \'\'" +
|
||||
", state = \'\', country = \'\', phoneNumber = \'\', faxNumber = \'\';\r\n var d" +
|
||||
"ialog = $(\'#dialogEdit\');\r\n if (element) {\r\n id = elem" +
|
||||
"ent.attr(\'data-addressid\');\r\n shortName = element.find(\'.shortNam" +
|
||||
"e\').text();\r\n name = element.find(\'.name\').text();\r\n " +
|
||||
" address = element.find(\'.address\').text();\r\n suburb = element." +
|
||||
"find(\'.suburb\').text();\r\n postcode = element.find(\'.postcode\').te" +
|
||||
"xt();\r\n state = element.find(\'.state\').text();\r\n c" +
|
||||
"ountry = element.find(\'.country\').text();\r\n phoneNumber = element" +
|
||||
".find(\'.phoneNumber\').text();\r\n faxNumber = element.find(\'.faxNum" +
|
||||
"ber\').text();\r\n dialog.attr(\'data-addressid\', id);\r\n " +
|
||||
" dialog.dialog(\'option\', \'title\', \'Edit Address: \' + name);\r\n } els" +
|
||||
"e {\r\n dialog.attr(\'data-addressid\', null);\r\n dialo" +
|
||||
"g.dialog(\'option\', \'title\', \'Create Address\');\r\n }\r\n\r\n $(\'" +
|
||||
"#editShortName\').val(shortName);\r\n $(\'#editName\').val(name);\r\n " +
|
||||
" $(\'#editAddress\').val(address);\r\n $(\'#editSuburb\').val(suburb);\r" +
|
||||
"\n $(\'#editPostcode\').val(postcode);\r\n $(\'#editState\').val(" +
|
||||
"state);\r\n $(\'#editCountry\').val(country);\r\n $(\'#editPhoneN" +
|
||||
"umber\').val(phoneNumber);\r\n $(\'#editFaxNumber\').val(faxNumber);\r\n " +
|
||||
" dialog.dialog(\'open\');\r\n }\r\n\r\n $(\'#organisationAddresses\')" +
|
||||
".find(\'span.edit\').click(function () {\r\n var componentRow = $(this).c" +
|
||||
"losest(\'tr\');\r\n editAddress(componentRow);\r\n });\r\n\r\n $(" +
|
||||
"\'#createAddress\').click(function () {\r\n editAddress();\r\n r" +
|
||||
"eturn false;\r\n });\r\n\r\n var submitAddress = function () {\r\n " +
|
||||
" var dialog = $(\'#dialogEdit\');\r\n var data = {\r\n Id" +
|
||||
": dialog.attr(\'data-addressid\'),\r\n ShortName: $(\'#editShortName\')" +
|
||||
".val(),\r\n Name: $(\'#editName\').val(),\r\n Address: $" +
|
||||
"(\'#editAddress\').val(),\r\n Suburb: $(\'#editSuburb\').val(),\r\n " +
|
||||
" Postcode: $(\'#editPostcode\').val(),\r\n State: $(\'#editSt" +
|
||||
"ate\').val(),\r\n Country: $(\'#editCountry\').val(),\r\n " +
|
||||
" PhoneNumber: $(\'#editPhoneNumber\').val(),\r\n FaxNumber: $(\'#editF" +
|
||||
"axNumber\').val()\r\n };\r\n\r\n $.ajax({\r\n url: \'" +
|
||||
"");
|
||||
|
||||
|
||||
#line 336 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Url.Action(MVC.API.System.UpdateOrganisationAddress()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\',\r\n dataType: \'json\',\r\n data: data,\r\n " +
|
||||
" type: \'post\',\r\n success: function (d) {\r\n i" +
|
||||
"f (d == \'OK\') {\r\n window.location.href = \'");
|
||||
|
||||
|
||||
#line 342 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Url.Action(MVC.Config.Organisation.Index()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(@"';
|
||||
} else {
|
||||
alert('Unable to update address:\n' + d);
|
||||
dialog.dialog('enable');
|
||||
}
|
||||
},
|
||||
error: function (jqXHR, textStatus, errorThrown) {
|
||||
alert('Unable to update address:\n' + textStatus);
|
||||
dialog.dialog('enable');
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
$(""#dialogEdit"").dialog({
|
||||
resizable: false,
|
||||
modal: true,
|
||||
autoOpen: false,
|
||||
width: 350,
|
||||
buttons: {
|
||||
""Save"": function () {
|
||||
submitAddress();
|
||||
},
|
||||
Cancel: function () {
|
||||
$(this).dialog(""close"");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
||||
Reference in New Issue
Block a user