| @@ -35,8 +35,8 @@ | |||||
| {{if .DisableRegistration}} | {{if .DisableRegistration}} | ||||
| <p>{{.i18n.Tr "auth.disable_register_prompt"}}</p> | <p>{{.i18n.Tr "auth.disable_register_prompt"}}</p> | ||||
| {{else}} | {{else}} | ||||
| <div class="field invitation_tips" style="font-weight:400;font-size:14px;color:rgba(250,140,22,1);display:none;"> | |||||
| <span>{{.i18n.Tr "your_friend"}} <span class="__invitation_code__">Itx003</span> {{.i18n.Tr "invite_you_to_join_the_OpenI_AI_Collaboration_Platform_and_enjoy_abundant_free_computing_resources"}}</span> | |||||
| <div class="field invitation_tips" style="font-weight:400;font-size:14px;color:rgba(250,140,22,1);{{if not .invitationCode}}display:none;{{end}}"> | |||||
| <span>{{.i18n.Tr "your_friend"}} <span class="__invitation_code__">{{.invitationCode}}</span> {{.i18n.Tr "invite_you_to_join_the_OpenI_AI_Collaboration_Platform_and_enjoy_abundant_free_computing_resources"}}</span> | |||||
| </div> | </div> | ||||
| <div class="field {{if and (.Err_UserName) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister))}}error{{end}}"> | <div class="field {{if and (.Err_UserName) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister))}}error{{end}}"> | ||||
| <input id="user_name" name="user_name" value="{{.user_name}}" placeholder="{{.i18n.Tr "username"}}" autofocus required> | <input id="user_name" name="user_name" value="{{.user_name}}" placeholder="{{.i18n.Tr "username"}}" autofocus required> | ||||
| @@ -80,7 +80,7 @@ | |||||
| <div style="display:flex;align-items:center;"> | <div style="display:flex;align-items:center;"> | ||||
| <span>{{.i18n.Tr "recommender"}}</span> | <span>{{.i18n.Tr "recommender"}}</span> | ||||
| </div> | </div> | ||||
| <input style="flex:1;margin-left:12px;" id="invitation_code" name="invitation_code" value="" autocomplete="off" /> | |||||
| <input style="flex:1;margin-left:12px;" id="invitation_code" name="invitation_code" value="{{.invitationCode}}" {{if .invitationCode}}readonly="true"{{end}} autocomplete="off" /> | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||