<form onSubmit={this.handleSubmit}>
<div className="modal-body">
- <div className="modal-field">
- <label htmlFor="organization-key">
- {translate('organization.key')}
- </label>
- <input id="organization-key"
- autoFocus={true}
- name="key"
- type="text"
- maxLength="64"
- value={this.state.key}
- disabled={this.state.loading}
- onChange={e => this.setState({ key: e.target.value })}/>
- <div className="modal-field-description">
- {translate('organization.key.description')}
- </div>
- </div>
<div className="modal-field">
<label htmlFor="organization-name">
{translate('organization.name')}
<em className="mandatory">*</em>
</label>
<input id="organization-name"
+ autoFocus={true}
name="name"
required={true}
type="text"
{translate('organization.name.description')}
</div>
</div>
+ <div className="modal-field">
+ <label htmlFor="organization-key">
+ {translate('organization.key')}
+ </label>
+ <input id="organization-key"
+ name="key"
+ type="text"
+ maxLength="64"
+ value={this.state.key}
+ disabled={this.state.loading}
+ onChange={e => this.setState({ key: e.target.value })}/>
+ <div className="modal-field-description">
+ {translate('organization.key.description')}
+ </div>
+ </div>
<div className="modal-field">
<label htmlFor="organization-avatar">
{translate('organization.avatar')}
organization.description.description=Description of the organization (256 characters max).
organization.edit=Edit Organization
organization.key=Key
-organization.key.description=Key of the organization (2 to 32 characters). The key is unique to the whole SonarQube. When not specified, the key is computed from the name.
+organization.key.description=Key of the organization (2 to 32 characters). All chars must be lower-case letters (a to z), digits or dash (but dash can neither be trailing nor heading). The key is unique to the whole SonarQube. When not specified, the key is computed from the name.
organization.name=Name
organization.name.description=Name of the organization (2 to 64 characters).
organization.updated=Organization details have been updated.