Skip to content

Commit

Permalink
Fixed '' back to "" on JSX attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vito Belgiorno-Zegna committed Mar 16, 2015
1 parent 28b2932 commit 35f74a1
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions admin/src/components/EditForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ var EditForm = React.createClass({
if (!this.props.list.noedit) {
toolbar.save = <button type="submit" className="btn btn-save">Save</button>;
// TODO: Confirm: Use React & Modal
toolbar.reset = <a href={'/keystone/' + this.props.list.path + '/' + this.props.data.id} className="btn btn-link btn-cancel" data-confirm='Are you sure you want to reset your changes?'>reset changes</a>;
toolbar.reset = <a href={'/keystone/' + this.props.list.path + '/' + this.props.data.id} className="btn btn-link btn-cancel" data-confirm="Are you sure you want to reset your changes?">reset changes</a>;
}

if (!this.props.list.noedit && !this.props.list.nodelete) {
// TODO: Confirm: Use React & Modal
toolbar.del = <a href={'/keystone/' + this.props.list.path + '?delete=' + this.props.data.id + Keystone.csrf.query} className="btn btn-link btn-cancel delete" data-confirm={'Are you sure you want to delete this?' + this.props.list.singular.toLowerCase()}>delete {this.props.list.singular.toLowerCase()}</a>;
toolbar.del = <a href={'/keystone/' + this.props.list.path + '?delete=' + this.props.data.id + Keystone.csrf.query} className="btn btn-link btn-cancel delete" data-confirm={"Are you sure you want to delete this?" + this.props.list.singular.toLowerCase()}>delete {this.props.list.singular.toLowerCase()}</a>;
}

return (
Expand Down
14 changes: 7 additions & 7 deletions fields/types/geopoint/GeoPointField.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ module.exports = Field.create({

renderValue: function() {
if (this.props.value[1] && this.props.value[0]) {
return <div className='field-value'>{this.props.value[1]}, {this.props.value[0]}</div>;
return <div className="field-value">{this.props.value[1]}, {this.props.value[0]}</div>;
}
return <div className='field-value'>(not set)</div>;
return <div className="field-value">(not set)</div>;
},

renderField: function() {
return (
<div className='form-row'>
<div className='col-sm-6'>
<input type='text' name={this.props.path + '[1]'} placeholder='Latitude' ref='lat' value={this.props.value[1]} onChange={this.valueChanged.bind(this, 1)} autoComplete='off' className='form-control' />
<div className="form-row">
<div className="col-sm-6">
<input type="text" name={this.props.path + "[1]"} placeholder="Latitude" ref="lat" value={this.props.value[1]} onChange={this.valueChanged.bind(this, 1)} autoComplete="off" className="form-control" />
</div>
<div className='col-sm-6'>
<input type='text' name={this.props.path + '[0]'} placeholder='Longitude' ref='lng' value={this.props.value[0]} onChange={this.valueChanged.bind(this, 0)} autoComplete='off' className='form-control' />
<div className="col-sm-6">
<input type="text" name={this.props.path + "[0]"} placeholder="Longitude" ref="lng" value={this.props.value[0]} onChange={this.valueChanged.bind(this, 0)} autoComplete="off" className="form-control" />
</div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion fields/types/localfile/LocalFileType.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ localfile.prototype.addToSchema = function() {

var schemaPaths = this._path.addTo({}, {
filename: String,
originalname: String,
originalname: String,
path: String,
size: Number,
filetype: String
Expand Down
10 changes: 5 additions & 5 deletions fields/types/localfiles/LocalFilesField.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,23 +164,23 @@ module.exports = Field.create({
});
if (remove.length) value = 'remove:' + remove.join(',');

return <input ref='action' className='field-action' type='hidden' value={value} name={this.props.paths.action} />;
return <input ref="action" className="field-action" type="hidden" value={value} name={this.props.paths.action} />;
},

renderUploadsField: function () {
return <input ref='uploads' className='field-uploads' type='hidden' name={this.props.paths.uploads} />;
return <input ref="uploads" className="field-uploads" type="hidden" name={this.props.paths.uploads} />;
},

renderUI: function () {
return (
<div className='field field-type-files'>
<label className='field-label'>{this.props.label}</label>
<div className="field field-type-files">
<label className="field-label">{this.props.label}</label>

{this.renderFieldAction()}
{this.renderUploadsField()}
{this.renderFileField()}

<div className='field-ui'>
<div className="field-ui">
{this.renderContainer()}
{this.renderToolbar()}
</div>
Expand Down
4 changes: 2 additions & 2 deletions fields/types/markdown/MarkdownField.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ module.exports = Field.create({
};

return (
<div className='md-editor'>
<textarea name={this.props.paths.md} style={styles} defaultValue={this.props.value.md} ref='markdownTextarea' className='form-control markdown code'></textarea>
<div className="md-editor">
<textarea name={this.props.paths.md} style={styles} defaultValue={this.props.value.md} ref="markdownTextarea" className="form-control markdown code"></textarea>
</div>
);
}
Expand Down
14 changes: 7 additions & 7 deletions fields/types/password/PasswordField.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = Field.create({
},

renderValue: function() {
return <div className='field-value'>{this.props.value ? 'password set' : 'password not set'}</div>;
return <div className="field-value">{this.props.value ? 'password set' : 'password not set'}</div>;
},

renderField: function() {
Expand All @@ -52,12 +52,12 @@ module.exports = Field.create({

renderFields: function() {
return (
<div className='form-row'>
<div className='col-sm-6'>
<input type='password' name={this.props.path} placeholder='New password' ref='password' value={this.state.password} onChange={this.valueChanged.bind(this, 'password')} autoComplete='off' className='form-control' />
<div className="form-row">
<div className="col-sm-6">
<input type="password" name={this.props.path} placeholder="New password" ref="password" value={this.state.password} onChange={this.valueChanged.bind(this, 'password')} autoComplete="off" className="form-control" />
</div>
<div className='col-sm-6'>
<input type='password' name={this.props.paths.confirm} placeholder='Confirm new password' ref='confirm' value={this.state.confirm} onChange={this.valueChanged.bind(this, 'confirm')} autoComplete='off' className='form-control' />
<div className="col-sm-6">
<input type="password" name={this.props.paths.confirm} placeholder="Confirm new password" ref="confirm" value={this.state.confirm} onChange={this.valueChanged.bind(this, 'confirm')} autoComplete="off" className="form-control" />
</div>
</div>
);
Expand All @@ -66,7 +66,7 @@ module.exports = Field.create({
renderChangeButton: function() {
var label = this.state.passwordIsSet ? 'Change Password' : 'Set Password';
return (
<button type='button' className='btn btn-default' onClick={this.showChangeUI}>{label}</button>
<button type="button" className="btn btn-default" onClick={this.showChangeUI}>{label}</button>
);
}

Expand Down

0 comments on commit 35f74a1

Please sign in to comment.