#pragma checksum "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Shared\EditorTemplates\CustomEditorTemplate.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "805806549b684771f7d48fccc256f03758d8e2f2"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Shared_EditorTemplates_CustomEditorTemplate), @"mvc.1.0.view", @"/Views/Shared/EditorTemplates/CustomEditorTemplate.cshtml")]
namespace AspNetCore
{
    #line hidden
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using Microsoft.AspNetCore.Mvc;
    using Microsoft.AspNetCore.Mvc.Rendering;
    using Microsoft.AspNetCore.Mvc.ViewFeatures;
#nullable restore
#line 1 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\_ViewImports.cshtml"
using Scheduler_CustomEditor;

#line default
#line hidden
#nullable disable
#nullable restore
#line 2 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\_ViewImports.cshtml"
using Kendo.Mvc.UI;

#line default
#line hidden
#nullable disable
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"805806549b684771f7d48fccc256f03758d8e2f2", @"/Views/Shared/EditorTemplates/CustomEditorTemplate.cshtml")]
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"6074915f48de0774e17ee5cc45460ef25ce9a0cf", @"/Views/_ViewImports.cshtml")]
    public class Views_Shared_EditorTemplates_CustomEditorTemplate : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<Scheduler_CustomEditor.Models.MeetingViewModel>
    {
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            WriteLiteral("\r\n");
            WriteLiteral("\r\n\r\n<div class=\"k-edit-label\">\r\n    ");
#nullable restore
#line 25 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Shared\EditorTemplates\CustomEditorTemplate.cshtml"
Write(Html.LabelFor(model => model.Title));

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n</div>\r\n<div data-container-for=\"title\" class=\"k-edit-field\">\r\n    ");
#nullable restore
#line 28 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Shared\EditorTemplates\CustomEditorTemplate.cshtml"
Write(Html.TextBoxFor(model => model.Title, new { @class = "k-textbox", data_bind = "value:title" }));

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n</div>\r\n\r\n<div class=\"k-edit-label\">\r\n    ");
#nullable restore
#line 32 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Shared\EditorTemplates\CustomEditorTemplate.cshtml"
Write(Html.LabelFor(model => model.Start));

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n</div>\r\n<div data-container-for=\"start\" class=\"k-edit-field\">\r\n\r\n    ");
#nullable restore
#line 36 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Shared\EditorTemplates\CustomEditorTemplate.cshtml"
Write(Html.Kendo().DateTimePickerFor(model => model.Start)
        .HtmlAttributes(generateDatePickerAttributes("startDateTime", "start", "value:start,invisible:isAllDay")));

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n\r\n    ");
#nullable restore
#line 39 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Shared\EditorTemplates\CustomEditorTemplate.cshtml"
Write(Html.Kendo().DatePickerFor(model => model.Start)
        .HtmlAttributes(generateDatePickerAttributes("startDate", "start", "value:start,visible:isAllDay")));

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n\r\n    <span data-bind=\"text: startTimezone\"></span>\r\n    <span data-for=\"start\" class=\"k-invalid-msg\"></span>\r\n</div>\r\n\r\n<div class=\"k-edit-label\">\r\n    ");
#nullable restore
#line 47 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Shared\EditorTemplates\CustomEditorTemplate.cshtml"
Write(Html.LabelFor(model => model.End));

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n</div>\r\n<div data-container-for=\"end\" class=\"k-edit-field\">\r\n\r\n    ");
#nullable restore
#line 51 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Shared\EditorTemplates\CustomEditorTemplate.cshtml"
Write(Html.Kendo().DateTimePickerFor(model => model.End)
        .HtmlAttributes(generateDatePickerAttributes(
            "endDateTime",
            "end",
            "value:end,invisible:isAllDay",
            new Dictionary<string, object>() { { "data-dateCompare-msg", "End date should be greater than or equal to the start date" } })));

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n\r\n    ");
#nullable restore
#line 58 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Shared\EditorTemplates\CustomEditorTemplate.cshtml"
Write(Html.Kendo().DatePickerFor(model => model.End)
        .HtmlAttributes(generateDatePickerAttributes(
            "endDate",
            "end",
            "value:end,visible:isAllDay",
            new Dictionary<string, object>() { { "data-dateCompare-msg", "End date should be greater than or equal to the start date" } })));

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n\r\n    <span data-bind=\"text: endTimezone\"></span>\r\n    <span data-for=\"end\" class=\"k-invalid-msg\"></span>\r\n</div>\r\n\r\n<div class=\"k-edit-label\">\r\n    ");
#nullable restore
#line 70 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Shared\EditorTemplates\CustomEditorTemplate.cshtml"
Write(Html.LabelFor(model => model.IsAllDay));

#line default
#line hidden
#nullable disable
            WriteLiteral(@"
</div>
<div data-container-for=""isAllDay"" class=""k-edit-field"">
    <input data-bind=""checked: isAllDay"" data-val=""true"" id=""IsAllDay"" name=""IsAllDay"" type=""checkbox"" />
</div>


<div class=""k-edit-label"">
    <label for=""timezone"">Timezone</label>
</div>
<div data-container-for=""timezone"" class=""k-edit-field"">
    <a name=""timezone"" class=""k-button"" data-bind=""invisible:isAllDay"">Time zone</a>
</div>

<div class=""k-popup-edit-form k-scheduler-edit-form k-scheduler-timezones"" style=""display:none"">
    <div class=""k-edit-form-container"">
        <div class=""k-edit-field""><label class=""k-check""><input class=""k-timezone-toggle"" type=""checkbox"">Use separate start and end time zones</label></div>
        <div class=""k-edit-label""><label for=""startTimezone"">Start timezone</label></div>
        <div data-container-for=""startTimezone"" class=""k-edit-field"">
            <div data-bind=""value:startTimezone"" name=""startTimezone"" data-role=""timezoneeditor"" style=""display: block;"">
            </div>
");
            WriteLiteral(@"        </div>
        <div class=""k-edit-label""><label for=""endTimezone"">End timezone</label></div>
        <div data-container-for=""endTimezone"" class=""k-edit-field"">
            <div data-bind=""value:endTimezone"" name=""endTimezone"" data-role=""timezoneeditor"" style=""display: block;"">
            </div>
        </div>
        <div class=""k-edit-buttons k-state-default""><a class=""k-button k-scheduler-savetimezone"" href=""\\#"">Save</a><a class=""k-button k-scheduler-canceltimezone"" href=""\\#"">Cancel</a></div>
    </div>
</div>

<div class=""k-edit-label"">
    ");
#nullable restore
#line 102 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Shared\EditorTemplates\CustomEditorTemplate.cshtml"
Write(Html.LabelFor(model => model.RecurrenceRule));

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n</div>\r\n<div data-container-for=\"recurrenceRule\" class=\"k-edit-field\">\r\n    ");
#nullable restore
#line 105 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Shared\EditorTemplates\CustomEditorTemplate.cshtml"
Write(Html.Kendo().RecurrenceEditorFor(model => model.RecurrenceRule)
        .HtmlAttributes(new { data_bind = "value:recurrenceRule" }));

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n</div>\r\n\r\n<div class=\"k-edit-label\">\r\n    ");
#nullable restore
#line 110 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Shared\EditorTemplates\CustomEditorTemplate.cshtml"
Write(Html.LabelFor(model => model.Description));

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n</div>\r\n<div data-container-for=\"description\" class=\"k-edit-field\">\r\n    ");
#nullable restore
#line 113 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Shared\EditorTemplates\CustomEditorTemplate.cshtml"
Write(Html.TextAreaFor(model => model.Description, new { @class = "k-textbox", data_bind = "value:description" }));

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n</div>\r\n\r\n<div class=\"k-edit-label\">\r\n    ");
#nullable restore
#line 117 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Shared\EditorTemplates\CustomEditorTemplate.cshtml"
Write(Html.LabelFor(model => model.TradeId));

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n</div>\r\n<div data-container-for=\"RoomID\" class=\"k-edit-field\">\r\n    ");
#nullable restore
#line 120 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Shared\EditorTemplates\CustomEditorTemplate.cshtml"
Write(Html.Kendo().DropDownListFor(model => model.TradeId)
        .HtmlAttributes(new { data_bind = "value:TradeId", style = "width: 200px" })
        .DataTextField("Text")
        .DataValueField("Value")
        .OptionLabel("None")
        .ValuePrimitive(true)
        .Template("<span class='k-scheduler-mark' style='background-color:\\#= data.Color?Color:'' \\#'></span>\\#=Text\\#")
        .Filter(FilterType.Contains)
        .DataSource(ds=>ds.Read(r=>
                r.Action("GetTrades","Scheduler"))
            .ServerFiltering(true)
            )
        .ToClientTemplate()
    );

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n</div>\r\n\r\n<div class=\"k-edit-label\">\r\n    ");
#nullable restore
#line 137 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Shared\EditorTemplates\CustomEditorTemplate.cshtml"
Write(Html.LabelFor(model => model.PersonId));

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n</div>\r\n<div data-container-for=\"PersonId\" class=\"k-edit-field\">\r\n    ");
#nullable restore
#line 140 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Shared\EditorTemplates\CustomEditorTemplate.cshtml"
Write(Html.Kendo().DropDownListFor(model => model.PersonId)
        .HtmlAttributes(new { data_bind = "value:PersonId" })
        .DataTextField("Text")
        .DataValueField("Value")
        .CascadeFrom("TradeId")
        .ValuePrimitive(true)
        .DataSource(ds => ds.Read(r =>
                r.Action("GetPersons", "Scheduler").Data("additionalData")
            )
            .ServerFiltering(true)
        )
        .Enable(false)
        .AutoBind(false)
        .ToClientTemplate()
    );

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n</div>\r\n\r\n");
        }
        #pragma warning restore 1998
#nullable restore
#line 3 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Shared\EditorTemplates\CustomEditorTemplate.cshtml"
           
    public Dictionary<string, object> generateDatePickerAttributes(
           string elementId,
           string fieldName,
           string dataBindAttribute,
           Dictionary<string, object> additionalAttributes = null)
    {

        Dictionary<string, object> datePickerAttributes = additionalAttributes != null ? new Dictionary<string, object>(additionalAttributes) : new Dictionary<string, object>();

        datePickerAttributes["id"] = elementId;
        datePickerAttributes["name"] = fieldName;
        datePickerAttributes["data-bind"] = dataBindAttribute;
        datePickerAttributes["required"] = "required";
        datePickerAttributes["style"] = "z-index: inherit;";

        return datePickerAttributes;
    }

#line default
#line hidden
#nullable disable
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<Scheduler_CustomEditor.Models.MeetingViewModel> Html { get; private set; }
    }
}
#pragma warning restore 1591
