Duplicaat paspoort- en/of registratiebewijs aanvragen
In dit scherm kunt u een paspoort duplicaat aanvragen. Ingelogde leden kunnen een paspoort- en/of registratiebewijsduplicaat aanvragen.
Error executing template "Designs/Kwpn/DataManagement/Forms/Form/FormPassportDuplicate.cshtml" System.IO.IOException: The process cannot access the file 'D:\inetpub\wwwroot\www.kwpn.nl\Files\Templates\Designs\Kwpn\Translations.xml' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at Dynamicweb.Rendering.Translation.Source.WriteDocument(XmlDocument document) at Dynamicweb.Rendering.Translation.Source.Save() at Dynamicweb.Rendering.Translation.Source.UpdateTranslationSource(Source source, IEnumerable`1 newKeys, String designName, IEnumerable`1 cultures) at Dynamicweb.Rendering.Template.TranslateText(String text, String defaultValue, String cultureName) at Dynamicweb.Rendering.TemplateBase`1.Translate(String text, String defaultValue) at CompiledRazorTemplates.Dynamic.RazorEngine_cc8d841510fb48e5a56e5a92f4f19a3c.Execute() in D:\inetpub\wwwroot\www.kwpn.nl\Files\Templates\Designs\Kwpn\DataManagement\Forms\Form\FormPassportDuplicate.cshtml:line 633 at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader) at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag) at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer) at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter) at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template) at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template) at Dynamicweb.Rendering.Template.RenderRazorTemplate()
1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 @using Kwpn.Repository.Repositories 3 @using System.Web 4 @using Kwpn.Repository.Helpers 5 @using Kwpn.Models.ApiModels 6 7 @{ 8 List<CountryModel> countries = Kwpn.Repository.EquisApi.Countries.GetCountries(); 9 10 var isLoggedIn = LoginHelper.CurrentUserIsLoggedIn(); 11 var isLoggedInAndMember = LoginHelper.CurrentUserIsLoggedIn() && KwpnUsers.CurrentUser().IsMember && !KwpnUsers.CurrentUser().IsBlocked; 12 13 var memberCountry = KwpnUsers.CurrentUser()?.DwUser?.Country ?? ""; 14 15 var culture = GetGlobalValue("Global:Area.LongLang"); 16 var currentDateTime = DateTime.Now; 17 var animalCode = System.Web.HttpContext.Current.Request.QueryString.Get(Translate("Horse", "Horse")); 18 19 string membershipNumber = "", 20 userId = "", 21 userName = "", 22 userAddress = "", 23 userHouseNr = "", 24 userPostalCode = "", 25 userCity = "", 26 userPhone = "", 27 userEmail = "", 28 authorizationName = "", 29 authorizationResidence = "", 30 lifeNumber = "", 31 horseName = "", 32 gender = "", 33 doBirth = "", 34 color = "", 35 chipNumber = "", 36 breeder = "", 37 fatherName = "", 38 fatherNumber = "", 39 motherName = "", 40 motherNumber = "", 41 passportName = "", 42 passportNumber = "", 43 passportPrice = "", 44 passportPriceFormatted = "", 45 passportRegistrationName = "", 46 passportRegistrationNumber = "", 47 passportRegistrationPrice = "", 48 passportRegistrationPriceFormatted = "", 49 registrationName = "", 50 registrationNumber = "", 51 registrationPrice = "", 52 registrationPriceFormatted = ""; 53 54 if (isLoggedIn) 55 { 56 var dwUser = KwpnUsers.CurrentUser().DwUser; 57 membershipNumber = dwUser.UserName; 58 userId = dwUser.ID.ToString(); 59 userName = dwUser.Name; 60 userAddress = dwUser.Address; 61 userHouseNr = dwUser.HouseNumber; 62 userPostalCode = dwUser.Zip; 63 userCity = dwUser.City; 64 userPhone = dwUser.Phone; 65 userEmail = dwUser.Email; 66 authorizationName = dwUser.Name; 67 authorizationResidence = dwUser.City; 68 } 69 70 var productService = new Dynamicweb.Ecommerce.Products.ProductService(); 71 var ecomLanguageId = Dynamicweb.Frontend.PageView.Current().Area.EcomLanguageId; 72 73 var PassportDuplicateProduct_Passport = productService.GetProductByNumber(Kwpn.Models.Constants.StringConstants.ProductNumbers.PassportDuplicate, ecomLanguageId); 74 if (PassportDuplicateProduct_Passport != null) 75 { 76 passportName = PassportDuplicateProduct_Passport.Name; 77 passportNumber = PassportDuplicateProduct_Passport.Number; 78 passportPrice = ProductHelper.GetProductPrice(PassportDuplicateProduct_Passport).ToString(); 79 passportPriceFormatted = ProductHelper.FormatPrice(ProductHelper.GetProductPrice(PassportDuplicateProduct_Passport)); 80 } 81 82 var PassportDuplicateProduct_PassportRegistration = productService.GetProductByNumber(Kwpn.Models.Constants.StringConstants.ProductNumbers.PassportRegistrationDuplicate, ecomLanguageId); 83 if (PassportDuplicateProduct_PassportRegistration != null) 84 { 85 passportRegistrationName = PassportDuplicateProduct_PassportRegistration.Name; 86 passportRegistrationNumber = PassportDuplicateProduct_PassportRegistration.Number; 87 passportRegistrationPrice = ProductHelper.GetProductPrice(PassportDuplicateProduct_PassportRegistration).ToString(); 88 passportRegistrationPriceFormatted = ProductHelper.FormatPrice(ProductHelper.GetProductPrice(PassportDuplicateProduct_PassportRegistration)); 89 } 90 91 var PassportDuplicateProduct_Registration = productService.GetProductByNumber(Kwpn.Models.Constants.StringConstants.ProductNumbers.RegistrationDuplicate, ecomLanguageId); 92 if (PassportDuplicateProduct_Registration != null) 93 { 94 registrationName = PassportDuplicateProduct_Registration.Name; 95 registrationNumber = PassportDuplicateProduct_Registration.Number; 96 registrationPrice = ProductHelper.GetProductPrice(PassportDuplicateProduct_Registration).ToString(); 97 registrationPriceFormatted = ProductHelper.FormatPrice(ProductHelper.GetProductPrice(PassportDuplicateProduct_Registration)); 98 } 99 100 var iban = ""; 101 var bic = ""; 102 var equisUser = UserHelper.GetEquisUser(); 103 if (equisUser != null) 104 { 105 iban = equisUser.Iban; 106 bic = equisUser.Bic; 107 } 108 109 <div class="w-section inverse"> 110 <div class="w-box sign-in-wr bg-5"> 111 <div id="FormPassportDuplicate" class="form-body"> 112 @GetValue("Form.Start") 113 @GetValue("Form.Hidden") @*Hidden fields are filled with jquery*@ 114 115 <div class="row"> 116 <div class="col-xs-12"> 117 118 <div class="form-group"> 119 <div class="form-inline"> 120 <label class="control-label col-sm-4">@Translate("DuplicateOf", "Duplicate of")</label> 121 <div class="checkboxList"> 122 <input type="checkbox" 123 name="Kwpn_Form_PassportDuplicate_DuplicateType" 124 id="Kwpn_Form_PassportDuplicate_DuplicateType_Passport" 125 value="Passport" 126 checked="checked" /><label for="Kwpn_Form_PassportDuplicate_DuplicateType_Passport" class="normal"> @Translate("Duplicate_Passport", "Passport")</label> 127 <br /> 128 <input type="checkbox" 129 name="Kwpn_Form_PassportDuplicate_DuplicateType" 130 id="Kwpn_Form_PassportDuplicate_DuplicateType_Registration" 131 value="Registration" @if (!isLoggedInAndMember) { <text> disabled="disabled" </text> } /><label for="Kwpn_Form_PassportDuplicate_DuplicateType_Registration" class="normal"> 132 @Translate("Duplicate_Registration", "Registration") @if (!isLoggedIn) 133 {@Translate("ForMembersOnly", "For members only")} 134 </label> 135 </div> 136 </div> 137 </div> 138 139 <h3>@Translate("PersonalInformation", "Personal information")</h3> 140 141 <div class="form-group"> 142 143 <div class="form-inline @(!isLoggedIn ? "hidden" : "")"> 144 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_AccessUserUserName">@Translate("MembershipNumber")</label> 145 <input type="text" class="form-control" id="Kwpn_Form_PassportDuplicate_AccessUserUserName" name="Kwpn_Form_PassportDuplicate_AccessUserUserName" value="@membershipNumber" @(isLoggedIn ? "readonly required" : "") /> 146 </div> 147 148 <div class="form-inline"> 149 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_Name">@(!isLoggedIn ? Translate("InitialsAndName", "Initials and Name") : Translate("Name", "Name"))</label> 150 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_Name" name="Kwpn_Form_PassportDuplicate_Name" value="@userName" @(isLoggedIn ? "readonly" : "") required /> 151 </div> 152 <div class="form-inline"> 153 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_Address">@Translate("Address")</label> 154 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_Address" name="Kwpn_Form_PassportDuplicate_Address" value="@userAddress" @(isLoggedIn && !string.IsNullOrWhiteSpace(userAddress) ? "readonly" : "") required /> 155 </div> 156 <div class="form-inline"> 157 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_HouseNumber">@Translate("HouseNumber")</label> 158 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_HouseNumber" maxlength="10" name="Kwpn_Form_PassportDuplicate_HouseNumber" value="@userHouseNr" @(isLoggedIn && !string.IsNullOrWhiteSpace(userHouseNr) ? "readonly" : "") @if (culture.Equals("nl-NL", StringComparison.InvariantCultureIgnoreCase)) { <text> required</text>} /> 159 </div> 160 <div class="form-inline"> 161 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_ZipCode">@Translate("PostalCode")</label> 162 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_ZipCode" maxlength="10" name="Kwpn_Form_PassportDuplicate_ZipCode" value="@userPostalCode" @(isLoggedIn && !string.IsNullOrWhiteSpace(userPostalCode) ? "readonly" : "") required /> 163 </div> 164 <div class="form-inline"> 165 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_City">@Translate("Place")</label> 166 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_City" name="Kwpn_Form_PassportDuplicate_City" value="@userCity" @(isLoggedIn && !string.IsNullOrWhiteSpace(userCity) ? "readonly" : "") required /> 167 </div> 168 <div class="form-inline"> 169 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_TelephoneNumber">@Translate("Phone")</label> 170 <input type="tel" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_TelephoneNumber" name="Kwpn_Form_PassportDuplicate_TelephoneNumber" value="@userPhone" @(isLoggedIn && !string.IsNullOrWhiteSpace(userPhone) ? "readonly" : "") required /> 171 </div> 172 <div class="form-inline"> 173 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_EmailAddress">@Translate("Email_address")</label> 174 <input type="email" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_EmailAddress" name="Kwpn_Form_PassportDuplicate_EmailAddress" value="@userEmail" required /> 175 </div> 176 </div> 177 178 179 180 </div> 181 </div> 182 183 @{ 184 185 if (string.IsNullOrWhiteSpace(animalCode)) 186 { 187 <div class="break-grid content-container"> 188 <div class="break-grid-background"> 189 <div class="in-grid"> 190 <div class="row"> 191 <div class="col-xs-12"> 192 @Translate("NoHorseSelected", "No horse selected") 193 @*todo: zoek functionaliteit en evt bericht geving als je via een actie link hier komt*@ 194 </div> 195 </div> 196 </div> 197 </div> 198 </div> 199 } 200 else 201 { 202 var horse = Horses.Get(animalCode, culture, true, true, true, true, true, true, true, true, true); 203 if (horse == null) 204 { 205 <div class="break-grid content-container"> 206 <div class="break-grid-background"> 207 <div class="in-grid"> 208 <div class="row"> 209 <div class="col-xs-12"> 210 @Translate("HorseNotFound", "Horse not found") 211 </div> 212 </div> 213 </div> 214 </div> 215 </div> 216 } 217 else 218 { 219 // horse info 220 horseName = HorseHelper.GetHorseName(horse.SportsName, horse.AnimalName, null); 221 222 lifeNumber = horse.Lifenumber; 223 if (!string.IsNullOrWhiteSpace(horse.LifenumberComplete)) 224 { 225 lifeNumber = horse.LifenumberComplete; 226 } 227 228 if (horse.DateOfBirth.HasValue) 229 { 230 doBirth = horse.DateOfBirth.Value.ToShortDateString(); 231 } 232 233 gender = horse.Gender; 234 235 var colorInfo = horse.GetMarkingByType(Kwpn.Models.Constants.StringConstants.MarkingTypes.Color); 236 if (colorInfo != null) { color = colorInfo.Description; } 237 238 chipNumber = horse.ChipNumber; 239 240 // father info 241 var father = horse.GetPredigreeByPrefix(Kwpn.Models.Constants.StringConstants.PedigreePrefixes.Father); 242 if (father != null) 243 { 244 fatherName = father.AnimalName; 245 fatherNumber = father.Lifenumber; 246 } 247 248 // mother info 249 var mother = horse.GetPredigreeByPrefix(Kwpn.Models.Constants.StringConstants.PedigreePrefixes.Mother); 250 if (mother != null) 251 { 252 motherName = mother.AnimalName; 253 motherNumber = mother.Lifenumber; 254 } 255 256 if (horse.Breeders != null && horse.Breeders.Any()) 257 { 258 foreach (var b in horse.Breeders) 259 { 260 if (!string.IsNullOrWhiteSpace(breeder)) 261 { 262 breeder = string.Format("{0} | ", breeder); 263 } 264 breeder = string.Format("{0}{1}", breeder, b.LastName); 265 } 266 } 267 if (string.IsNullOrWhiteSpace(breeder)) 268 { 269 breeder = Translate("Unknown", "Unknown"); 270 } 271 272 } 273 } 274 } 275 276 277 278 <div class="row"> 279 <div class="col-xs-12"> 280 281 <br /> 282 283 <h3>@Translate("HorseData")</h3> 284 <div class="form-group"> 285 <div class="form-inline"> 286 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_HorseName">@Translate("Name")</label> 287 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_HorseName" name="Kwpn_Form_PassportDuplicate_HorseName" value="@horseName" readonly required /> 288 </div> 289 <div class="form-inline not-in-form"> 290 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_LifeNumber">@Translate("LifeNumber")</label> 291 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_LifeNumber" name="Kwpn_Form_PassportDuplicate_LifeNumber" value="@lifeNumber" readonly /> 292 </div> 293 <div class="form-inline not-in-form"> 294 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_DateOfBirth">@Translate("DateOfBirth")</label> 295 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_DateOfBirth" name="Kwpn_Form_PassportDuplicate_DateOfBirth" value="@doBirth" readonly /> 296 </div> 297 <div class="form-inline not-in-form"> 298 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_Gender">@Translate("Gender")</label> 299 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_Gender" name="Kwpn_Form_PassportDuplicate_Gender" value="@gender" readonly /> 300 </div> 301 <div class="form-inline not-in-form"> 302 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_Color">@Translate("Color")</label> 303 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_Color" name="Kwpn_Form_PassportDuplicate_Color" value="@color" readonly /> 304 </div> 305 <div class="form-inline not-in-form"> 306 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_ChipNumber">@Translate("ChipNumber")</label> 307 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_ChipNumber" name="Kwpn_Form_PassportDuplicate_ChipNumber" value="@chipNumber" readonly /> 308 </div> 309 <div class="form-inline not-in-form"> 310 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_FatherName">@Translate("FathersName")</label> 311 <input type="text" class="form-control" id="Kwpn_Form_PassportDuplicate_FatherName" name="Kwpn_Form_PassportDuplicate_FatherName" value="@fatherName" readonly /> 312 </div> 313 <div class="form-inline not-in-form"> 314 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_FatherNumber">@Translate("FathersNumber")</label> 315 <input type="text" class="form-control" id="Kwpn_Form_PassportDuplicate_FatherNumber" name="Kwpn_Form_PassportDuplicate_FatherNumber" value="@fatherNumber" readonly /> 316 </div> 317 <div class="form-inline not-in-form"> 318 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_Mother">@Translate("MothersName")</label> 319 <input type="text" class="form-control" id="Kwpn_Form_PassportDuplicate_Mother" name="Kwpn_Form_PassportDuplicate_Mother" value="@motherName" readonly /> 320 </div> 321 <div class="form-inline not-in-form"> 322 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_MotherNumber">@Translate("MotherNumber")</label> 323 <input type="text" class="form-control" id="Kwpn_Form_PassportDuplicate_MotherNumber" name="Kwpn_Form_PassportDuplicate_MotherNumber" value="@motherNumber" readonly /> 324 </div> 325 <div class="form-inline not-in-form"> 326 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_Breeder">@Translate("Breeder")</label> 327 <input type="text" class="form-control" id="Kwpn_Form_PassportDuplicate_Breeder" name="Kwpn_Form_PassportDuplicate_Breeder" value="@breeder" readonly /> 328 </div> 329 </div> 330 </div> 331 </div> 332 333 <div class="row"> 334 <div class="col-xs-12"> 335 <br /> 336 <h3>@Translate("ExtraInformation", "Extra information")</h3> 337 <div class="form-group"> 338 339 <div class="form-inline"> 340 <label class="control-label col-sm-4">@Translate("IsHorseRegisteredToName", "Is this horse registered to your name?")</label> 341 @foreach (var f in GetLoop("Form.Fields").Where(f => f.GetString("Field.Systemname") == "Kwpn_Form_PassportDuplicate_IsOwner")) 342 { 343 foreach (var fo in f.GetLoop("FieldOptions")) 344 { 345 var id = string.Format("Kwpn_Form_PassportDuplicate_IsOwner_{0}", fo.GetString("Field.Option.Value")); 346 var value = fo.GetString("Field.Option.Value"); 347 var text = Translate(string.Format("PassportDuplicate_IsOwner_Text_{0}", fo.GetString("Field.Option.Text")), fo.GetString("Field.Option.Text")); 348 var checkedIndicator = ""; 349 if (fo.GetInteger("FieldOptions.LoopCounter") == 1) 350 { 351 checkedIndicator = "checked=\"checked\""; 352 } 353 <input type="radio" id="@id" name="Kwpn_Form_PassportDuplicate_IsOwner" value="@value" @checkedIndicator /> 354 <label for="@id" class="radio-label">@text</label> 355 } 356 } 357 </div> 358 359 360 <div id="Kwpn_Form_PassportDuplicate_IsOwner_Yes" class="hidden"> 361 362 <div class="form-inline"> 363 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_Since">@Translate("IfSoSinceWhen", "If so, since when?")</label> 364 <input type="text" class="form-control" id="Kwpn_Form_PassportDuplicate_Since" name="Kwpn_Form_PassportDuplicate_Since" value="" maxlength="255" /> 365 </div> 366 367 368 369 </div> 370 371 <div id="Kwpn_Form_PassportDuplicate_IsOwner_No" class="hidden"> 372 373 <div class="form-inline"> 374 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_Owner">@Translate("IfNotWhoIsOwner", "If not, who is the registered owner?")</label> 375 <input type="text" class="form-control" id="Kwpn_Form_PassportDuplicate_Owner" name="Kwpn_Form_PassportDuplicate_Owner" value="" maxlength="255" /> 376 </div> 377 378 <div class="form-inline"> 379 <label class="control-label col-sm-4">@Translate("AreYouAKeeper", "Are you the keeper?")</label> 380 @foreach (var f in GetLoop("Form.Fields").Where(f => f.GetString("Field.Systemname") == "Kwpn_Form_PassportDuplicate_IsKeeper")) 381 { 382 foreach (var fo in f.GetLoop("FieldOptions")) 383 { 384 var id = string.Format("Kwpn_Form_PassportDuplicate_IsKeeper_{0}", fo.GetString("Field.Option.Value")); 385 var value = fo.GetString("Field.Option.Value"); 386 var text = Translate(string.Format("Kwpn_Form_PassportDuplicate_IsKeeper_Text_{0}", fo.GetString("Field.Option.Text")), fo.GetString("Field.Option.Text")); 387 var checkedIndicator = ""; 388 if (fo.GetInteger("FieldOptions.LoopCounter") == 1) 389 { 390 checkedIndicator = "checked=\"checked\""; 391 } 392 <input type="radio" id="@id" name="Kwpn_Form_PassportDuplicate_IsKeeper" value="@value" @checkedIndicator /> 393 <label for="@id" class="radio-label">@text</label> 394 } 395 } 396 </div> 397 398 <div id="Kwpn_Form_PassportDuplicate_IsKeeper_Yes" class="hidden"> 399 400 <div> 401 @Translate("Kwpn_Form_PassportDuplicate_OwnerAgreementText", "If you're the keeper gladly submit a statement from the owner which he declares to agree that you are applying for a duplicate document for that equine.") 402 </div> 403 404 </div> 405 406 </div> 407 408 409 <div class="form-inline"> 410 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_BoughtFrom">@Translate("WhoDidYouBuyThisHorseFrom", "Who did you buy this horse from?")</label> 411 <input type="text" class="form-control" id="Kwpn_Form_PassportDuplicate_BoughtFrom" name="Kwpn_Form_PassportDuplicate_BoughtFrom" value="" maxlength="255" /> 412 </div> 413 414 <div class="form-inline"> 415 <label class="control-label col-sm-4">@Translate("OrigionalDocumentInfo", "The origional document is")</label> 416 <div class="checkboxList"> 417 <input type="radio" class="hide-hints" id="Kwpn_Form_PassportDuplicate_OrigionalDocumentInfo_NotIncluded" name="Kwpn_Form_PassportDuplicate_OrigionalDocumentInfo" value="@Translate("NotIncluded", "Not included").JsEncode()" checked="checked" /> 418 <label for="Kwpn_Form_PassportDuplicate_OrigionalDocumentInfo_NotIncluded" class="normal">@Translate("NotIncluded", "Not included")</label> 419 <br /> 420 <input type="radio" class="hide-hints" id="Kwpn_Form_PassportDuplicate_OrigionalDocumentInfo_Lost" name="Kwpn_Form_PassportDuplicate_OrigionalDocumentInfo" value="@Translate("Lost", "Lost").JsEncode()" /> 421 <label for="Kwpn_Form_PassportDuplicate_OrigionalDocumentInfo_Lost" class="normal">@Translate("Lost", "Lost")</label> 422 </div> 423 </div> 424 425 <div id="Kwpn_Form_PassportDuplicate_OrigionalDocumentInfo_Lost_Yes" class="hidden"> 426 427 <div class="form-inline"> 428 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_WhenLost">@Translate("WhenDidTheDocumentGetLost", "When did the passport/registration get lost?")</label> 429 <input type="text" class="form-control" id="Kwpn_Form_PassportDuplicate_WhenLost" name="Kwpn_Form_PassportDuplicate_WhenLost" value="" maxlength="50" /> 430 </div> 431 432 <div class="form-inline"> 433 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_OrigionalDocumentLostReason">@Translate("WhatIsTherReasonTheDocumentGotLost", "What is the reason the passport/registration got lost?")</label> 434 435 <div class="checkboxList"> 436 @foreach (var f in GetLoop("Form.Fields").Where(f => f.GetString("Field.Systemname") == "Kwpn_Form_PassportDuplicate_OrigionalDocumentLostReasonSelection")) 437 { 438 foreach (var fo in f.GetLoop("FieldOptions")) 439 { 440 var id = string.Format("Kwpn_Form_PassportDuplicate_OrigionalDocumentLostReasonSelection_{0}", fo.GetString("Field.Option.Value")); 441 var value = fo.GetString("Field.Option.Value"); 442 var text = Translate(string.Format("Kwpn_Form_PassportDuplicate_OrigionalDocumentLostReasonSelection_Text_{0}", fo.GetString("Field.Option.Text")), fo.GetString("Field.Option.Text")); 443 var checkedIndicator = ""; 444 if (fo.GetInteger("FieldOptions.LoopCounter") == 1) 445 { 446 checkedIndicator = "checked=\"checked\""; 447 } 448 <input type="radio" id="@id" name="Kwpn_Form_PassportDuplicate_OrigionalDocumentLostReasonSelection" value="@value" @checkedIndicator /> 449 <label for="@id" class="radio-label">@text</label><br /> 450 } 451 } 452 <textarea class="form-control" id="Kwpn_Form_PassportDuplicate_OrigionalDocumentLostReason" name="Kwpn_Form_PassportDuplicate_OrigionalDocumentLostReason"></textarea> 453 </div> 454 455 </div> 456 457 <div class="form-inline"> 458 <label class="control-label col-sm-4">@Translate("Kwpn_Form_PassportDuplicate_Reported", "Did you report the loss to the police?")</label> 459 @foreach (var f in GetLoop("Form.Fields").Where(f => f.GetString("Field.Systemname") == "Kwpn_Form_PassportDuplicate_OrigionalDocumentLostLocationKnown")) 460 { 461 foreach (var fo in f.GetLoop("FieldOptions")) 462 { 463 var id = string.Format("Kwpn_Form_PassportDuplicate_Reported_{0}", fo.GetString("Field.Option.Value")); 464 var value = fo.GetString("Field.Option.Value"); 465 var text = Translate(string.Format("Kwpn_Form_PassportDuplicate_Reported_Text_{0}", fo.GetString("Field.Option.Text")), fo.GetString("Field.Option.Text")); 466 var checkedIndicator = ""; 467 if (fo.GetInteger("FieldOptions.LoopCounter") == 1) 468 { 469 checkedIndicator = "checked=\"checked\""; 470 } 471 <input type="radio" id="@id" name="Kwpn_Form_PassportDuplicate_Reported" value="@value" @checkedIndicator /> 472 <label for="@id" class="radio-label">@text</label> 473 } 474 } 475 </div> 476 477 <div id="Kwpn_Form_PassportDuplicate_Reported_Yes" class="hidden"> 478 <div> 479 @Translate("Kwpn_Form_PassportDuplicate_Reported_Info", "Submit a copy of the declaration.") 480 </div> 481 </div> 482 483 <div class="form-inline"> 484 <label class="control-label col-sm-4">@Translate("Kwpn_Form_PassportDuplicate_LocationKnown", "Do you know or do you have a suspicion of where the origional passport / registration currently is?")</label> 485 @foreach (var f in GetLoop("Form.Fields").Where(f => f.GetString("Field.Systemname") == "Kwpn_Form_PassportDuplicate_OrigionalDocumentLostLocationKnown")) 486 { 487 foreach (var fo in f.GetLoop("FieldOptions")) 488 { 489 var id = string.Format("Kwpn_Form_PassportDuplicate_OrigionalDocumentLostLocationKnown_{0}", fo.GetString("Field.Option.Value")); 490 var value = fo.GetString("Field.Option.Value"); 491 var text = Translate(string.Format("Kwpn_Form_PassportDuplicate_OrigionalDocumentLostLocationKnown_Text_{0}", fo.GetString("Field.Option.Text")), fo.GetString("Field.Option.Text")); 492 var checkedIndicator = ""; 493 if (fo.GetInteger("FieldOptions.LoopCounter") == 1) 494 { 495 checkedIndicator = "checked=\"checked\""; 496 } 497 <input type="radio" id="@id" name="Kwpn_Form_PassportDuplicate_OrigionalDocumentLostLocationKnown" value="@value" @checkedIndicator /> 498 <label for="@id" class="radio-label">@text</label> 499 } 500 } 501 </div> 502 503 <div id="Kwpn_Form_PassportDuplicate_OrigionalDocumentLostLocationKnown_Yes" class="hidden"> 504 505 <div class="form-inline"> 506 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_OrigionalDocumentLostLocation">@Translate("WhereDidTheDocumentGetLost", "Where did the passport/registration get lost?")</label> 507 <textarea class="form-control" id="Kwpn_Form_PassportDuplicate_OrigionalDocumentLostLocation" name="Kwpn_Form_PassportDuplicate_OrigionalDocumentLostLocation"></textarea> 508 </div> 509 510 </div> 511 512 </div> 513 514 <div class="form-inline"> 515 <p>@Translate("EncloseOrigionalDocument", "If you are in the posession of any of the origional documents (passport or registration) you need to send them to us.")</p> 516 </div> 517 518 519 </div> 520 </div> 521 </div> 522 523 <div class="row"> 524 <div class="col-xs-12"> 525 526 <br /> 527 528 <h3>@Translate("StableData", "Stable data")</h3> 529 530 <div class="form-group"> 531 532 <div class="form-inline"> 533 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_StableOwner">@Translate("StableOwner", "Name holder")</label> 534 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_StableOwner" name="Kwpn_Form_PassportDuplicate_StableOwner" value="" maxlength="255" /> 535 </div> 536 537 <div class="form-inline"> 538 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_StableName">@Translate("StableName", "Stable name")</label> 539 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_StableName" name="Kwpn_Form_PassportDuplicate_StableName" value="" maxlength="255" /> 540 </div> 541 542 <div class="form-inline"> 543 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_StableAddress">@Translate("StableAddress", "Address")</label> 544 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_StableAddress" name="Kwpn_Form_PassportDuplicate_StableAddress" value="" required maxlength="50" /> 545 </div> 546 547 <div class="form-inline"> 548 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_StableHouseNumber">@Translate("StableHouseNumber", "House number")</label> 549 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_StableHouseNumber" maxlength="10" name="Kwpn_Form_PassportDuplicate_StableHouseNumber" value="" @if (culture.Equals("nl-NL", StringComparison.InvariantCultureIgnoreCase)) { <text> required</text>} maxlength="50" /> 550 </div> 551 552 <div class="form-inline"> 553 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_StablePostalCode">@Translate("StablePostalCode", "Postal code")</label> 554 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_StablePostalCode" maxlength="10" name="Kwpn_Form_PassportDuplicate_StablePostalCode" value="" required maxlength="50" /> 555 </div> 556 557 <div class="form-inline"> 558 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_StableCity">@Translate("StableCity", "City")</label> 559 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_StableCity" name="Kwpn_Form_PassportDuplicate_StableCity" value="" required maxlength="50" /> 560 </div> 561 562 <div class="form-inline"> 563 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_StableCountry">@Translate("StableCountry", "Country")</label> 564 565 <select class="form-control hide-hints capitalize" name="Kwpn_Form_PassportDuplicate_StableCountry" id="Kwpn_Form_PassportDuplicate_StableCountry" onchange="ShowCountrySpecificFields($(this).val())" required> 566 <option value="" selected>@Translate("Select")</option> 567 @foreach (var country in countries.OrderBy(c => c.CountryName)) 568 { 569 <option value="@country.CountryCode" data-code="@country.CountryCode" class="capitalize" @if (isLoggedInAndMember && (memberCountry.Equals(country.CountryCode, StringComparison.InvariantCultureIgnoreCase))) { <text> selected="selected" </text> }>@country.CountryName</option> 570 } 571 </select> 572 573 574 </div> 575 576 577 <div id="panel-ubn-code" class="form-inline"> 578 <label class="control-label col-sm-4 no-asterisk" for="Kwpn_Form_PassportDuplicate_UBNCode">@Translate("UbnCode", "UBN Code")</label> 579 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_UBNCode" name="Kwpn_Form_PassportDuplicate_UBNCode" value="" /> 580 581 <p> 582 @Translate("Kwpn_Form_PassportDuplicate_UBNCode_Information", "Vanaf 1-1-2025 is het KWPN verplicht om tijdens de registratie van uw veulen, de UBN-nummer van het adres waarop uw veulen gestald is, bij de geboortemelding te melden naar het RVO (Rijksdienst voor Ondernemend Nederland). Zonder het UBN-nummer is het voor het KWPN niet mogelijk om een databasemelding bij het RVO te kunnen doen en mag er geen paspoort verstrekt worden voor uw veulen.") 583 </p> 584 585 </div> 586 587 <div class="form-inline"> 588 <label class="control-label col-sm-4">@Translate("MayTheHorseBeInspected", "May the horse be inspected by us?")</label> 589 <input type="checkbox" class="hide-hints" id="Kwpn_Form_PassportDuplicate_CanBeInspected" name="Kwpn_Form_PassportDuplicate_CanBeInspected" value="true"> <label for="Kwpn_Form_PassportDuplicate_CanBeInspected" class="normal">@Translate("YesNo", "yes/no")</label> 590 </div> 591 </div> 592 593 </div> 594 </div> 595 596 <div class="row"> 597 <div class="col-xs-12"> 598 <div class="form-group"> 599 600 <br /> 601 602 <h3>@Translate("AuthorizationData", "Authorization data")</h3> 603 604 <div class="form-inline"> 605 <label class="control-label col-sm-4">@Translate("Authorization", "Authorization")</label> 606 <input type="checkbox" id="Kwpn_Form_PassportDuplicate_AgreedWithAuthorization" name="Kwpn_Form_PassportDuplicate_AgreedWithAuthorization" required /> <label for="Kwpn_Form_PassportDuplicate_AgreedWithAuthorization" class="checkbox-label no-asterisk">@Translate("AuthorizationApproved", "Approved")</label> 607 </div> 608 609 <div class="form-inline" id="iban-wrapper"> 610 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_IBAN">@Translate("IBAN", "IBAN")</label> 611 <input type="text" 612 class="form-control text-uppercase" 613 id="Kwpn_Form_PassportDuplicate_IBAN" 614 name="Kwpn_Form_PassportDuplicate_IBAN" 615 value="@iban" 616 @*pattern="[a-zA-Z]{2}[0-9]{2}[a-zA-Z0-9]{4}[0-9]{7}([a-zA-Z0-9]?){0,16}"*@ 617 title="@Translate("UseValidIBAN")" required /> 618 <br /> 619 <label class="control-label col-sm-4 no-asterisk"> </label><small class="nowrap">@Translate("IBAN_PatternInfo", "Pattern: NL12 BANK 3456 7890 12")</small> 620 </div> 621 622 <div class="form-inline"> 623 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_AuthorizationName">@Translate("AuthorizationName", "Name")</label> 624 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_AuthorizationName" name="Kwpn_Form_PassportDuplicate_AuthorizationName" value="@authorizationName" required /> 625 </div> 626 627 <div class="form-inline"> 628 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_AuthorizationResidence">@Translate("AuthorizationResidence", "Residence")</label> 629 <input type="text" class="form-control hide-hints" id="Kwpn_Form_PassportDuplicate_AuthorizationResidence" name="Kwpn_Form_PassportDuplicate_AuthorizationResidence" value="@authorizationResidence" required /> 630 </div> 631 632 <div class="form-inline"> 633 <label class="control-label col-sm-4" for="Kwpn_Form_PassportDuplicate_BIC">@Translate("BIC", "BIC")</label> 634 <div class="inner-addon right-addon col-sm-4"> 635 <i class="fa fa-question" id="bicinfo" data-toggle="tooltip" title="@Translate("BICTooltip", "Visitors from outside the Netherlands have to enter their Business Identifier Code (BIC)")"></i> 636 <input type="text" 637 class="form-control text-uppercase" 638 id="Kwpn_Form_PassportDuplicate_BIC" 639 name="Kwpn_Form_PassportDuplicate_BIC" 640 value="@bic" 641 pattern="([a-zA-Z]{4}[a-zA-Z]{2}[a-zA-Z0-9]{2}([a-zA-Z0-9]{3})?)" 642 title="@Translate("UseValidBIC")" /> 643 </div> 644 </div> 645 646 <br /> 647 <br /> 648 649 </div> 650 </div> 651 </div> 652 653 654 <button class="hidden" type="submit" id="Kwpn_Form_Submitter">@Translate("Pay")</button> 655 656 657 <div class="row"> 658 <div class="col-xs-12 form-order-overview"> 659 <h2>@Translate("OrderOverview", "Order overview")</h2> 660 <table> 661 <colgroup> 662 <col width="30" /> 663 <col /> 664 </colgroup> 665 <tr class="head"> 666 <th><i class="fa fa-info"></i></th> 667 <th>@Translate("Product", "Product")</th> 668 </tr> 669 <tr> 670 <td> </td> 671 <td id="form-order-overview-product-name"></td> 672 </tr> 673 <tr class="head"> 674 <th><i class="fa fa-eur"></i></th> 675 <th>@Translate("Price", "Price")</th> 676 </tr> 677 <tr> 678 <td> </td> 679 <td><span id="form-order-overview-product-price"></span> (@Translate("VatIncluded", "VAT included"))</td> 680 </tr> 681 <tr class="conditions"> 682 <td><input type="checkbox" class="form-control agreement-checkbox" id="Kwpn_Form_PassportDuplicate_AgreedWithConditions" name="Kwpn_Form_PassportDuplicate_AgreedWithConditions" required /></td> 683 <td><label for="Kwpn_Form_PassportDuplicate_AgreedWithConditions">@FormHelper.GetAgreeWithConditionsText(Kwpn.Models.Enumerations.FormType.PassportDuplicate)</label></td> 684 </tr> 685 <tr class="conditions"> 686 <td><input type="checkbox" class="form-control agreement-checkbox" id="Kwpn_Form_PassportDuplicate_AgreedWithPrivacy" name="Kwpn_Form_PassportDuplicate_AgreedWithPrivacy" required /></td> 687 <td><label for="Kwpn_Form_PassportDuplicate_AgreedWithPrivacy">@Translate("AgreeWithPrivacyStatement", "I agree with the conditions stated in the privacy statement page")</label></td> 688 </tr> 689 <tr> 690 <td colspan="2"><button class="submitBtn" type="button" defaultText="@Translate("Pay").JsEncode()">@Translate("Pay")</button></td> 691 </tr> 692 </table> 693 </div> 694 </div> 695 696 @GetValue("Form.End") 697 </div> 698 </div> 699 </div> 700 701 @SnippetStart("JavascriptsBottom") 702 <script> 703 704 // check if form is valid 705 function FormIsHtml5Valid() { 706 return $("#FormPassportDuplicate .form-control:invalid").length == 0; 707 } 708 709 function ibanIsForeign(iban) { 710 return !iban.toLowerCase().match("^nl"); 711 } 712 713 function makeBicRequired() { 714 $("#Kwpn_Form_PassportDuplicate_BIC").prop("required", true); 715 var asterisk = "<i class=\"fa fa-asterisk\" aria-hidden=\"true\"></i>"; 716 $("#Kwpn_Form_PassportDuplicate_BIC") 717 .closest(".form-inline") 718 .children("label") 719 .not(":has(> i)") 720 .append(asterisk); 721 } 722 723 function makeBicUnRequired() { 724 $("#Kwpn_Form_PassportDuplicate_BIC").prop("required", false); 725 $("#Kwpn_Form_PassportDuplicate_BIC") 726 .closest(".form-inline") 727 .children("label") 728 .find("i") 729 .remove(); 730 } 731 732 function FillHiddenFields() { 733 $("#Kwpn_Form_PassportDuplicate_AnimalCode").val("@animalCode.ToUpper()"); 734 $("#Kwpn_Form_PassportDuplicate_AccessUserID").val("@userId"); 735 $("#Kwpn_Form_PassportDuplicate_SubmitDateTime").val("@currentDateTime"); 736 $("#Kwpn_Form_PassportDuplicate_PaymentMethod").val("@Kwpn.Models.Enumerations.PaymentMethod.Authorization.ToString()"); 737 $("#Kwpn_Form_PassportDuplicate_OrderStatus").val("@Kwpn.Models.Enumerations.FormOrderStatus.FormSubmitted.ToString()"); 738 $("#Kwpn_Form_PassportDuplicate_OrderStatusLastChanged").val("@currentDateTime"); 739 $("#Kwpn_Form_PassportDuplicate_Culture").val("@culture"); 740 } 741 742 function SetKwpn_Form_PassportDuplicate_IsOwner() { 743 var currentValue = $("input[type=radio][name=Kwpn_Form_PassportDuplicate_IsOwner]:checked").val(); 744 var yesContainer = $("#Kwpn_Form_PassportDuplicate_IsOwner_Yes"); 745 var noContainer = $("#Kwpn_Form_PassportDuplicate_IsOwner_No"); 746 if (currentValue == "yes") { 747 yesContainer.removeClass("hidden"); 748 noContainer.addClass("hidden"); 749 } else { 750 yesContainer.addClass("hidden"); 751 noContainer.removeClass("hidden"); 752 } 753 } 754 755 function SetKwpn_Form_PassportDuplicate_IsKeeper() { 756 var currentValue = $("input[type=radio][name=Kwpn_Form_PassportDuplicate_IsKeeper]:checked").val(); 757 var yesContainer = $("#Kwpn_Form_PassportDuplicate_IsKeeper_Yes"); 758 if (currentValue == "yes") { 759 yesContainer.removeClass("hidden"); 760 } else { 761 yesContainer.addClass("hidden"); 762 } 763 } 764 765 function SetKwpn_Form_PassportDuplicate_OrigionalDocumentInfo() { 766 var currentValue = $("input[type=radio][name=Kwpn_Form_PassportDuplicate_OrigionalDocumentInfo]:checked").val(); 767 var yesContainer = $("#Kwpn_Form_PassportDuplicate_OrigionalDocumentInfo_Lost_Yes"); 768 if (currentValue == '@Translate("Lost", "Lost").JsEncode()') { 769 yesContainer.removeClass("hidden"); 770 } else { 771 yesContainer.addClass("hidden"); 772 } 773 } 774 775 function SetKwpn_Form_PassportDuplicate_OrigionalDocumentLostLocationKnown() { 776 var currentValue = $("input[type=radio][name=Kwpn_Form_PassportDuplicate_OrigionalDocumentLostLocationKnown]:checked").val(); 777 var yesContainer = $("#Kwpn_Form_PassportDuplicate_OrigionalDocumentLostLocationKnown_Yes"); 778 if (currentValue == "yes") { 779 yesContainer.removeClass("hidden"); 780 } else { 781 yesContainer.addClass("hidden"); 782 $("#Kwpn_Form_PassportDuplicate_OrigionalDocumentLostLocation").val(""); 783 } 784 } 785 786 function SetKwpn_Form_PassportDuplicate_Reported() { 787 var currentValue = $("input[type=radio][name=Kwpn_Form_PassportDuplicate_Reported]:checked").val(); 788 var yesContainer = $("#Kwpn_Form_PassportDuplicate_Reported_Yes"); 789 if (currentValue == "yes") { 790 yesContainer.removeClass("hidden"); 791 } else { 792 yesContainer.addClass("hidden"); 793 } 794 } 795 796 function SetProductInfo() { 797 @if (isLoggedInAndMember) 798 { 799 <text> 800 801 var passport = $("#Kwpn_Form_PassportDuplicate_DuplicateType_Passport:checked").length > 0; 802 var registration = $("#Kwpn_Form_PassportDuplicate_DuplicateType_Registration:checked").length > 0; 803 804 // prevent no selection 805 if (!passport && !registration) { 806 //Set registration to checked 807 $("#Kwpn_Form_PassportDuplicate_DuplicateType_Registration").prop("checked", true); 808 registration = true; 809 } 810 811 if (passport && registration) { 812 //Fill form 813 $("#Kwpn_Form_PassportDuplicate_ProductName").val("@passportRegistrationNumber"); 814 $("#Kwpn_Form_PassportDuplicate_ProductPrice").val("@passportRegistrationPrice"); 815 //Fill aside 816 $("#passport-duplicate-product-name").html("@passportRegistrationName"); 817 $("#passport-duplicate-product-price").html("@passportRegistrationPriceFormatted"); 818 //Fill overview 819 $("#form-order-overview-product-name").html("@passportRegistrationName"); 820 $("#form-order-overview-product-price").html("@passportRegistrationPriceFormatted"); 821 } else if (passport) { 822 //Fill form 823 $("#Kwpn_Form_PassportDuplicate_ProductName").val("@passportNumber"); 824 $("#Kwpn_Form_PassportDuplicate_ProductPrice").val("@passportPrice"); 825 //Fill aside 826 $("#passport-duplicate-product-name").html("@passportName"); 827 $("#passport-duplicate-product-price").html("@passportPriceFormatted"); 828 //Fill overview 829 $("#form-order-overview-product-name").html("@passportName"); 830 $("#form-order-overview-product-price").html("@passportPriceFormatted"); 831 } else if (registration) { 832 //Fill form 833 $("#Kwpn_Form_PassportDuplicate_ProductName").val("@registrationNumber"); 834 $("#Kwpn_Form_PassportDuplicate_ProductPrice").val("@registrationPrice"); 835 //Fill aside 836 $("#passport-duplicate-product-name").html("@registrationName"); 837 $("#passport-duplicate-product-price").html("@registrationPriceFormatted"); 838 //Fill overview 839 $("#form-order-overview-product-name").html("@registrationName"); 840 $("#form-order-overview-product-price").html("@registrationPriceFormatted"); 841 } 842 </text> 843 } 844 else 845 { 846 //user can only request a passport duplicate 847 <text> 848 $("#Kwpn_Form_PassportDuplicate_DuplicateType_Passport").prop("checked", true); 849 //Fill form 850 $("#Kwpn_Form_PassportDuplicate_ProductName").val("@passportName"); 851 $("#Kwpn_Form_PassportDuplicate_ProductPrice").val("@passportPrice"); 852 //Fill aside 853 $("#passport-duplicate-product-name").html("@passportName"); 854 $("#passport-duplicate-product-price").html("@passportPriceFormatted"); 855 //Fill overview 856 $("#form-order-overview-product-name").html("@passportName"); 857 $("#form-order-overview-product-price").html("@passportPriceFormatted"); 858 </text> 859 } 860 } 861 862 function equisOffline() { 863 $(".modal-body", "#equis-offline") // set alert text 864 .html('@Translate("EquisOffline_Modal_BodyText_PassportDuplicate", "Our back office is currently unavailable.<br />Most of the website is viewable.<br/>For the parts we need to communicate with our back office, we ask you to try again soon.<br />Sorry for the inconvenience.")'); 865 $("#equis-offline").modal("show"); // show alert to user by showing modal (in master) 866 $(".submitBtn").text("@Translate("EquisOffline_FormButtonReplaceText", "Back office offline")"); // change button text 867 $("#Kwpn_Form_Submitter").prop("disabled", true); // disable hidden button 868 $("#FormPassportDuplicate :input").prop("disabled", true); // disable all input/textarea/select/checkbox/radio/button 869 } 870 871 function ShowCountrySpecificFields(value) { 872 873 $('#panel-ubn-code').hide(); 874 875 if (value === undefined || value === '') { 876 value = '@memberCountry'; 877 } 878 879 if (value === 'NL') { 880 $('#panel-ubn-code').show(); 881 } 882 } 883 884 $(document).ready(function () { 885 886 FillHiddenFields(); 887 888 // check if Equis is online 889 equis.IsOnline(equisOffline); 890 891 SetProductInfo(); 892 SetKwpn_Form_PassportDuplicate_IsOwner(); 893 SetKwpn_Form_PassportDuplicate_IsKeeper(); 894 SetKwpn_Form_PassportDuplicate_OrigionalDocumentInfo(); 895 SetKwpn_Form_PassportDuplicate_OrigionalDocumentLostLocationKnown(); 896 SetKwpn_Form_PassportDuplicate_Reported(); 897 898 ShowCountrySpecificFields(); 899 900 // validate iban on load 901 if ("@iban" != "" && ibanIsForeign("@iban")) { 902 makeBicRequired(); 903 } 904 905 $("input[type=radio][name=Kwpn_Form_PassportDuplicate_IsOwner]").change(function () { 906 SetKwpn_Form_PassportDuplicate_IsOwner(); 907 }); 908 909 $("input[type=radio][name=Kwpn_Form_PassportDuplicate_IsKeeper]").change(function () { 910 SetKwpn_Form_PassportDuplicate_IsKeeper(); 911 }); 912 913 $("input[type=radio][name=Kwpn_Form_PassportDuplicate_OrigionalDocumentInfo]").change(function () { 914 SetKwpn_Form_PassportDuplicate_OrigionalDocumentInfo(); 915 }); 916 917 $("#Kwpn_Form_PassportDuplicate_OrigionalDocumentLostReason").focus(function () { 918 $("input[type=radio][name=Kwpn_Form_PassportDuplicate_OrigionalDocumentLostReasonSelection]").filter('[value="other"]').attr('checked', true); 919 }); 920 921 $("input[type=radio][name=Kwpn_Form_PassportDuplicate_OrigionalDocumentLostReasonSelection]").change(function () { 922 var currentValue = $("input[type=radio][name=Kwpn_Form_PassportDuplicate_OrigionalDocumentLostReasonSelection]:checked").val(); 923 if (currentValue != "other") { 924 $("#Kwpn_Form_PassportDuplicate_OrigionalDocumentLostReason").val(""); 925 } 926 }); 927 928 $("input[type=radio][name=Kwpn_Form_PassportDuplicate_OrigionalDocumentLostLocationKnown]").change(function () { 929 SetKwpn_Form_PassportDuplicate_OrigionalDocumentLostLocationKnown(); 930 }); 931 932 $("input[type=radio][name=Kwpn_Form_PassportDuplicate_Reported]").change(function () { 933 SetKwpn_Form_PassportDuplicate_Reported(); 934 }); 935 936 //Place asterisks after required labels 937 $('input,textarea,select') 938 .filter('[required]:visible') 939 .closest(".form-inline") 940 .children("label") 941 .not(".no-asterisk") 942 .append("<i class=\"fa fa-asterisk\" aria-hidden=\"true\"></i>"); 943 944 // force orange borders 945 $(".hide-hints").change(function () { 946 $(this).removeClass("hide-hints"); 947 }); 948 949 // reset product info on change 950 $("input[name=Kwpn_Form_PassportDuplicate_DuplicateType]").change(function () { 951 SetProductInfo(); 952 }); 953 954 // Validate iban 955 $("#Kwpn_Form_PassportDuplicate_IBAN").change(function () { 956 var errorContainer = $("#iban-wrapper"); 957 958 //remove possible error 959 $("#validateIbanError").remove(); 960 errorContainer.removeClass("error"); 961 962 //get value 963 var iban = $(this).val(); 964 965 // validate 966 if (iban !== "") { 967 var validateIbanUrl = "/kwpnwebapi/forms/checkbankaccount/" + iban; 968 $.getJSON(validateIbanUrl).done(function (isValid) { 969 if (!isValid) { 970 //show error and clear field 971 errorContainer.addClass("error"); 972 var error = "<div id=\"validateIbanError\" class=\"errortext col-sm-4 col-sm-offset-4 small uppercase\">@Translate("IbanError", "Not a valid IBAN"): " + iban + "</div>"; 973 errorContainer.append(error); 974 $("#Kwpn_Form_PassportDuplicate_IBAN").val(""); 975 } else { 976 // make bic required if iban is not dutch 977 if (ibanIsForeign(iban)) { 978 makeBicRequired(); 979 } else { 980 makeBicUnRequired(); 981 } 982 } 983 }).fail(function(jqxhr, textStatus, error) { 984 var err = textStatus + ", " + error; 985 console.error("Request Checkbankaccount Failed: " + err); 986 }); 987 } 988 }); 989 990 // only allow alphanumeric characters for bic field 991 $("#Kwpn_Form_PassportDuplicate_BIC").alphanumeric(); 992 993 // submit 994 $("#Kwpn_Form_Submitter").click(function() { 995 $(".hide-hints").removeClass("hide-hints"); 996 if (!FormIsHtml5Valid()) { 997 FormHelper.SubmitButtonReset(".submitBtn"); 998 } 999 }); 1000 1001 // submit button click 1002 $(".submitBtn").off("click").on("click", function () { 1003 FormHelper.SubmitButtonClick(".submitBtn"); 1004 $("#Kwpn_Form_Submitter").click(); 1005 }); 1006 1007 }); 1008 1009 </script> 1010 @SnippetEnd("JavascriptsBottom") 1011 }
Niets uit de KWPN Database mag zonder uitdrukkelijke toestemming van het KWPN worden overgenomen, vermenigvuldigd en/of openbaar gemaakt, of gebruikt voor herberekening of onderzoek op welke wijze dan ook, met uitzondering van hetgeen in de Auteurswet bepaald is met betrekking tot het reprorecht.
Het KWPN aanvaardt geen aansprakelijkheid voor schade van welke aard dan ook, die het gevolg is van handelingen en/of beslissingen gebaseerd op informatie van deze site. De door het KWPN verstrekte informatie en berekende fokwaarden op deze website zijn eigendom van het KWPN. De informatie en de fokwaarden zijn bedoeld als voorlichtingsmateriaal en geadviseerd wordt om deze te gebruiken als één van de hulpmiddelen voor selectiedoeleinden. De onderliggende gegevens zijn verzameld in en/of ten behoeve van de KWPN-populatie en de fokwaarden die hieruit zijn voortgekomen zijn van toepassing op de KWPN-populatie. Het KWPN heeft uiterste zorgvuldigheid betracht bij de totstandkoming van de gepresenteerde informatie. De berekeningen hebben plaatsgevonden op basis van de beschikbare kennis van de populatiegenetica en de regels van uitvoering zijn vastgelegd in de reglementen en/of besluiten van bevoegde organen van het KWPN.