Created
May 16, 2014 03:47
-
-
Save Wuvist/7f22c2f3e2348e7b8479 to your computer and use it in GitHub Desktop.
gorazor panic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{ | |
var w *gorazor.Widget | |
} | |
@if w.ErrorMsg != "" { | |
<div class="form-group has-error"> | |
<div class="alert alert-danger">@w.ErrorMsg</div> | |
} else { | |
<div class="form-group"> | |
} | |
<div class="form-group"> | |
<label for="@w.Name">@w.Label</label> | |
<input type="text" name="@w.Name" class="form-control" id="@w.Name" placeholder="@w.PlaceHolder" value="@w.Value"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{ | |
var w *gorazor.Widget | |
} | |
@if w.ErrorMsg != "" { | |
<div class="form-group has-error"> | |
<div class="alert alert-danger">@w.ErrorMsg</div> | |
} else { | |
<div class="form-group"> | |
} | |
<label for="@w.Name">@w.Label</label> | |
<input type="text" name="@w.Name" class="form-control" id="@w.Name" placeholder="@w.PlaceHolder" value="@w.Value"> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment