- Forside
- Høringer og tilladelser
- Indsend høringssvar
Indsend høringssvar
Exception in template (Forms/Form\HearingAnswer.cshtml): System.NullReferenceException: Object reference not set to an instance of an object. at CompiledRazorTemplates.Dynamic.eeaddfcbcabfabfa.Execute() at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context) at RazorEngine.Templating.TemplateService.Run(ITemplate template, DynamicViewBag viewBag) at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName) at RazorEngine.Razor.Parse[T](String razorTemplate, T model, DynamicViewBag viewBag, String cacheName) at Dynamicweb.Rendering.Template.RenderRazorTemplate()
@inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> @using Dynamicweb @using System.Web @using Dynamicweb.Content.Items @{ string Title = ""; var hearingsID = System.Web.HttpContext.Current.Request.QueryString["hearingID"]; if (!string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.QueryString["hearingID"])) { Item i = ItemManager.Storage.GetById("HearingCommon", @hearingsID); Title = i["Overskrift"].ToString(); } } @SnippetStart("StyleSheetHead") <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/defaultform.css" media="screen" /> @SnippetEnd("StyleSheetHead") @GetValue("Form.FormStart") @GetValue("Form.SystemFields") @foreach (LoopItem field in GetLoop("Fields")) { string formClasses = field.GetBoolean("Field.Required") ? "form-group required" : "form-group"; string required = field.GetBoolean("Field.Required") ? "required" : ""; if (field.GetString("Field.Type") == "TextInput") { <div class="@formClasses"> <label for="@field.GetValue("Field.SystemName")" class="col-form-label control-label">@Translate(@field.GetString("Field.Name"))</label> <input type="text" class="form-control" name="@field.GetString("Field.SystemName")" id="@field.GetValue("Field.SystemName")" value="@field.GetString("Field.Value")" placeholder="@field.GetString("Field.Placeholder")" @required /> @field.GetValue("Field.Description") </div> } else if (field.GetString("Field.Type") == "Email") { <div class="@formClasses"> <label for="@field.GetValue("Field.SystemName")" class="col-form-label control-label">@Translate(@field.GetString("Field.Name"))</label> <input type="text" class="form-control" name="@field.GetString("Field.SystemName")" id="@field.GetValue("Field.SystemName")" value="@field.GetString("Field.Value")" placeholder="@field.GetString("Field.Placeholder")" aria-label="@Translate(@field.GetString("Field.Name"))" @required /> @field.GetValue("Field.Description") </div> } else if (field.GetString("Field.Type") == "Textarea") { <div class="@formClasses"> <label for="@field.GetValue("Field.SystemName")" class="col-form-label control-label">@Translate(@field.GetString("Field.Name"))</label> @field.GetString("Field.Control").Replace(" id", " class=\"form-control\" id") @field.GetValue("Field.Description") </div> } else if (field.GetString("Field.Type") == "CheckBox") { <div class="@formClasses"> <input type="checkbox" class="form-check-input" name="@field.GetString("Field.SystemName")" id="@field.GetValue("Field.SystemName")" value="@field.GetString("Field.Value")" @required /> <label for="@field.GetValue("Field.SystemName")" class="form-check-label control-label">@Translate(@field.GetString("Field.Name"))</label> <div><p>@field.GetValue("Field.Description")</p></div> </div> } else if (field.GetString("Field.Type") == "Hidden") { <input type="hidden" name="@field.GetString("Field.SystemName")" id="@field.GetValue("Field.SystemName")" value="@Title" data-validate="true" /> } else if (field.GetString("Field.Type") == "File") { <div class="@formClasses input-group" style="padding:15px 0;"> <label for="@field.GetValue("Field.SystemName")" class="input-group-btn"> <span class="btn btn-primary btn-file"> @field.GetValue("Field.Name") @field.GetString("Field.Control").Replace(" id", " style=\"display: none;\" id") </span> </label> <input type="text" id="@field.GetValue("Field.SystemName")@field.GetValue("Form.ID")readonly" class="form-control" aria-label=" @field.GetValue("Field.Name")" readonly> </div> } else if (field.GetString("Field.Type") == "Image") { <div class="@formClasses"> <label for="@field.GetValue("Field.SystemName")" class="control-label">@field.GetValue("Field.Name")</label> @field.GetString("Field.Control").Replace(" id", " alt=\"\" id") <div>@field.GetString("Field.Description")</div> </div> } else if (field.GetString("Field.Type") == "Radio") { <div class="@formClasses"> <label for="@field.GetValue("Field.SystemName")" class="control-label">@field.GetValue("Field.Name")</label> @if (!string.IsNullOrEmpty(Convert.ToString(@field.GetValue("Field.Description")))) { <div class="text">@field.GetValue("Field.Description")</div> } @foreach (LoopItem option in field.GetLoop("Options")) { <div> <input type="radio" id="@field.GetValue("Field.Name")@option.GetValue("Option.ID")" class="form__control" name="@field.GetValue("Field.Name")" value="@option.GetValue("Option.Value")" /> <label for="@field.GetValue("Field.Name")@option.GetValue("Option.ID")">@option.GetValue("Option.Text")</label> </div> } </div> } else if (field.GetString("Field.Type") == "CheckBoxList") { <div class="@formClasses"> <label for="@field.GetValue("Field.SystemName")" class="col-form-label control-label">@field.GetValue("Field.Name")</label> @if (!string.IsNullOrEmpty(Convert.ToString(@field.GetValue("Field.Description")))) { <div class="text">@field.GetValue("Field.Description")</div> } <div> @field.GetString("Field.Control") </div> </div> } else if (field.GetString("Field.Type") == "Reset") { <div class="@formClasses"> @field.GetString("Field.Control").Replace(" id", " class=\"btn btn-danger col-xs-4 col-sm-2 pull-right\" onclick=\"Buttons.LockButton(event)\" id") </div> } else if (field.GetString("Field.Type") == "Submit") { <div class="@formClasses"> @field.GetString("Field.Control").Replace(" id", "class=\"btn btn-primary col-xs-5 col-sm-3 pull-left\" onclick=\"Buttons.LockButton(event)\" id") </div> } else if (field.GetString("Field.Type") == "Select") { <div class="@formClasses"> <label for="@field.GetValue("Field.SystemName")" class="col-form-label control-label">@Translate(@field.GetString("Field.Name"))</label> @if (!string.IsNullOrEmpty(Convert.ToString(@field.GetValue("Field.Description")))) { <div>@field.GetValue("Field.Description")</div> } <div>@field.GetString("Field.Control").Replace(" id", " class=\"form-control\" id")</div> </div> } else if (field.GetString("Field.Type") == "Password") { <div class="@formClasses"> <label for="@field.GetValue("Field.SystemName")" class="col-form-label control-label">@Translate(@field.GetString("Field.Name"))</label> <div>@field.GetString("Field.Control").Replace(" id", " class=\"form-control\" id")</div> @if (!string.IsNullOrEmpty(Convert.ToString(@field.GetValue("Field.Description")))) { <div><p>@field.GetValue("Field.Description")</p></div> } </div> } else if (field.GetString("Field.Type") == "Text") { <div class="@formClasses"> <label for="@field.GetValue("Field.SystemName")" class="col-form-label control-label">@Translate(@field.GetString("Field.Name"))</label> <div><p>@field.GetString("Field.Control")</p></div> @if (!string.IsNullOrEmpty(Convert.ToString(@field.GetValue("Field.Description")))) { <div><p>@field.GetValue("Field.Description")</p></div> } </div> } else { <div class="@formClasses"> <label for="@field.GetValue("Field.SystemName")">@field.GetValue("Field.Name")</label> @field.GetString("Field.Control") <p>@field.GetValue("Field.Description")</p> </div> } } @GetValue("Form.FormEnd") @SnippetStart("JavaScriptBottom") <script> $(document).on('change', '.btn-file :file', function () { var input = $(this), numFiles = input.get(0).files ? input.get(0).files.length : 1, label = input.val().replace(/\\/g, '/').replace(/.*\//, ''); input.trigger('fileselect', [numFiles, label]); }); $(document).ready(function () { $('.btn-file :file').on('fileselect', function (event, numFiles, label) { var input = $(this).parents('.input-group').find(':text'), log = numFiles > 1 ? numFiles + ' files selected' : label; if (input.length) { input.val(log); } else { if (log) alert(log); } }); }); </script> @SnippetEnd("JavaScriptBottom")
Vejledning
Dit svar offentliggøres
Når høringer skal behandles politisk vil dit navn, adresse, postnummer, by, høringssvar og eventuelle bilag blive offentliggjort.
Rettelser til dit høringssvar
Hvis der er fejl eller du skal have rettet noget i dit høringssvar, kan du kontakte Fanø Kommune.
Personfølsomme oplysninger
Dit høringsvar må ikke indeholde personfølsomme oplysninger som f.eks. cpr. nummer.
Hvis du ikke kan bruge denne portal
Hvis du ikke kan indsende din besvarelse via Fanø Kommunes høringsportal, kan du sende os en mail eller brev til de kontaktoplysninger der fremgår af adressen nederst på hjemmesiden. Dit svar vil offentliggøres i materialet til den politiske beslutning.