1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 21:30:39 +00:00

Merge branch '7.0'

This commit is contained in:
plt
2019-06-06 14:53:19 +08:00
8 changed files with 15 additions and 27 deletions

View File

@@ -14,14 +14,12 @@ class UserBasicInfoForm extends React.Component {
const { const {
contact_email, contact_email,
login_id, login_id,
name, name
telephone
} = this.props.userInfo; } = this.props.userInfo;
this.state = { this.state = {
contactEmail: contact_email, contactEmail: contact_email,
loginID: login_id, loginID: login_id,
name: name, name: name
telephone: telephone
}; };
} }
@@ -37,17 +35,10 @@ class UserBasicInfoForm extends React.Component {
}); });
} }
handleTelephoneInputChange = (e) => {
this.setState({
telephone: e.target.value
});
}
handleSubmit = (e) => { handleSubmit = (e) => {
e.preventDefault(); e.preventDefault();
let data = { let data = {
name: this.state.name, name: this.state.name
telephone: this.state.telephone
}; };
if (enableUserSetContactEmail) { if (enableUserSetContactEmail) {
data.contact_email = this.state.contactEmail; data.contact_email = this.state.contactEmail;
@@ -59,8 +50,7 @@ class UserBasicInfoForm extends React.Component {
const { const {
contactEmail, contactEmail,
loginID, loginID,
name, name
telephone
} = this.state; } = this.state;
return ( return (
@@ -93,14 +83,6 @@ class UserBasicInfoForm extends React.Component {
</div> </div>
)} )}
{(telephone != undefined) && (
<div className="form-group row">
<label className="col-sm-1 col-form-label" htmlFor="telephone">{gettext('Telephone:')}</label>
<div className="col-sm-5">
<input className="form-control" id="telephone" type="text" name="telephone" value={telephone} disabled={!enableUpdateUserInfo} readOnly={!enableUpdateUserInfo} onChange={this.handleTelephoneInputChange} />
</div>
</div>
)}
<button type="submit" className="btn btn-outline-primary offset-sm-1" disabled={!enableUpdateUserInfo}>{gettext('Submit')}</button> <button type="submit" className="btn btn-outline-primary offset-sm-1" disabled={!enableUpdateUserInfo}>{gettext('Submit')}</button>
</form> </form>
); );

View File

@@ -177,7 +177,7 @@ class SidePanel extends React.Component {
{isDefaultAdmin && enableWorkWeixinDepartments && {isDefaultAdmin && enableWorkWeixinDepartments &&
<li className="nav-item"> <li className="nav-item">
<Link className={`nav-link ellipsis ${this.getActiveClass('departments')}`} to={siteRoot + 'sys/work-weixin/departments/'}> <Link className={`nav-link ellipsis ${this.getActiveClass('departments')}`} to={siteRoot + 'sys/work-weixin/departments/'}>
<span className="sf2-icon-msgs" aria-hidden="true"></span> <span className="sf3-font-enterprise-wechat sf3-font" aria-hidden="true"></span>
<span className="nav-text">{'企业微信集成'}</span> <span className="nav-text">{'企业微信集成'}</span>
</Link> </Link>
</li> </li>

View File

@@ -1015,7 +1015,8 @@ textarea:-moz-placeholder {/* for FF */
background-color:#feefb8; background-color:#feefb8;
text-decoration:none; text-decoration:none;
} }
.side-tabnav-tabs .tab [class^="sf2-icon-"] { .side-tabnav-tabs .tab [class^="sf2-icon-"],
.side-tabnav-tabs .tab [class^="sf3-font-"] {
display:inline-block; display:inline-block;
width:42px; width:42px;
margin-right:5px; margin-right:5px;
@@ -1047,6 +1048,7 @@ textarea:-moz-placeholder {/* for FF */
background-color:#feac74; background-color:#feac74;
} }
.side-tabnav-tabs .tab-cur [class^="sf2-icon-"], .side-tabnav-tabs .tab-cur [class^="sf2-icon-"],
.side-tabnav-tabs .tab-cur [class^="sf3-font-"],
.side-tabnav-tabs .tab-cur a, .side-tabnav-tabs .tab-cur a,
#group-nav .tab-cur .sharp, #group-nav .tab-cur .sharp,
#share-admin-nav .tab-cur .sharp { #share-admin-nav .tab-cur .sharp {

View File

@@ -587,11 +587,13 @@ ul,ol,li {
} }
.side-nav-con .active [class^="sf2-icon-"], .side-nav-con .active [class^="sf2-icon-"],
.side-nav-con .active [class^="sf3-font-"],
.side-nav-con .active .sharp { .side-nav-con .active .sharp {
color: #fff; color: #fff;
} }
.side-nav-con [class^="sf2-icon-"] { .side-nav-con [class^="sf2-icon-"],
.side-nav-con [class^="sf3-font-"] {
display:inline-block; display:inline-block;
width:2.625rem; width:2.625rem;
margin-right:0.325rem; margin-right:0.325rem;

View File

@@ -17,6 +17,7 @@
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/jstree_default_theme/style.min.css" /> <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/jstree_default_theme/style.min.css" />
<link rel="stylesheet" type="text/css" href="{% static "css/magnific-popup.css" %}" /> <link rel="stylesheet" type="text/css" href="{% static "css/magnific-popup.css" %}" />
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seahub.css?t=1398068110" /> <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seahub.css?t=1398068110" />
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/sf_font3/iconfont.css" />
{% block extra_style %}{% endblock %} {% block extra_style %}{% endblock %}
{% if branding_css != '' %}<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}{{ branding_css }}" />{% endif %} {% if branding_css != '' %}<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}{{ branding_css }}" />{% endif %}
{% if enable_branding_css %}<link rel="stylesheet" type="text/css" href="{% url 'custom_css' %}" />{% endif %} {% if enable_branding_css %}<link rel="stylesheet" type="text/css" href="{% url 'custom_css' %}" />{% endif %}

View File

@@ -115,7 +115,7 @@
{% if is_default_admin and enable_work_weixin_departments %} {% if is_default_admin and enable_work_weixin_departments %}
<li class="tab"> <li class="tab">
<a href="{{ SITE_ROOT }}sys/work-weixin/departments/"><span class="sf2-icon-organization"></span></a> <a href="{{ SITE_ROOT }}sys/work-weixin/departments/"><span class="sf3-font-enterprise-wechat sf3-font"></span></a>
</li> </li>
{% endif %} {% endif %}

View File

@@ -126,7 +126,7 @@
{% if is_default_admin and enable_work_weixin_departments %} {% if is_default_admin and enable_work_weixin_departments %}
<li class="tab"> <li class="tab">
<a href="{{ SITE_ROOT }}sys/work-weixin/departments/"><span class="sf2-icon-organization"></span>企业微信集成</a> <a href="{{ SITE_ROOT }}sys/work-weixin/departments/"><span class="sf3-font-enterprise-wechat sf3-font"></span>企业微信集成</a>
</li> </li>
{% endif %} {% endif %}

View File

@@ -16,6 +16,7 @@
<link rel="stylesheet" type="text/css" href="{% static "css/select2-3.5.2.css" %}"/> <link rel="stylesheet" type="text/css" href="{% static "css/select2-3.5.2.css" %}"/>
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seahub.css?t=1398068110" /> <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seahub.css?t=1398068110" />
<link rel="stylesheet" type="text/css" href="{% static "css/magnific-popup.css" %}" /> <link rel="stylesheet" type="text/css" href="{% static "css/magnific-popup.css" %}" />
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/sf_font3/iconfont.css" />
{% endcompress %} {% endcompress %}
{% if branding_css != '' %}<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}{{ branding_css }}" />{% endif %} {% if branding_css != '' %}<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}{{ branding_css }}" />{% endif %}