v1.2.11.2
This commit is contained in:
@@ -183,6 +183,10 @@
|
||||
<partial name="Panel-Organisation-Address.cshtml" />
|
||||
@* Organisation Images dialog, form and script *@
|
||||
<partial name="Panel-Organisation-Images.cshtml" />
|
||||
@* Organisation download dialog, form and script *@
|
||||
<partial name="Panel-Organisation-Download.cshtml" />
|
||||
@* Organisation upload dialog, form and script *@
|
||||
<partial name="Panel-Organisation-Upload.cshtml" />
|
||||
@* Select Item dialog and script *@
|
||||
<partial name="~/Views/Common/SelectItem.cshtml" />
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
@model SaxModel_Admin
|
||||
@inject SaxLocaliser Localiser
|
||||
@{
|
||||
/* Organisations - Organisation Download panel */
|
||||
// Ensure view is only included once in page.
|
||||
if (!Model.RegisterView("Views/Organisation/Panel-Organisation-Download")) return;
|
||||
// Scripts.
|
||||
Model.AdditionalFiles_JS.Add("js/sax-org-dnl.js");
|
||||
}
|
||||
|
||||
<style>
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
sax.lbl.download = '@(Localiser.GetJavascriptText("label.download"))';
|
||||
sax.dlg.title.downloadOrganisation = '@Localiser.GetJavascriptText("caption.download.organisations")';
|
||||
</script>
|
||||
|
||||
<div id="dlgOrgDownload" class="sax-dialog" title="@(HttpUtility.HtmlAttributeEncode(Localiser.GetText("caption.download.organisations")))">
|
||||
|
||||
<div class="spacer4"></div>
|
||||
@using (@Html.BeginForm(FormMethod.Post, new { @id = "frmOrgDownload", @class = "sax-form" }))
|
||||
{
|
||||
@* Organisation filter. *@
|
||||
<input type="hidden" name="Filter.Organisation" class="FilterOrganisation" />
|
||||
<input type="hidden" name="Filter.OrganisationCategoryCode" class="FilterOrganisationCategory" />
|
||||
<input type="hidden" name="Filter.OrganisationSportId" class="FilterOrganisationSportId" />
|
||||
<input type="hidden" name="Filter.OrganisationRegionId" class="FilterOrganisationRegionId" />
|
||||
<input type="hidden" name="Filter.OrganisationStatusCategoryCode" class="FilterOrganisationStatusCategory" />
|
||||
|
||||
@* Sheet name or number *@
|
||||
<div class="sax-form-control Options">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<div class="sax-label">
|
||||
<label for="chkIncludeId"><span>@Localiser["label.options"]</span> <span class="required hidden">*</span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm">
|
||||
<div class="sax-control">
|
||||
<input type="checkbox" id="chkIncludeId" name="IncludeId" class="IncludeId" /> <span class="" onclick="$('#chkIncludeId').click()">@Localiser["label.include.id"]</span>
|
||||
</div>
|
||||
<div class="sax-message"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
}
|
||||
<div class="spacer4"></div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
if (!Model.RegisterView("Views/Organisation/Panel-Organisation-Images")) return;
|
||||
// Scripts.
|
||||
Model.AdditionalFiles_JS.Add("js/sax-org-img.js");
|
||||
// Dynamic style values (to avoid build warning).
|
||||
String maxImageWidth = Sax.Config.Organisation.Logo.DisplayWidthMax_Item + "px";
|
||||
String maxImageHeight = Sax.Config.Organisation.Logo.DisplayHeightMax_Item + "px";
|
||||
}
|
||||
|
||||
<style>
|
||||
@@ -19,8 +22,8 @@
|
||||
#dlgOrganisationImages .sax-panel-drop.OrganisationLogoImageDrop img
|
||||
{
|
||||
display: none;
|
||||
max-width:@(Sax.Config.Organisation.Logo.DisplayWidthMax_Item + "px");
|
||||
max-height:@(Sax.Config.Organisation.Logo.DisplayHeightMax_Item + "px");
|
||||
max-width: @maxImageWidth;
|
||||
max-height: @maxImageHeight;
|
||||
margin-right: 8px;
|
||||
border: 1px solid #b0b0b080;
|
||||
border-radius: 4px;
|
||||
@@ -33,7 +36,7 @@
|
||||
|
||||
#dlgOrganisationImages .sax-panel-drop.OrganisationLogoImageDrop.sax-file-drag
|
||||
{
|
||||
background-color:#c0fff0;
|
||||
background-color: #c0fff0;
|
||||
border-color: darkgreen;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
@model SaxModel_Admin
|
||||
@inject SaxLocaliser Localiser
|
||||
@{
|
||||
/* Organisations - Organisation Upload panel */
|
||||
// Ensure view is only included once in page.
|
||||
if (!Model.RegisterView("Views/Organisation/Panel-Organisation-Upload")) return;
|
||||
// Scripts.
|
||||
Model.AdditionalFiles_JS.Add("js/sax-org-upl.js");
|
||||
}
|
||||
|
||||
<style>
|
||||
#dlgOrgUpload .sax-panel-drop.OrgDataFileDrop
|
||||
{
|
||||
min-height:240px;
|
||||
padding: 4px 8px;
|
||||
border: 1px solid #f0f0f0;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
#dlgOrgUpload .sax-panel-drop.OrgDataFileDrop.sax-file-drag
|
||||
{
|
||||
background-color: #f0fffc;
|
||||
border-color: darkgreen;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
sax.lbl.upload = '@(Localiser.GetJavascriptText("label.upload"))';
|
||||
sax.lbl.download = '@(Localiser.GetJavascriptText("label.download"))';
|
||||
sax.dlg.title.uploadOrganisation = '@Localiser.GetJavascriptText("caption.upload.organisations")';
|
||||
</script>
|
||||
|
||||
<div id="dlgOrgUpload" class="sax-dialog" title="@(HttpUtility.HtmlAttributeEncode(Localiser.GetText("caption.upload.organisations")))">
|
||||
|
||||
<div class="spacer4"></div>
|
||||
@using (@Html.BeginForm(FormMethod.Post, new { @id = "frmOrgUpload", @class = "sax-form", @enctype = "multipart/form-data", @onSubmit = "return false;" }))
|
||||
{
|
||||
|
||||
<div class="sax-panel-drop OrgDataFileDrop">
|
||||
|
||||
<div class="spacer2"></div>
|
||||
<div class="sax-note">@Localiser["msg.drop.organisation.data.file.here"]</div>
|
||||
<div class="spacer4"></div>
|
||||
|
||||
@* Organisation data file *@
|
||||
<div class="sax-form-control OrganisationDataFile">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<div class="sax-label">
|
||||
<label for="ifOrganisationName"><span>@Localiser["label.data.file"]</span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm">
|
||||
<div class="sax-control">
|
||||
<input type="file" name="OrganisationDataFile" class="OrganisationDataFile fullwidth" style="" />
|
||||
</div>
|
||||
<div class="sax-message"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@* Sheet name or number *@
|
||||
<div class="sax-form-control SheetNameOrNumber">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<div class="sax-label">
|
||||
<label for="ifSheetNameOrNumber"><span>@Localiser["label.sheet.name.or.number"]</span> <span class="required">*</span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm">
|
||||
<div class="sax-control">
|
||||
<input type="text" id="ifSheetNameOrNumber" name="SheetNameOrNumber" class="SheetNameOrNumber sax-input" maxlength="31" />
|
||||
</div>
|
||||
<div class="sax-message"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
}
|
||||
<div class="spacer4"></div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@using Sarand.Net.Standard.Base.Core
|
||||
@using System.Web
|
||||
@using Sarand.Net.Standard.Base.Core
|
||||
@using Sarand.Net.Standard.Base.Utils
|
||||
@using Saxonite.Base.App
|
||||
@using Saxonite.Net.Standard.Base.App
|
||||
|
||||
Reference in New Issue
Block a user