Telefon: 2210 2040

Cherwell Demo

Felter markeret med  er påkrævet

Error compiling template "Forms/Form/DefaultForm.cshtml"
Line 2: The type or namespace name 'Recaptcha' could not be found (are you missing a using directive or an assembly reference?)
Line 3: The type or namespace name 'Recaptcha' could not be found (are you missing a using directive or an assembly reference?)

1 @using System.Web.Mvc; 2 @using Recaptcha.Web; 3 @using Recaptcha.Web.Mvc; 4 @{ 5 string formCssClass = GetString("Form.CssClass"); 6 string formSystemFields = GetString("Form.SystemFields"); 7 bool formLabelBold = GetBoolean("Form.LabelBold"); 8 bool formLabelOverField = GetBoolean("Form.LabelOverField"); 9 string formId = GetString("Form.HtmlId"); 10 string formOnSubmit = GetString("Form.OnSubmit"); 11 string formSpamScript = GetString("Form.SpamScript"); 12 string formAction = GetString("Form.Action"); 13 int formColumnShiftFormFieldID = GetInteger("Form.ColumnShiftFormFieldID"); 14 string formLabelRequired = GetString("Form.LabelRequired"); 15 16 int formMaxSubmits = GetInteger("Form.MaxSubmits"); 17 int formSubmitCount = GetInteger("Form.SubmitCount"); 18 } 19 20 @{ 21 if (formMaxSubmits > 0 && formSubmitCount >= formMaxSubmits) 22 { 23 @GetString("Form.MaxSubmitsReachedText") 24 } 25 else 26 { 27 <style type="text/css"> 28 .formtable td { 29 padding: 3px; 30 } 31 32 .formtable .columnCell { 33 vertical-align: top; 34 } 35 36 .formtable .labelCell { 37 vertical-align: top; 38 padding-right: 10px; 39 } 40 41 42 .formtable .descriptionCell { 43 font-size: 0.8em; 44 opacity: 0.8; 45 padding: 0px; 46 padding-left: 3px; 47 padding-bottom: 5px; 48 max-height: 0.8em; 49 line-height: 1.0em; 50 } 51 52 .formtable input[type=text], 53 .formtable input[type=password], 54 .formtable textarea { 55 min-width: 250px; 56 } 57 @if (formLabelBold) 58 { 59 <text>.formtable .labelCell label {font-weight:bold;}</text> 60 } 61 </style> 62 63 <form method="post" action="@formAction" enctype="multipart/form-data" class="@formCssClass" id="CaptchaForm @formId" onsubmit="@formOnSubmit"> 64 @formSystemFields 65 <table class="formtable"> 66 @if (formColumnShiftFormFieldID > 0) 67 { 68 @GetStartTable(); 69 } 70 71 @foreach (LoopItem field in GetLoop("Fields")) 72 { 73 int fieldId = field.GetInteger("Field.ID"); 74 string fieldHtmlId = field.GetString("Field.HtmlId"); 75 string fieldName = field.GetString("Field.Name"); 76 string fieldControl = field.GetString("Field.Control"); 77 string fieldDescription = field.GetString("Field.Description"); 78 bool fieldIsButton = field.GetBoolean("Field.IsButton"); 79 bool fieldIsOther = field.GetBoolean("Field.IsOther"); 80 bool fieldRequired = field.GetBoolean("Field.Required"); 81 82 string requiredImage = string.Empty; 83 if (fieldRequired && !String.IsNullOrEmpty(formLabelRequired)) 84 { 85 requiredImage = String.Format("<img src=\"/Files/images/{0}\">", formLabelRequired); 86 } 87 88 if (formLabelOverField) 89 { 90 if (!fieldIsButton && !fieldIsOther) 91 { 92 <tr class="labelRow"> 93 <td class="labelCell"> 94 <label for="@fieldHtmlId">@fieldName @requiredImage</label> 95 </td> 96 </tr> 97 } 98 <tr class="fieldRow"> 99 <td>@fieldControl</td> 100 </tr> 101 <tr class="descriptionRow"> 102 <td class="descriptionCell"><small>@fieldDescription</small></td> 103 </tr> 104 } 105 else 106 { 107 <tr class="fieldRow"> 108 <td class="labelCell"> 109 @if (!fieldIsButton && !fieldIsOther) 110 { 111 <label for="@fieldHtmlId">@fieldName @requiredImage</label> 112 } 113 </td> 114 <td>@fieldControl</td> 115 </tr> 116 <tr class="descriptionRow"> 117 <td class="descriptionCell"></td> 118 <td class="descriptionCell"><small>@fieldDescription</small></td> 119 </tr> 120 } 121 if (formColumnShiftFormFieldID == fieldId) 122 { 123 @GetShiftColumn(); 124 } 125 } 126 127 @if (formColumnShiftFormFieldID > 0) 128 { 129 @GetEndTable(); 130 } 131 </table> 132 </form> 133 } 134 } 135 136 @functions { 137 private string GetStartTable() 138 { 139 return "<tr><td class=\"columnCell\"><table class=\"firstColumn\">"; 140 } 141 142 private string GetShiftColumn() 143 { 144 return "</table></td><td class=\"columnCell\"><table class=\"secondColumn\">"; 145 } 146 147 private string GetEndTable() 148 { 149 return "</table></td></tr>"; 150 } 151 }
/Files/Images/Clever-Choice-Logo-White-on-transparant-300x50.png

© 2018 Clever Choice

Adresse: 
Industrivej 44 C
4000 Roskilde

Bank: Nykredit
CVR: 36055944

Kontakt:

+45 2210 2040

kontakt@cleverchoice.dk

Site Map:

Site Map

Find os her: