Error executing template "Forms/Form/BleauBorger_formular.cshtml" System.NullReferenceException: Object reference not set to an instance of an object. at CompiledRazorTemplates.Dynamic.RazorEngine_71b9fb8c505c44f8b5bdc2d3b96692aa.Execute() in C:\home\site\wwwroot\Files\Templates\Forms\Form\BleauBorger_formular.cshtml:line 10 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.b__0(TextWriter writer) at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter) at Dynamicweb.Rendering.Template.RenderRazorTemplate()
1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 @using Dynamicweb.Rendering 3 @using Dynamicweb 4 @using Dynamicweb.Modules 5 @using System.Web 6 @using Dynamicweb.Content.Items 7 @using Dynamicweb.Configuration 8 9 @{ 10 string RefUrl = System.Web.HttpContext.Current.Request.UrlReferrer.ToString(); 11 String FormName = @GetString("Form.Name"); 12 } 13 14 <script src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/bootstrapValidator.js"></script> 15 <script src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/countrycode_DA_DK.js"></script> 16 <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/bootstrapValidator.css" /> 17 <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/BleauBorger_Formular.min.css" /> 18 19 20 @GetValue("Form.FormStart") 21 @GetValue("Form.SystemFields") 22 23 @{ 24 string formID = "#" + @GetString("Form.HtmlId"); 25 26 } 27 28 <script> 29 $(document).ready(function() { 30 31 $('@formID') 32 .bootstrapValidator({ 33 excluded: [':disabled', ':hidden', ':not(:visible)'], 34 feedbackIcons: { 35 valid: 'glyphicon glyphicon-ok', 36 invalid: 'glyphicon glyphicon-remove', 37 validating: 'glyphicon glyphicon-refresh' 38 } 39 }) 40 41 .on('status.field.bv', function (e, data) { 42 //enable submit button at all times 43 data.bv.disableSubmitButtons(false); 44 }) 45 46 .on('success.form.bv', function(e) { 47 // Reset the message element when the form is valid 48 $('#errors').html(''); 49 }) 50 51 52 //Links to validation error fields at the bottom 53 54 .on('error.field.bv', function(e, data) { 55 // data.bv --> The BootstrapValidator instance 56 // data.field --> The field name 57 // data.element --> The field element 58 59 60 // Get the messages of field 61 var messages = data.bv.getMessages(data.element); 62 63 // Remove the field messages if they're already available 64 $('#errors').find('li[data-field="' + data.field + '"]').remove(); 65 66 // Loop over the messages 67 for (var i in messages) { 68 // Create new 'li' element to show the message 69 $('<li/>') 70 .attr('data-field', data.field) 71 .wrapInner( 72 $('<a/>') 73 .attr('href', 'javascript: void(0);') 74 .html(messages[i]) 75 .on('click', function(e) { 76 // Focus on the invalid field 77 data.element.focus(); 78 }) 79 ) 80 .appendTo('#errors'); 81 82 //show errors and headline 83 $("#errordiv").attr("style", "display: block !important;") 84 } 85 86 87 // Hide the default message 88 // $field.data('bv.messages') returns the default element containing the messages 89 //data.element 90 //.data('bv.messages') 91 // .find('.help-block[data-bv-for="' + data.field + '"]') 92 // .hide(); 93 }) 94 95 .on('success.field.bv', function(e, data) { 96 // Remove the field messages 97 $('#errors').find('li[data-field="' + data.field + '"]').remove(); 98 if($("#errors li").length == 0){$('#errordiv').hide('');} 99 100 }); 101 102 103 104 }); 105 106 </script> 107 108 @foreach (LoopItem field in GetLoop("Fields")) 109 { 110 string required = field.GetBoolean("Field.Required") ? "required" : ""; 111 string ariareq = field.GetBoolean("Field.Required") ? "true" : "false"; 112 string isRequired = field.GetBoolean("Field.Required") ? "true" : "false"; 113 string ariaDescribedby = ""; 114 115 116 /*---------- Checkboks felt ----------*/ 117 118 if (field.GetString("Field.Type") == "CheckBox") 119 { 120 <div class="form-group has-feedback @required"> 121 <label for="@field.GetValue("Field.SystemName")" id="@field.GetValue("Field.SystemName")group" class="control-label">@field.GetValue("Field.Name")</label> 122 123 @if (!string.IsNullOrEmpty(Convert.ToString(@field.GetValue("Field.Description")))) 124 {<div id="@field.GetValue("Field.SystemName")Desc" class="show">@field.GetValue("Field.Description")</div>} 125 126 <div class="checkbox"> 127 <label for="@field.GetValue("Field.SystemName")" id="@field.GetValue("Field.SystemName")label" class="col-form-label control-label"> 128 <input type="@field.GetValue("Field.Type")" class="form-check-input" name="@field.GetString("Field.SystemName")" id="@field.GetValue("Field.SystemName")" @required 129 data-bv-choice="@isRequired" 130 data-bv-choice-min="1" 131 data-bv-choice-message='Sæt kryds i "@Translate(@field.GetString("Field.Name"))"' 132 data-bv-trigger="click blur keyup" /> 133 @Translate(@field.GetString("Field.Name")) 134 </label> 135 </div> 136 </div> 137 } 138 139 140 /*---------- Checkbox liste felt ----------*/ 141 142 else if (field.GetString("Field.Type") == "CheckBoxList") 143 { 144 145 <div role="group" id="@field.GetValue("Field.SystemName")Group" aria-labelledby="@field.GetValue("Field.SystemName")" class="form-group has-feedback @required"> 146 <label for="@field.GetValue("Field.SystemName")" id="@field.GetValue("Field.SystemName")" class="col-form-label control-label">@field.GetValue("Field.Name")</label> 147 148 @if (!string.IsNullOrEmpty(Convert.ToString(@field.GetValue("Field.Description")))) 149 {<div id="@field.GetValue("Field.SystemName")Desc" class="show">@field.GetValue("Field.Description")</div>} 150 151 @foreach (LoopItem option in field.GetLoop("Options")) 152 { 153 <div class="checkbox"> 154 <label for="@option.GetValue("Option.ID")"> 155 156 @if (option.GetString("Option.Sort") == "1") 157 { 158 <input type="checkbox" class="form-check-input" name="@field.GetString("Field.SystemName")" value="@option.GetValue("Option.Value")" id="@option.GetValue("Option.ID")" 159 data-bv-choice="@isRequired" 160 data-bv-choice-min="1" 161 data-bv-choice-message='Sæt kryds i "@Translate(@field.GetString("Field.Name"))"' 162 data-bv-trigger="click blur keyup" /> 163 } 164 else 165 { 166 <input type="checkbox" name="@field.GetString("Field.SystemName")" value="@option.GetValue("Option.Value")" id="@option.GetValue("Option.ID")" /> 167 } 168 169 @option.GetValue("Option.Text") 170 171 </label> 172 </div> 173 174 } 175 </div> 176 } 177 178 179 /*---------- Radio buttons felt ----------*/ 180 181 else if (field.GetString("Field.Type") == "Radio") 182 { 183 <div role="radiogroup" id="@field.GetValue("Field.SystemName")" aria-labelledby="@field.GetValue("Field.SystemName")label" class="form-group has-feedback @required"> 184 <label for="@field.GetValue("Field.SystemName")" id="@field.GetValue("Field.SystemName")label" class="control-label">@field.GetValue("Field.Name")</label> 185 186 @if (!string.IsNullOrEmpty(Convert.ToString(@field.GetValue("Field.Description")))) 187 {<div id="@field.GetValue("Field.SystemName")Desc" class="show">@field.GetValue("Field.Description")</div>} 188 189 @foreach (LoopItem option in field.GetLoop("Options")) 190 { 191 <div class="radio"> 192 <label for="@field.GetValue("Field.SystemName")@option.GetValue("Option.ID")"> 193 194 @if (option.GetString("Option.Sort") == "1") 195 { 196 <input type="radio" id="@field.GetValue("Field.SystemName")@option.GetValue("Option.ID")" name="@field.GetValue("Field.SystemName")" value="@option.GetValue("Option.Value")" 197 data-bv-choice="@isRequired" 198 data-bv-choice-min="1" 199 data-bv-choice-message='Du har ikke udfyldt "@Translate(@field.GetString("Field.Name"))"' 200 data-bv-trigger="click blur keyup" /> 201 } 202 else 203 { 204 <input type="radio" id="@field.GetValue("Field.SystemName")@option.GetValue("Option.ID")" name="@field.GetValue("Field.SystemName")" value="@option.GetValue("Option.Value")" /> 205 } 206 207 @option.GetValue("Option.Text") 208 209 </label> 210 </div> 211 } 212 </div> 213 } 214 215 /*---------- Color felt ----------*/ 216 217 else if (field.GetString("Field.Type") == "color") 218 { 219 220 <div class="form-group has-feedback @required"> 221 <label for="@field.GetValue("Field.SystemName")" id="@field.GetValue("Field.SystemName")label" class="col-form-label control-label">@Translate(@field.GetString("Field.Name"))</label> 222 223 @if (!string.IsNullOrEmpty(Convert.ToString(@field.GetValue("Field.Description")))) 224 { 225 <div id="@field.GetValue("Field.SystemName")Desc" class="show">@field.GetValue("Field.Description")</div> 226 } 227 228 <textarea class="form-control" name="@field.GetString("Field.SystemName")" id="@field.GetValue("Field.SystemName")" value="@field.GetString("Field.Value")" placeholder="@field.GetString("Field.Placeholder")" data-error="" aria-labelledby="@field.GetValue("Field.SystemName")label" aria-describedby="@field.GetValue("Field.SystemName")Desc" 229 data-bv-hexcolor="@isRequired" 230 data-bv-notempty-message='Udfyld venligst feltet "@Translate(@field.GetString("Field.Name"))"' 231 data-bv-hexcolor-message="Farvekoden er ikke gyldig" 232 data-bv-trigger="blur keyup"></textarea> 233 </div> 234 } 235 236 /*---------- Email felt ----------*/ 237 238 else if (field.GetString("Field.Type") == "Email") 239 { 240 <div class="form-group has-feedback @required"> 241 <label for="@field.GetValue("Field.SystemName")" id="@field.GetValue("Field.SystemName")label" class="col-form-label control-label">@Translate(@field.GetString("Field.Name"))</label> 242 @if (!string.IsNullOrEmpty(Convert.ToString(@field.GetValue("Field.Description")))) 243 {<div id="@field.GetValue("Field.SystemName")Desc">@field.GetValue("Field.Description")</div>} 244 <input type="email" class="form-control" name="@field.GetString("Field.SystemName")" id="@field.GetValue("Field.SystemName")" placeholder="@field.GetString("Field.Placeholder")" aria-labelledby="@field.GetValue("Field.SystemName")label" aria-describedby="@field.GetValue("Field.SystemName")Desc" @required 245 data-bv-emailaddress="@isRequired" 246 data-bv-notempty-message='Udfyld venligst feltet "@Translate(@field.GetString("Field.Name"))"' 247 data-bv-emailaddress-message="E-mailaddressen er ugyldig" 248 data-bv-trigger="blur keyup" /> 249 </div> 250 } 251 252 /*---------- Range felt ----------*/ 253 254 else if (field.GetString("Field.Type") == "Range") 255 { 256 <div class="form-group has-feedback"> 257 <label for="@field.GetValue("Field.SystemName")" id="@field.GetValue("Field.SystemName")label" class="col-form-label control-label">@Translate(@field.GetString("Field.Name"))</label> 258 @if (!string.IsNullOrEmpty(Convert.ToString(@field.GetValue("Field.Description")))) 259 {<div id="@field.GetValue("Field.SystemName")Desc">@field.GetValue("Field.Description") (@Translate("Value", "nuværende værdi"): <span id="demo"></span>)</div>} 260 261 <input type="range" class="slider form-control" name="@field.GetString("Field.SystemName")" id="@field.GetValue("Field.SystemName")" placeholder="@field.GetString("Field.Placeholder")" aria-labelledby="@field.GetValue("Field.SystemName")label" aria-describedby="@field.GetValue("Field.SystemName")Desc" 262 data-bv-between="@isRequired" 263 max="@field.GetValue("Field.MaxLength")" 264 min="0" 265 data-bv-between-message="Værdien skal være mellem 0 og @field.GetValue("Field.MaxLength")" /> 266 267 <script> 268 var slider = document.getElementById("@field.GetValue("Field.SystemName")"); 269 var output = document.getElementById("demo"); 270 output.innerHTML = slider.value; 271 272 slider.oninput = function() { 273 output.innerHTML = this.value; 274 } 275 </script> 276 277 278 </div> 279 } 280 281 /*---------- Notat felt ----------*/ 282 283 else if (field.GetString("Field.Type") == "Textarea") 284 { 285 <div class="form-group has-feedback @required"> 286 <label for="@field.GetValue("Field.SystemName")" id="@field.GetValue("Field.SystemName")label" class="col-form-label control-label">@Translate(@field.GetString("Field.Name"))</label> 287 @if (!string.IsNullOrEmpty(Convert.ToString(@field.GetValue("Field.Description")))) 288 {<div id="@field.GetValue("Field.SystemName")Desc" class="show">@field.GetValue("Field.Description")</div>} 289 <textarea class="form-control" name="@field.GetString("Field.SystemName")" id="@field.GetValue("Field.SystemName")" value="@field.GetString("Field.Value")" placeholder="@field.GetString("Field.Placeholder")" data-error="" aria-labelledby="@field.GetValue("Field.SystemName")label" aria-describedby="@field.GetValue("Field.SystemName")Desc" @required 290 data-bv-notempty-message='Udfyld venligst feltet "@Translate(@field.GetString("Field.Name"))"' 291 data-bv-trigger="blur keyup"></textarea> 292 </div> 293 } 294 295 /*---------- URL felt ----------*/ 296 297 else if (field.GetString("Field.Type") == "Url") 298 { 299 <div class="form-group @required"> 300 <label for="@field.GetValue("Field.SystemName")" id="@field.GetValue("Field.SystemName")label" class="col-form-label control-label">@Translate(@field.GetString("Field.Name"))</label> 301 @if (!string.IsNullOrEmpty(Convert.ToString(@field.GetValue("Field.Description")))) 302 {<div id="@field.GetValue("Field.SystemName")Desc">@field.GetValue("Field.Description")</div>} 303 <input class="form-control" name="@field.GetString("Field.SystemName")" id="@field.GetValue("Field.SystemName")" type="url" value="@field.GetString("Field.Value")" placeholder="@field.GetString("Field.Placeholder")" data-error="" aria-labelledby="@field.GetValue("Field.SystemName")label" aria-describedby="@field.GetValue("Field.SystemName")Desc" @required 304 data-bv-uri="@isRequired" 305 data-bv-notempty-message='Udfyld venligst feltet "@Translate(@field.GetString("Field.Name"))"' 306 data-bv-uri-message="Webadressen er ikke gyldig. Har du husket http:// eller https://?" 307 data-bv-trigger="blur keyup" /> 308 </div> 309 } 310 311 /*---------- Tilføj-filer felt ----------*/ 312 313 else if (field.GetString("Field.Type") == "File") 314 { 315 316 <div class="form-group @required"> 317 <label for="@field.GetValue("Field.SystemName")@field.GetValue("Form.ID")" class="control-label">@Translate(@field.GetString("Field.Name"))</label> 318 @if (!string.IsNullOrEmpty(Convert.ToString(@field.GetValue("Field.Description")))) 319 {<div id="@field.GetValue("Field.SystemName")Desc">@field.GetValue("Field.Description")</div>} 320 <input type="file" class="form-control" name="@field.GetString("Field.SystemName")" id="@field.GetValue("Field.SystemName")@field.GetValue("Form.ID")" multiple @required 321 data-bv-file="@isRequired" 322 data-bv-file-extension="jpeg,jpg,png,pdf,txt,doc,zip,rar,ppt,rtf,m4a,mp3,mp4,m4v,mov,xls,xlsx,html" 323 data-bv-file-message="Filtypen er ikke tilladt. Tilladte filtyper er jpeg, jpg, png, pdf, txt, doc, zip, rar, ppt, rtf, m4a, mp3, mp4, m4v, mov, xls, xlsx og html)" 324 data-bv-notempty-message='Udfyld venligst feltet "@Translate(@field.GetString("Field.Name"))"' 325 data-bv-trigger="blur keyup" /> 326 </div> 327 } 328 329 /*---------- Selectboks ----------*/ 330 331 else if (field.GetString("Field.Type") == "Select") 332 { 333 <div class="form-group @required"> 334 <label for="@field.GetValue("Field.SystemName")" id="@field.GetValue("Field.SystemName")label" class="col-form-label control-label">@Translate(@field.GetString("Field.Name"))</label> 335 @if (!string.IsNullOrEmpty(Convert.ToString(@field.GetValue("Field.Description")))) 336 {<div id="@field.GetValue("Field.SystemName")Desc" class="show">@field.GetValue("Field.Description")</div>} 337 <div>@field.GetString("Field.Control").Replace(" id", " data-bv-trigger = \"blur keyup\" class=\"form-control\" id")</div> 338 </div> 339 } 340 341 /*---------- Password felt ----------*/ 342 343 else if (field.GetString("Field.Type") == "Password") 344 { 345 <div class="form-group has-feedback @required"> 346 <label for="@field.GetValue("Field.SystemName")" id="@field.GetValue("Field.SystemName")label" class="col-form-label control-label">@Translate(@field.GetString("Field.Name"))</label> 347 @if (!string.IsNullOrEmpty(Convert.ToString(@field.GetValue("Field.Description")))) 348 {<div id="@field.GetValue("Field.SystemName")Desc">@field.GetValue("Field.Description")</div>} 349 <input type="@field.GetValue("Field.Type")" class="form-control" name="@field.GetString("Field.SystemName")" id="@field.GetValue("Field.SystemName")" value="@field.GetString("Field.Value")" placeholder="@field.GetString("Field.Placeholder")" data-error="" aria-labelledby="@field.GetValue("Field.SystemName")label" aria-describedby="@field.GetValue("Field.SystemName")Desc" @required 350 data-bv-notempty-message='Udfyld venligst feltet "@Translate(@field.GetString("Field.Name"))"' 351 data-bv-trigger="blur keyup" /> 352 </div> 353 } 354 355 /*---------- Telefon felt ----------*/ 356 357 else if (field.GetString("Field.Type") == "Tel") 358 { 359 <div class="form-group has-feedback @required"> 360 <label for="@field.GetValue("Field.SystemName")" id="@field.GetValue("Field.SystemName")label" class="col-form-label control-label">@Translate(@field.GetString("Field.Name"))</label> 361 @if (!string.IsNullOrEmpty(Convert.ToString(@field.GetValue("Field.Description")))) 362 {<div id="@field.GetValue("Field.SystemName")Desc">@field.GetValue("Field.Description")</div>} 363 <input type="@field.GetValue("Field.Type")" class="form-control" name="@field.GetString("Field.SystemName")" id="@field.GetValue("Field.SystemName")" value="@field.GetString("Field.Value")" placeholder="@field.GetString("Field.Placeholder")" data-error="" aria-labelledby="@field.GetValue("Field.SystemName")label" aria-describedby="@field.GetValue("Field.SystemName")Desc" @required 364 data-bv-phone="@isRequired" 365 data-bv-phone-country="DK" 366 data-bv-notempty-message='Udfyld venligst feltet "@Translate(@field.GetString("Field.Name"))"' 367 data-bv-trigger="blur keyup" /> 368 </div> 369 } 370 371 /*---------- Textinput ----------*/ 372 373 else if (field.GetString("Field.Type") == "TextInput") 374 { 375 <div class="form-group has-feedback @required"> 376 <label for="@field.GetValue("Field.SystemName")" id="@field.GetValue("Field.SystemName")label" class="col-form-label control-label">@Translate(@field.GetString("Field.Name"))</label> 377 @if (!string.IsNullOrEmpty(Convert.ToString(@field.GetValue("Field.Description")))) 378 {<div id="@field.GetValue("Field.SystemName")Desc">@field.GetValue("Field.Description")</div>} 379 <input type="@field.GetValue("Field.Type")" class="form-control" name="@field.GetString("Field.SystemName")" id="@field.GetValue("Field.SystemName")" value="@field.GetString("Field.Value")" placeholder="@field.GetString("Field.Placeholder")" data-error="" aria-labelledby="@field.GetValue("Field.SystemName")label" aria-describedby="@field.GetValue("Field.SystemName")Desc" @required 380 data-bv-notempty-message='Udfyld venligst feltet "@Translate(@field.GetString("Field.Name"))"' 381 data-bv-trigger="blur keyup" /> 382 </div> 383 } 384 385 /*---------- Text ----------*/ 386 387 else if (field.GetString("Field.Type") == "Text") 388 { 389 <div class="form-group has-feedback"> 390 <div id="@field.GetValue("Field.SystemName")Desc">@field.GetValue("Field.Control")</div> 391 </div> 392 } 393 394 /*---------- statisk billed felt ----------*/ 395 396 else if (field.GetString("Field.Type") == "Image") 397 { 398 <div class="form-group @required"> 399 <label for="@field.GetValue("Field.SystemName")" class="control-label">@field.GetValue("Field.Name")</label> 400 @field.GetString("Field.Control").Replace(" id", " alt=\"\" id") 401 <div>@field.GetString("Field.Description")</div> 402 </div> 403 } 404 405 /*---------- Skjult felt ----------*/ 406 407 else if (field.GetString("Field.Type") == "Hidden") 408 { 409 <div class="form-group has-feedback"> 410 @if(FormName == "wcagfeedback"){ 411 412 <input type="hidden" value="@RefUrl" id="skjult" name="skjult"> 413 }else{ 414 415 @field.GetString("Field.Control").Replace(" id", " value=\"\" id") 416 417 } 418 </div> 419 } 420 421 422 /*---------- default felt ----------*/ 423 424 else if (field.GetString("Field.Type") != "Reset" && field.GetString("Field.Type") != "Submit") 425 { 426 <div class="form-group has-feedback @required"> 427 <label for="@field.GetValue("Field.SystemName")" id="@field.GetValue("Field.SystemName")label" class="col-form-label control-label">@Translate(@field.GetString("Field.Name"))</label> 428 @if (!string.IsNullOrEmpty(Convert.ToString(@field.GetValue("Field.Description")))) 429 { 430 ariaDescribedby = "aria-describedby='" + @field.GetValue("Field.SystemName") + "Desc'"; 431 <div id="@field.GetValue("Field.SystemName")Desc">@field.GetValue("Field.Description")</div> 432 } 433 <input type="@field.GetValue("Field.Type")" class="form-control" name="@field.GetString("Field.SystemName")" id="@field.GetValue("Field.SystemName")" value="@field.GetString("Field.Value")" placeholder="@field.GetString("Field.Placeholder")" data-error="" aria-labelledby="@field.GetValue("Field.SystemName")label" @ariaDescribedby @required 434 data-bv-notempty-message='Udfyld venligst feltet "@Translate(@field.GetString("Field.Name"))"' 435 data-bv-trigger="blur keyup" /> 436 </div> 437 } 438 } 439 440 <!-- Show the messages in #errors --> 441 <div class="form-group hide" id="errordiv" role="alert" aria-atomic="true"> 442 <p><strong>Der er følgende fejl i formularen:</strong></p> 443 <div class="col-sm-12"> 444 <ul id="errors"></ul> 445 </div> 446 </div> 447 448 @foreach (LoopItem field in GetLoop("Fields")) 449 { 450 string required = field.GetBoolean("Field.Required") ? "required" : ""; 451 string ariareq = field.GetBoolean("Field.Required") ? "true" : "false"; 452 string isRequired = field.GetBoolean("Field.Required") ? "true" : "false"; 453 454 /*---------- Reset/annuller knap ----------*/ 455 456 if (field.GetString("Field.Type") == "Reset") 457 { 458 <div class="form-group @required"> 459 @field.GetString("Field.Control").Replace(" id", " class=\"btn btn-danger col-xs-4 col-sm-3 pull-right \" id") 460 </div> 461 } 462 463 /*---------- Send/submit knap ----------*/ 464 465 else if (field.GetString("Field.Type") == "Submit") 466 { 467 <div class="form-group @required"> 468 @field.GetString("Field.Control").Replace(" id", " class=\"btn btn-primary col-xs-5 col-sm-3 pull-left \" id") 469 </div> 470 } 471 } 472 473 @GetValue("Form.FormEnd") 474 <p> </p> 475