Improvements to license page
Этот коммит содержится в:
коммит произвёл
JoramWilander
родитель
d9eb8c0c58
Коммит
29eb6a1d01
@@ -174,15 +174,17 @@ class LicenseSettings extends React.Component {
|
|||||||
|
|
||||||
licenseKey = (
|
licenseKey = (
|
||||||
<div className='col-sm-8'>
|
<div className='col-sm-8'>
|
||||||
<input
|
<div className='file__upload'>
|
||||||
className='pull-left'
|
<button className='btn btn-primary'>{'Choose File'}</button>
|
||||||
ref='fileInput'
|
<input
|
||||||
type='file'
|
ref='fileInput'
|
||||||
accept='.mattermost-license'
|
type='file'
|
||||||
onChange={this.handleChange}
|
accept='.mattermost-license'
|
||||||
/>
|
onChange={this.handleChange}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<button
|
<button
|
||||||
className={btnClass + ' pull-left'}
|
className={btnClass}
|
||||||
disabled={!this.state.fileSelected}
|
disabled={!this.state.fileSelected}
|
||||||
onClick={this.handleSubmit}
|
onClick={this.handleSubmit}
|
||||||
id='upload-button'
|
id='upload-button'
|
||||||
@@ -193,11 +195,12 @@ class LicenseSettings extends React.Component {
|
|||||||
defaultMessage='Upload'
|
defaultMessage='Upload'
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
<br/>
|
<div className='help-text no-margin'>
|
||||||
<br/>
|
{'No file uploaded'}
|
||||||
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
{serverError}
|
{serverError}
|
||||||
<p className='help-text'>
|
<p className='help-text no-margin'>
|
||||||
<FormattedHTMLMessage
|
<FormattedHTMLMessage
|
||||||
id='admin.license.uploadDesc'
|
id='admin.license.uploadDesc'
|
||||||
defaultMessage='Upload a license key for Mattermost Enterprise Edition to upgrade this server. <a href="http://mattermost.com" target="_blank">Visit us online</a> to learn more about the benefits of Enterprise Edition or to purchase a key.'
|
defaultMessage='Upload a license key for Mattermost Enterprise Edition to upgrade this server. <a href="http://mattermost.com" target="_blank">Visit us online</a> to learn more about the benefits of Enterprise Edition or to purchase a key.'
|
||||||
|
|||||||
@@ -145,12 +145,27 @@
|
|||||||
.form-group {
|
.form-group {
|
||||||
margin-bottom: 25px;
|
margin-bottom: 25px;
|
||||||
}
|
}
|
||||||
.help-text {
|
.file__upload {
|
||||||
ul, ol {
|
position: relative;
|
||||||
padding-left: 23px;
|
margin: 0 10px 10px 0;
|
||||||
|
display: inline-block;
|
||||||
|
input {
|
||||||
|
position: absolute;
|
||||||
|
@include opacity(0);
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
z-index: 5;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.help-text {
|
.help-text {
|
||||||
|
&.no-margin {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
ul, ol {
|
||||||
|
padding-left: 23px;
|
||||||
|
}
|
||||||
margin: 10px 0 0 15px;
|
margin: 10px 0 0 15px;
|
||||||
color: #777;
|
color: #777;
|
||||||
.help-link {
|
.help-link {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user