mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Add phone prefix to UI.
This commit is contained in:
@ -273,7 +273,7 @@ class UserEditPage extends React.Component {
|
||||
{i18next.t("general:Phone")}:
|
||||
</Col>
|
||||
<Col span={22} >
|
||||
<Input value={this.state.user.phone} disabled/>
|
||||
<Input value={this.state.user.phone} addonBefore={`+${this.state.application?.organizationObj.phonePrefix}`} disabled />
|
||||
{ this.state.user.id === this.props.account.id ? (<ResetModal buttonText={i18next.t("user:Reset Phone")} destType={"phone"} coolDownTime={60}/>) : null}
|
||||
</Col>
|
||||
</Row>
|
||||
|
@ -272,6 +272,7 @@ class SignupPage extends React.Component {
|
||||
style={{
|
||||
width: '100%',
|
||||
}}
|
||||
addonBefore={`+${this.state.application?.organizationObj.phonePrefix}`}
|
||||
/>
|
||||
</Form.Item>
|
||||
<Form.Item name="agreement" valuePropName="checked" {...tailFormItemLayout}>
|
||||
|
@ -119,18 +119,18 @@
|
||||
"Password": "密码",
|
||||
"Cancel": "取消",
|
||||
"input password": "输入密码",
|
||||
"Reset Email": "重设邮箱",
|
||||
"Reset Phone": "重设电话",
|
||||
"Reset Email": "重置邮箱",
|
||||
"Reset Phone": "重置手机号",
|
||||
"Send Code": "发送验证码",
|
||||
"Empty email": "邮箱为空",
|
||||
"Empty phone": "电话为空",
|
||||
"Empty Code": "验证码为空",
|
||||
"phone reset": "电话已设置",
|
||||
"phone reset": "手机号已设置",
|
||||
"email reset": "邮箱已设置",
|
||||
"Code Sent": "验证码已发送",
|
||||
"Input your email": "请输入邮箱",
|
||||
"Input your phone number": "输入电话号码",
|
||||
"New phone": "新的电话号",
|
||||
"Input your phone number": "输入手机号",
|
||||
"New phone": "新的手机号",
|
||||
"New email": "新的邮箱",
|
||||
"Code You Received": "你收到的验证码",
|
||||
"Enter your code": "输入你的验证码",
|
||||
|
Reference in New Issue
Block a user