move submit button to the right
This commit is contained in:
@@ -17,6 +17,11 @@
|
|||||||
@import url("https://console-unipr.elixforms.it/rwe2/isipcss/css/grid_fluid.css");
|
@import url("https://console-unipr.elixforms.it/rwe2/isipcss/css/grid_fluid.css");
|
||||||
|
|
||||||
/* Submit button styling (elixForms main submit) */
|
/* Submit button styling (elixForms main submit) */
|
||||||
|
.mainview .container .submit {
|
||||||
|
width: auto;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
.mainview .container form input[type="submit"] {
|
.mainview .container form input[type="submit"] {
|
||||||
background-color: #0066cc;
|
background-color: #0066cc;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
|||||||
@@ -196,8 +196,10 @@ export default abstract class ElixFormsComponentAbstract extends Component<IElix
|
|||||||
{this.createMandatoryFormFields(queryParams)}
|
{this.createMandatoryFormFields(queryParams)}
|
||||||
{this.createAdditionalFormFields()}
|
{this.createAdditionalFormFields()}
|
||||||
{this.renderCustomFormFields()}
|
{this.renderCustomFormFields()}
|
||||||
<br/>
|
<br />
|
||||||
<input type="submit" value={submitDescription ?? 'Submit'} />
|
<div className='submit'>
|
||||||
|
<input type="submit" value={submitDescription ?? 'Submit'} />
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{this.renderExtraContentPost()}
|
{this.renderExtraContentPost()}
|
||||||
@@ -263,8 +265,8 @@ export default abstract class ElixFormsComponentAbstract extends Component<IElix
|
|||||||
});
|
});
|
||||||
|
|
||||||
const currentValue = this.state.formData[paramName] !== undefined
|
const currentValue = this.state.formData[paramName] !== undefined
|
||||||
? this.state.formData[paramName]
|
? this.state.formData[paramName]
|
||||||
: (this.checkboxValues.get(paramName)?.join(',').trim() ?? '');
|
: (this.checkboxValues.get(paramName)?.join(',').trim() ?? '');
|
||||||
|
|
||||||
return new ElixFormsElement(
|
return new ElixFormsElement(
|
||||||
<><FluentUI.Label htmlFor={paramName}>{label}</FluentUI.Label></>,
|
<><FluentUI.Label htmlFor={paramName}>{label}</FluentUI.Label></>,
|
||||||
@@ -398,8 +400,8 @@ export default abstract class ElixFormsComponentAbstract extends Component<IElix
|
|||||||
private createDropdownInput(paramName: string, label: string, values: Array<ElixFormsDropdownOption>, required: boolean = false): JSX.Element {
|
private createDropdownInput(paramName: string, label: string, values: Array<ElixFormsDropdownOption>, required: boolean = false): JSX.Element {
|
||||||
const queryValue = QueryParamHelper.getOptionFromQuery(paramName);
|
const queryValue = QueryParamHelper.getOptionFromQuery(paramName);
|
||||||
const currentValue = this.state.formData[paramName] !== undefined
|
const currentValue = this.state.formData[paramName] !== undefined
|
||||||
? this.state.formData[paramName]
|
? this.state.formData[paramName]
|
||||||
: (queryValue?.toString() ?? '');
|
: (queryValue?.toString() ?? '');
|
||||||
|
|
||||||
const options: FluentUI.IDropdownOption[] = [];
|
const options: FluentUI.IDropdownOption[] = [];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user