Rijpaard (springen en dressuur)














Tuigpaard





Gelders paard


Jong KWPN



Toepassen

 

Menu

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

Lidmaatschap KWPN

  • Iedere maand het KWPN Magazine - In de Strengen
  • Onbeperkt toegang tot KWPN.tv
  • Gratis advertenties plaatsen op KWPN Horses for Sale
Word nu lid
€22,- per jaar

JongKWPN lidmaatschap

  • Ben jij tussen de 16 en 30 jaar?
  • Ben jij geïnteresseerd in fokkerij en sport? 

Dan is JongKWPN vast en zeker iets voor jou! JongKWPN biedt een gevarieerd programma. 

Word nu lid

Official Partners


Het KWPN maakt gebruik van cookies

Wij vragen uw akkoord voor het gebruik van cookies op onze website. Meer informatie is beschikbaar in ons cookiebeleid.

Cookiebeleid