Last active
August 29, 2015 14:03
-
-
Save DeskWOW/410081c50eabe5b1a3ab to your computer and use it in GitHub Desktop.
When rendering forms for logged-in private portal users, instead of hiding name and email, display it but pre-fill it.
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 current_user == nil or current_user.is_guest %} | |
<div class="input"><span class="form_label">{{system.snippets.your_name}}:</span> | |
{{ interaction_name }} | |
</div> | |
<div class="input"> | |
<span class="form_label">{{system.snippets.your_email}}: <span class="form_label_required">({{system.snippets.optional}})</span></span> | |
{{ interaction_email }} | |
</div> | |
{% endif %} |
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="input"> | |
<span class="form_label">Your name:</span> | |
<input class="default l" id="interaction_name" maxlength="100" name="interaction[name]" size="100" type="text" value="{{current_user.customer.name}}"> | |
</div> | |
<div class="input"> | |
<span class="form_label">Your email address: <span class="form_label_required">(Optional)</span></span> | |
<input class="default l" id="interaction_email" maxlength="100" name="interaction[email]" size="100" type="text" value="{{current_user.customer.email}}"> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment