Created
June 1, 2011 20:33
-
-
Save nberardi/1003247 to your computer and use it in GitHub Desktop.
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
@TextSearchField("test", "test", true) | |
@helper TextSearchField(string name, string label, bool autocomplete) | |
{ | |
<div class="searchCrit"> | |
<label for="@name">@label</label> | |
@if(autocomplete) { | |
<input type="text" name="@name" class="autocompleteField" /> | |
} | |
else { | |
<input type="text" name="@name" /> | |
} | |
</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
<div class="searchCrit"> | |
<label for="test">test</label> | |
<input type="text" name="test" class="autocompleteField" /> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you remove the "@" in front of the "if" or remove the closing characters on the both cause it to fail.