Skip to content

Commit

Permalink
send tip from github username, not just 'full name'
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed May 28, 2018
1 parent d3a441d commit f340d17
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/dashboard/templates/yge/send2.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ <h1>{% trans "Send Tip." %}</h1>
{% trans "To Github Username" %}:
<input type="text" placeholder="@username" id="username" value="" style="width: 400px; margin-left: auto; margin-right: auto;">
</div>
<div>
{% trans "From Github Username" %} (<a href="{% url 'social:begin' 'github' %}?next=/tip">{% trans "Login" %}</a>)
<input type="text" placeholder="@username" id="fromName" value="{% if user.is_authenticated %}{{ user }}{% endif %}" style="width: 400px; margin-left: auto; margin-right: auto; background-color: #eee;" disabled="disabled" >
</div>

<div id="advanced_toggle">
<a onClick="advancedToggle()" >{% trans "Advanced" %} >></a>
</div>
Expand All @@ -64,10 +69,6 @@ <h1>{% trans "Send Tip." %}</h1>
{% trans "To Email address" %} ({% trans "optional" %}):
<input type="text" placeholder="[email protected]" id="email" value="" style="width: 400px; margin-left: auto; margin-right: auto;">
</div>
<div>
{% trans "From Name" %} ({% trans "optional" %}):
<input type="text" placeholder="Bobby Tables" id="fromName" value="{% if from_handle %}{{ from_handle }}{% endif %}" style="width: 400px; margin-left: auto; margin-right: auto;">
</div>
<div>
{% trans "From Email" %} ({% trans "optional" %}):
<input type="text" placeholder="[email protected]" id="fromEmail" value="{% if from_email %}{{ from_email }}{% endif %}" style="width: 400px; margin-left: auto; margin-right: auto;">
Expand Down

0 comments on commit f340d17

Please sign in to comment.