This file contains hidden or 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 my_awesome_function = function() { | |
| return true; | |
| }; | |
| my_awesome_function(); |
This file contains hidden or 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
| ... | |
| <%= Html.Encode(Person.HomeAddress) %> | |
| ... | |
| <%= Html.Encode(Person.PersonalEmail) %> | |
| ... |
This file contains hidden or 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="group-legend"><%=ViewData["Title"]%></div> | |
| <p> | |
| <label for="HomeAddress">Home Address:</label> | |
| <textarea name="Person.HomeAddress" id="Person.HomeAddress"> | |
| <%= Person.HomeAddress %> | |
| </textarea> | |
| </p> | |
| <p> | |
| <label for="PersonalEmail">Personal Email:</label> | |
| <textarea id="PersonalEmail" name="PersonalEmail"> |
This file contains hidden or 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
| //view | |
| ... | |
| <%=Model.AltenateEmail%> | |
| ... | |
| //controller | |
| publicPerson = personAdapter.adapt(privateModel); |
This file contains hidden or 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
| //controller | |
| if (!isCurrentUser && !isAdminUser) { | |
| Model.AltenateEmail = "*******"; | |
| } |
This file contains hidden or 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
| //view | |
| ... | |
| <%=Model.AltenateEmail%> | |
| ... |
This file contains hidden or 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
| //controller | |
| personalEmailIsVisible = false; | |
| if (isCurrentUser || isAdminUser) { | |
| personalEmailIsVisible = true; | |
| } |
This file contains hidden or 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
| //view | |
| <%if (personalEmailIsVisible) {%> | |
| ... | |
| <%=Model.AltenateEmail%> | |
| ... | |
| <%} %> |
This file contains hidden or 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
| <%if (isCurrentUser || isAdminUser) {%> | |
| ... | |
| <%=Model.AltenateEmail%> | |
| ... | |
| <%} %> |
This file contains hidden or 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="group-legend"><%=ViewData["Title"]%></div> | |
| <p> | |
| <label for="StreetAddress">Address:</label> | |
| <textarea name="HomeAddress.StreetAddress" id="HomeAddress.StreetAddress" cols="20" rows="3" <%=!isEditable ? "readonly='readonly'":"" %>> | |
| <%= Model.StreetAddress %> | |
| </textarea> | |
| </p> | |
| <%if (isCurrentUser || isAdminUser) {%> | |
| <p> |