|
|
|
@ -428,27 +428,27 @@ watch(view, (nextView) => {
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="flex flex-wrap gap-2 mb-4"> |
|
|
|
|
<button |
|
|
|
|
<NcButton |
|
|
|
|
v-if="hiddenColumns.length" |
|
|
|
|
type="button" |
|
|
|
|
class="nc-form-add-all color-transition bg-white transform hover:(text-primary ring ring-accent ring-opacity-100) active:translate-y-[1px] px-2 py-1 shadow-md rounded" |
|
|
|
|
type="secondary" |
|
|
|
|
class="nc-form-add-all" |
|
|
|
|
data-testid="nc-form-add-all" |
|
|
|
|
@click="addAllColumns" |
|
|
|
|
> |
|
|
|
|
<!-- Add all --> |
|
|
|
|
{{ $t('general.addAll') }} |
|
|
|
|
</button> |
|
|
|
|
</NcButton> |
|
|
|
|
|
|
|
|
|
<button |
|
|
|
|
<NcButton |
|
|
|
|
v-if="localColumns.length" |
|
|
|
|
type="button" |
|
|
|
|
class="nc-form-remove-all color-transition bg-white transform hover:(text-primary ring ring-accent ring-opacity-100) active:translate-y-[1px] px-2 py-1 shadow-md rounded" |
|
|
|
|
type="secondary" |
|
|
|
|
class="nc-form-remove-all" |
|
|
|
|
data-testid="nc-form-remove-all" |
|
|
|
|
@click="removeAllColumns" |
|
|
|
|
> |
|
|
|
|
<!-- Remove all --> |
|
|
|
|
{{ $t('general.removeAll') }} |
|
|
|
|
</button> |
|
|
|
|
</NcButton> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
@ -552,10 +552,11 @@ watch(view, (nextView) => {
|
|
|
|
|
class="w-full !font-bold !text-4xl !border-0 !border-b-1 !border-dashed !rounded-none !border-gray-400" |
|
|
|
|
:style="{ |
|
|
|
|
'borderRightWidth': '0px !important', |
|
|
|
|
'height': '54px', |
|
|
|
|
'min-height': '54px', |
|
|
|
|
'height': '70px', |
|
|
|
|
'max-height': '250px', |
|
|
|
|
'resize': 'vertical', |
|
|
|
|
}" |
|
|
|
|
autosize |
|
|
|
|
size="large" |
|
|
|
|
hide-details |
|
|
|
|
placeholder="Form Title" |
|
|
|
@ -581,6 +582,7 @@ watch(view, (nextView) => {
|
|
|
|
|
'resize': 'vertical', |
|
|
|
|
}" |
|
|
|
|
size="large" |
|
|
|
|
autosize |
|
|
|
|
hide-details |
|
|
|
|
:placeholder="$t('msg.info.formDesc')" |
|
|
|
|
:bordered="false" |
|
|
|
@ -689,7 +691,7 @@ watch(view, (nextView) => {
|
|
|
|
|
</a-input> |
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
|
|
<a-form-item class="mt-2 mb-0 w-1/2 !mb-1"> |
|
|
|
|
<a-form-item class="mt-2 mb-0 w-1/2"> |
|
|
|
|
<a-input |
|
|
|
|
v-model:value="element.description" |
|
|
|
|
type="text" |
|
|
|
@ -768,7 +770,7 @@ watch(view, (nextView) => {
|
|
|
|
|
</LazySmartsheetDivDataCell> |
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
|
|
<div class="nc-form-help-text text-gray-500 text-xs" data-testid="nc-form-input-help-text-label"> |
|
|
|
|
<div class="nc-form-help-text text-gray-500 text-xs truncate" data-testid="nc-form-input-help-text-label"> |
|
|
|
|
{{ element.description }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -785,15 +787,16 @@ watch(view, (nextView) => {
|
|
|
|
|
</Draggable> |
|
|
|
|
|
|
|
|
|
<div class="justify-center flex mt-6"> |
|
|
|
|
<button |
|
|
|
|
type="submit" |
|
|
|
|
<NcButton |
|
|
|
|
html-type="submit" |
|
|
|
|
type="primary" |
|
|
|
|
:disabled="!isUIAllowed('dataInsert')" |
|
|
|
|
class="uppercase scaling-btn nc-form-submit" |
|
|
|
|
class="nc-form-submit" |
|
|
|
|
data-testid="nc-form-submit" |
|
|
|
|
@click="submitForm" |
|
|
|
|
> |
|
|
|
|
{{ $t('general.submit') }} |
|
|
|
|
</button> |
|
|
|
|
</NcButton> |
|
|
|
|
</div> |
|
|
|
|
</a-card> |
|
|
|
|
</a-form> |
|
|
|
@ -898,7 +901,6 @@ watch(view, (nextView) => {
|
|
|
|
|
.nc-form-help-text, |
|
|
|
|
.nc-input-required-error { |
|
|
|
|
max-width: 100%; |
|
|
|
|
word-break: break-all; |
|
|
|
|
white-space: pre-line; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|