Remove form wrap around HandlerInput and fix css

pull/2447/head
deniz kusefoglu 2017-11-29 13:24:40 -08:00
parent c973141ab9
commit d592e7f2b0
2 changed files with 26 additions and 28 deletions

View File

@ -12,32 +12,30 @@ const HandlerInput = ({
}) => {
const formGroupClass = `form-group ${fieldColumns}`
return (
<form>
<div className={formGroupClass}>
<label htmlFor={fieldName}>
{fieldDisplay}
</label>
<div className={redacted ? 'form-control-static redacted-input' : null}>
<input
name={fieldName}
id={fieldName}
className="form-control input-sm form-malachite"
type={redacted ? 'hidden' : 'text'}
placeholder={placeholder}
onChange={handleModifyHandler(selectedHandler, fieldName)}
value={selectedHandler[fieldName]}
autoComplete="off"
spellCheck="false"
disabled={disabled}
/>
{redacted
? <span className="alert-value-set">
<span className="icon checkmark" /> Value set in Config
</span>
: null}
</div>
<div className={formGroupClass}>
<label htmlFor={fieldName}>
{fieldDisplay}
</label>
<div className={redacted ? 'form-control-static redacted-input' : null}>
<input
name={fieldName}
id={fieldName}
className="form-control input-sm form-malachite"
type={redacted ? 'hidden' : 'text'}
placeholder={placeholder}
onChange={handleModifyHandler(selectedHandler, fieldName)}
value={selectedHandler[fieldName]}
autoComplete="off"
spellCheck="false"
disabled={disabled}
/>
{redacted
? <span className="alert-value-set">
<span className="icon checkmark" /> Value set in Config
</span>
: null}
</div>
</form>
</div>
)
}

View File

@ -542,9 +542,9 @@ $rule-builder--radius-lg: 5px;
padding-bottom: $rule-builder--padding-lg;
}
}
.endpoint-tab--parameters form {
margin-left: -7px;
margin-right: -7px;
.endpoint-tab--parameters .form-group {
margin-left: -18px;
margin-right: 18px;
}
.endpoint-tab--parameters--empty {
align-items: center;