63 lines
1.6 KiB
TypeScript
63 lines
1.6 KiB
TypeScript
import type { FormTabRows } from '../lib/render-rows';
|
|
|
|
const defaultRowStyle = { gridTemplateColumns: '1fr' };
|
|
|
|
export const mainRows: FormTabRows = [
|
|
{ title: 'Выбор Интереса/ЛС' },
|
|
[['selectLead'], defaultRowStyle],
|
|
[['selectOpportunity'], defaultRowStyle],
|
|
[['cbxRecalcWithRevision'], defaultRowStyle],
|
|
[['selectQuote'], defaultRowStyle],
|
|
[
|
|
['btnCalculate'],
|
|
{
|
|
gridTemplateColumns: '1fr',
|
|
marginBottom: ['5px'],
|
|
},
|
|
],
|
|
[
|
|
['btnCreateKP', 'linkDownloadKp'],
|
|
{
|
|
gap: ['10px'],
|
|
gridTemplateColumns: ['1fr 1fr'],
|
|
},
|
|
],
|
|
];
|
|
|
|
export const unlimitedMainRows: FormTabRows = [
|
|
{ title: 'Выбор Интереса/ЛС' },
|
|
[['selectUser'], defaultRowStyle],
|
|
[['selectLead'], defaultRowStyle],
|
|
[['selectOpportunity'], defaultRowStyle],
|
|
[['cbxRecalcWithRevision'], defaultRowStyle],
|
|
[['selectQuote'], defaultRowStyle],
|
|
[
|
|
['btnCalculate'],
|
|
{
|
|
gridTemplateColumns: '1fr',
|
|
marginBottom: ['5px'],
|
|
},
|
|
],
|
|
[
|
|
['btnCreateKP', 'linkDownloadKp'],
|
|
{
|
|
gap: ['10px'],
|
|
gridTemplateColumns: ['1fr 1fr'],
|
|
},
|
|
],
|
|
];
|
|
|
|
export const paramsRows: FormTabRows = [
|
|
{ title: 'Параметры расчета' },
|
|
[['radioCalcType'], defaultRowStyle],
|
|
[['tbxIRR_Perc'], defaultRowStyle],
|
|
[['tbxTotalPayments'], defaultRowStyle],
|
|
];
|
|
|
|
export const unlimitedParamsRows: FormTabRows = [
|
|
{ title: 'Параметры расчета' },
|
|
[['radioCalcType'], defaultRowStyle],
|
|
[['tbxIRR_Perc', 'tbxPi'], { gridTemplateColumns: '1fr 1fr' }],
|
|
[['tbxTotalPayments'], defaultRowStyle],
|
|
];
|