SHARE
TWEET

Untitled

a guest Jun 21st, 2015 261 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @using System.Web.Mvc.Html
  2. @model MyProject.Integration.Wfm.TermsAgreementField
  3.  
  4. @if (!Model.Visible)
  5. {
  6.     return;
  7. }
  8. <div class="@Model.CssClass checkbox-border">
  9.    
  10.     <div class="@Model.CssClass field-panel">
  11.         <span class="checkbox-content">
  12.             @Html.HiddenFor(x => Model.FieldId)
  13.             @{
  14.                 var isChecked = (bool)Model.Value;
  15.             }
  16.             @if (Model.IsRequired)
  17.             {
  18.                 @Html.CheckBox("Value", isChecked, new {required="required"})
  19.             }
  20.             else
  21.             {
  22.                 @Html.CheckBox("Value", isChecked)
  23.             }
  24.                        
  25.             @if (!String.IsNullOrEmpty(Model.TermsLabel))
  26.             {
  27.                 <span class="@Model.CssClass field-info">@Html.DisplayFor(x => Model.TermsLabel)</span>
  28.             }
  29.         </span>
  30.     </div>
  31.  
  32.     @if (!String.IsNullOrEmpty(Model.Information))
  33.     {
  34.         <span class="@Model.CssClass checkbox-info">@Html.DisplayFor(x => Model.Information)</span>
  35.     }
  36.  
  37.     <div>
  38.         @Html.ValidationMessageFor(field => field.Value, null, new { @class = Model.CssClass + " field-error" })
  39.     </div>
  40.  
  41.     @if (Model.IsRequired)
  42.     {
  43.         <span class="@Model.CssClass field-required">*</span>
  44.     }
  45. </div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top