mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
619 lines
18 KiB
619 lines
18 KiB
3 years ago
|
<template>
|
||
|
<v-container class="h-100 j-excel-container">
|
||
2 years ago
|
<v-alert v-if="notFound" type="warning" class="mx-auto mt-10" outlined max-width="300"> Not found </v-alert>
|
||
3 years ago
|
|
||
2 years ago
|
<v-row v-else :class="{ 'd-flex justify-center': submitted }">
|
||
3 years ago
|
<template v-if="submitted">
|
||
|
<v-col class="d-flex justify-center">
|
||
3 years ago
|
<div v-if="view" style="min-width: 350px">
|
||
3 years ago
|
<v-alert type="success" outlined>
|
||
3 years ago
|
<span class="title">{{ view.success_msg || 'Successfully submitted form data' }}</span>
|
||
3 years ago
|
</v-alert>
|
||
3 years ago
|
<p v-if="view.show_blank_form" class="caption grey--text text-center">
|
||
3 years ago
|
New form will be loaded after {{ secondsRemain }} seconds
|
||
|
</p>
|
||
2 years ago
|
<div v-if="view.submit_another_form" class="text-center">
|
||
2 years ago
|
<v-btn color="primary" @click="submitted = false"> Submit Another Form </v-btn>
|
||
3 years ago
|
</div>
|
||
|
</div>
|
||
|
</v-col>
|
||
|
</template>
|
||
|
<template v-else>
|
||
2 years ago
|
<v-col class="h-100 px-sm-1 px-md-10" style="overflow-y: auto">
|
||
3 years ago
|
<!-- <div class="my-14 d-flex align-center justify-center">-->
|
||
|
<!-- <v-chip>Add cover image</v-chip>-->
|
||
|
<!-- </div>-->
|
||
2 years ago
|
<div class="nc-form-wrapper elevation-3 pb-10">
|
||
3 years ago
|
<div class="mt-10 d-flex align-center justify-center flex-column">
|
||
2 years ago
|
<div class="nc-form-banner backgroundColor darken-1 flex-column justify-center d-flex">
|
||
3 years ago
|
<div class="d-flex align-center justify-center flex-grow-1">
|
||
3 years ago
|
<!-- <v-chip small color="backgroundColorDefault caption grey--text">
|
||
3 years ago
|
Add cover image
|
||
|
</v-chip>-->
|
||
3 years ago
|
<v-img src="./icon.png" width="50" class="mx-4" />
|
||
|
<span class="display-1 font-weight-bold">NocoDB</span>
|
||
3 years ago
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
2 years ago
|
<div class="mx-auto nc-form elevation-3 pa-2 mb-10">
|
||
3 years ago
|
<div class="nc-form-logo py-8" style="display: none">
|
||
3 years ago
|
<!-- <div v-ripple class="nc-form-add-logo text-center caption pointer" @click.stop>-->
|
||
|
<!-- Add a logo-->
|
||
|
<!-- </div>-->
|
||
3 years ago
|
</div>
|
||
2 years ago
|
<h2 class="mt-4 display-1 font-weight-bold text-left mx-4 mb-3 px-1 text--text text--lighten-1">
|
||
3 years ago
|
{{ view.heading }}
|
||
3 years ago
|
</h2>
|
||
|
|
||
2 years ago
|
<div class="body-1 text-left mx-4 py-2 px-1 text--text text--lighten-2">
|
||
3 years ago
|
{{ view.subheading }}
|
||
3 years ago
|
</div>
|
||
|
<div class="h-100">
|
||
2 years ago
|
<div v-for="col in columns" :key="col.alias" class="nc-field-wrapper item px-4 my-3 pointer">
|
||
3 years ago
|
<div>
|
||
|
<div
|
||
|
:class="{
|
||
2 years ago
|
'active-row': active === col.title,
|
||
|
required: isRequired(col, localState, col.required),
|
||
3 years ago
|
}"
|
||
|
>
|
||
|
<div class="nc-field-editables">
|
||
2 years ago
|
<label :for="`data-table-form-${col.title}`" class="body-2 text-capitalize nc-field-labels">
|
||
3 years ago
|
<virtual-header-cell
|
||
3 years ago
|
v-if="isVirtualCol(col)"
|
||
3 years ago
|
class="caption"
|
||
2 years ago
|
:column="{ ...col, _cn: col.label || col.title }"
|
||
3 years ago
|
:nodes="{}"
|
||
|
:is-form="true"
|
||
|
:meta="meta"
|
||
3 years ago
|
:required="isRequired(col, localState, col.required)"
|
||
3 years ago
|
/>
|
||
|
<header-cell
|
||
|
v-else
|
||
|
class="caption"
|
||
|
:is-form="true"
|
||
3 years ago
|
:value="col.label || col.title"
|
||
3 years ago
|
:column="col"
|
||
3 years ago
|
:sql-ui="sqlUiLoc"
|
||
2 years ago
|
:required="isRequired(col, localState, col.required)"
|
||
3 years ago
|
/>
|
||
|
</label>
|
||
2 years ago
|
<div v-if="isVirtualCol(col)" @click.stop>
|
||
3 years ago
|
<virtual-cell
|
||
|
ref="virtual"
|
||
|
:disabled-columns="{}"
|
||
|
:column="col"
|
||
|
:row="localState"
|
||
|
:nodes="{}"
|
||
|
:meta="meta"
|
||
|
:api="api"
|
||
|
:active="true"
|
||
3 years ago
|
:sql-ui="sqlUiLoc"
|
||
3 years ago
|
:is-new="true"
|
||
|
is-form
|
||
|
is-public
|
||
3 years ago
|
:hint="col.description"
|
||
|
:required="col.description"
|
||
3 years ago
|
:metas="metas"
|
||
3 years ago
|
:password="password"
|
||
2 years ago
|
@update:localState="state => $set(virtual, col.title, state)"
|
||
3 years ago
|
@updateCol="updateCol"
|
||
|
/>
|
||
|
<div
|
||
2 years ago
|
v-if="
|
||
|
$v.virtual &&
|
||
2 years ago
|
$v.virtual.$dirty &&
|
||
|
$v.virtual[col.title] &&
|
||
|
(!$v.virtual[col.title].required || !$v.virtual[col.title].minLength)
|
||
2 years ago
|
"
|
||
3 years ago
|
class="error--text caption"
|
||
|
>
|
||
|
Field is required.
|
||
|
</div>
|
||
|
</div>
|
||
|
<template v-else>
|
||
|
<div
|
||
3 years ago
|
v-if="col.ai || disabledColumns[col.title]"
|
||
2 years ago
|
style="height: 100%; width: 100%"
|
||
3 years ago
|
class="caption xc-input"
|
||
|
@click.stop
|
||
|
@click="col.ai && $toast.info('Auto Increment field is not editable').goAway(3000)"
|
||
|
>
|
||
2 years ago
|
<input style="height: 100%; width: 100%" readonly disabled :value="localState[col.title]" />
|
||
3 years ago
|
</div>
|
||
|
|
||
2 years ago
|
<div v-else @click.stop>
|
||
3 years ago
|
<editable-cell
|
||
3 years ago
|
:id="`data-table-form-${col.title}`"
|
||
|
v-model="localState[col.title]"
|
||
3 years ago
|
:db-alias="dbAlias"
|
||
|
:column="col"
|
||
|
class="xc-input body-2"
|
||
|
:meta="meta"
|
||
3 years ago
|
:sql-ui="sqlUiLoc"
|
||
3 years ago
|
is-form
|
||
3 years ago
|
is-public
|
||
3 years ago
|
:hint="col.description"
|
||
|
@focus="active = col.title"
|
||
3 years ago
|
@blur="active = ''"
|
||
|
/>
|
||
|
</div>
|
||
2 years ago
|
<template v-if="$v.localState && $v.localState.$dirty && $v.localState[col.title]">
|
||
3 years ago
|
<div v-if="!$v.localState[col.title].required" class="error--text caption">
|
||
3 years ago
|
Field is required.
|
||
|
</div>
|
||
|
</template>
|
||
|
</template>
|
||
|
</div>
|
||
3 years ago
|
<!-- </div>-->
|
||
3 years ago
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="my-10 text-center">
|
||
2 years ago
|
<v-btn color="primary" :loading="submitting" :disabled="submitting" @click="save"> Submit </v-btn>
|
||
3 years ago
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</v-col>
|
||
|
</template>
|
||
|
</v-row>
|
||
3 years ago
|
|
||
|
<v-dialog v-model="showPasswordModal" width="400">
|
||
|
<v-card width="400" class="backgroundColor">
|
||
|
<v-container fluid>
|
||
|
<v-text-field
|
||
|
v-model="password"
|
||
|
dense
|
||
3 years ago
|
autocomplete="shared-form-password"
|
||
|
browser-autocomplete="shared-form-password"
|
||
3 years ago
|
type="password"
|
||
|
solo
|
||
|
flat
|
||
|
hint="Enter the password"
|
||
|
persistent-hint
|
||
|
/>
|
||
|
|
||
|
<div class="text-center">
|
||
2 years ago
|
<v-btn
|
||
|
small
|
||
|
color="primary"
|
||
|
@click="
|
||
|
loadMetaData();
|
||
|
showPasswordModal = false;
|
||
|
"
|
||
|
>
|
||
3 years ago
|
Unlock
|
||
|
</v-btn>
|
||
|
</div>
|
||
|
</v-container>
|
||
|
</v-card>
|
||
|
</v-dialog>
|
||
3 years ago
|
</v-container>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
2 years ago
|
import { validationMixin } from 'vuelidate';
|
||
|
import { required, minLength } from 'vuelidate/lib/validators';
|
||
|
import { ErrorMessages, isVirtualCol, RelationTypes, UITypes, SqlUiFactory } from 'nocodb-sdk';
|
||
|
import form from '../mixins/form';
|
||
|
import VirtualHeaderCell from '../components/VirtualHeaderCell';
|
||
|
import HeaderCell from '../components/HeaderCell';
|
||
|
import VirtualCell from '../components/VirtualCell';
|
||
|
import EditableCell from '../components/EditableCell';
|
||
3 years ago
|
|
||
|
export default {
|
||
|
name: 'XcForm',
|
||
3 years ago
|
components: {
|
||
|
EditableCell,
|
||
|
VirtualCell,
|
||
|
HeaderCell,
|
||
2 years ago
|
VirtualHeaderCell,
|
||
3 years ago
|
},
|
||
3 years ago
|
mixins: [form, validationMixin],
|
||
|
data() {
|
||
|
return {
|
||
3 years ago
|
viewMeta: null,
|
||
|
view: {},
|
||
3 years ago
|
active: null,
|
||
|
loading: false,
|
||
3 years ago
|
showPasswordModal: false,
|
||
3 years ago
|
password: '',
|
||
3 years ago
|
submitting: false,
|
||
3 years ago
|
submitted: false,
|
||
3 years ago
|
client: null,
|
||
|
meta: null,
|
||
|
columns: [],
|
||
|
query_params: {},
|
||
|
localParams: {},
|
||
|
localState: {},
|
||
|
dbAlias: '',
|
||
|
virtual: {},
|
||
3 years ago
|
metas: {},
|
||
3 years ago
|
secondsRemain: null,
|
||
2 years ago
|
notFound: false,
|
||
|
};
|
||
3 years ago
|
},
|
||
|
computed: {
|
||
3 years ago
|
btColumnsRefs() {
|
||
|
return (this.columns || []).reduce((aggObj, column) => {
|
||
2 years ago
|
if (
|
||
|
column.uidt === UITypes.LinkToAnotherRecord &&
|
||
|
column.colOptions &&
|
||
|
column.colOptions.type === RelationTypes.BELONGS_TO
|
||
|
) {
|
||
2 years ago
|
const col = this.meta.columns.find(c => c.id === column.colOptions.fk_child_column_id);
|
||
2 years ago
|
|
||
2 years ago
|
aggObj[column.title] = col;
|
||
3 years ago
|
}
|
||
2 years ago
|
return aggObj;
|
||
|
}, {});
|
||
3 years ago
|
},
|
||
|
|
||
3 years ago
|
sqlUiLoc() {
|
||
3 years ago
|
// todo: replace with correct client
|
||
2 years ago
|
return this.client && SqlUiFactory.create({ client: this.client });
|
||
|
},
|
||
3 years ago
|
},
|
||
3 years ago
|
watch: {
|
||
|
submitted(val) {
|
||
3 years ago
|
if (val && this.view.show_blank_form) {
|
||
2 years ago
|
this.secondsRemain = 5;
|
||
3 years ago
|
const intvl = setInterval(() => {
|
||
|
if (--this.secondsRemain < 0) {
|
||
2 years ago
|
this.submitted = false;
|
||
|
clearInterval(intvl);
|
||
3 years ago
|
}
|
||
2 years ago
|
}, 1000);
|
||
3 years ago
|
}
|
||
2 years ago
|
},
|
||
3 years ago
|
},
|
||
3 years ago
|
async mounted() {
|
||
2 years ago
|
await this.loadMetaData();
|
||
3 years ago
|
},
|
||
|
methods: {
|
||
3 years ago
|
isVirtualCol,
|
||
3 years ago
|
async loadMetaData() {
|
||
2 years ago
|
this.loading = true;
|
||
3 years ago
|
try {
|
||
2 years ago
|
this.viewMeta = await this.$api.public.sharedViewMetaGet(this.$route.params.id, {
|
||
2 years ago
|
headers: { 'xc-password': this.password },
|
||
|
});
|
||
2 years ago
|
|
||
2 years ago
|
this.view = this.viewMeta.view;
|
||
|
this.meta = this.viewMeta.model;
|
||
|
this.metas = this.viewMeta.relatedMetas;
|
||
2 years ago
|
this.columns = this.meta.columns
|
||
|
.filter(c => c.show)
|
||
2 years ago
|
.filter(col => !isVirtualCol(col) || col.uidt === UITypes.LinkToAnotherRecord);
|
||
|
this.client = this.viewMeta.client;
|
||
3 years ago
|
} catch (e) {
|
||
3 years ago
|
if (e.response && e.response.status === 404) {
|
||
2 years ago
|
this.notFound = true;
|
||
2 years ago
|
} else if ((await this._extractSdkResponseErrorMsg(e)) === ErrorMessages.INVALID_SHARED_VIEW_PASSWORD) {
|
||
2 years ago
|
this.showPasswordModal = true;
|
||
3 years ago
|
}
|
||
3 years ago
|
}
|
||
|
|
||
2 years ago
|
this.loadingData = false;
|
||
3 years ago
|
},
|
||
|
async save() {
|
||
|
try {
|
||
2 years ago
|
this.$v.$touch();
|
||
3 years ago
|
if (this.$v.localState.$invalid || this.$v.virtual.$invalid) {
|
||
2 years ago
|
this.$toast.error('Provide values of all required field').goAway(3000);
|
||
|
return;
|
||
3 years ago
|
}
|
||
|
|
||
2 years ago
|
this.submitting = true;
|
||
|
const data = { ...this.localState, ...this.virtual };
|
||
|
const attachment = {};
|
||
3 years ago
|
|
||
|
for (const col of this.meta.columns) {
|
||
3 years ago
|
if (col.uidt === UITypes.Attachment) {
|
||
2 years ago
|
attachment[`_${col.title}`] = data[col.title];
|
||
|
delete data[col.title];
|
||
3 years ago
|
}
|
||
|
}
|
||
|
|
||
2 years ago
|
await this.$api.public.dataCreate(
|
||
|
this.$route.params.id,
|
||
|
{
|
||
|
data,
|
||
2 years ago
|
...attachment,
|
||
2 years ago
|
},
|
||
|
{
|
||
2 years ago
|
headers: { 'xc-password': this.password },
|
||
2 years ago
|
}
|
||
2 years ago
|
);
|
||
2 years ago
|
|
||
2 years ago
|
this.virtual = {};
|
||
|
this.localState = {};
|
||
2 years ago
|
|
||
2 years ago
|
this.submitted = true;
|
||
2 years ago
|
|
||
|
this.$toast
|
||
|
.success(this.view.success_msg || 'Saved successfully.', {
|
||
2 years ago
|
position: 'bottom-right',
|
||
2 years ago
|
})
|
||
2 years ago
|
.goAway(3000);
|
||
2 years ago
|
} catch (e) {
|
||
2 years ago
|
console.log(e);
|
||
|
this.$toast.error(`Failed to update row : ${e.message}`).goAway(3000);
|
||
3 years ago
|
}
|
||
2 years ago
|
this.submitting = false;
|
||
3 years ago
|
},
|
||
|
updateCol(_, column, id) {
|
||
2 years ago
|
this.$set(this.localState, column, id);
|
||
|
},
|
||
3 years ago
|
},
|
||
|
|
||
|
validations() {
|
||
3 years ago
|
const obj = {
|
||
|
localState: {},
|
||
2 years ago
|
virtual: {},
|
||
|
};
|
||
3 years ago
|
for (const column of this.columns) {
|
||
3 years ago
|
// if (!this.localParams || !this.localParams.fields || !this.localParams.fields[column.alias]) {
|
||
|
// continue
|
||
|
// }
|
||
2 years ago
|
if (
|
||
|
!isVirtualCol(column) &&
|
||
|
(((column.rqd || column.notnull) && !column.cdf) ||
|
||
|
(column.pk && !(column.ai || column.cdf)) ||
|
||
|
column.required)
|
||
|
) {
|
||
2 years ago
|
obj.localState[column.title] = { required };
|
||
2 years ago
|
} else if (
|
||
|
column.uidt === UITypes.LinkToAnotherRecord &&
|
||
|
column.colOptions &&
|
||
|
column.colOptions.type === RelationTypes.BELONGS_TO
|
||
|
) {
|
||
2 years ago
|
const col = this.meta.columns.find(c => c.id === column.colOptions.fk_child_column_id);
|
||
3 years ago
|
|
||
|
if ((col && col.rqd && !col.cdf) || column.required) {
|
||
2 years ago
|
if (col) {
|
||
2 years ago
|
obj.virtual[column.title] = { required };
|
||
2 years ago
|
}
|
||
3 years ago
|
}
|
||
|
} else if (isVirtualCol(column) && column.required) {
|
||
|
obj.virtual[column.title] = {
|
||
|
minLength: minLength(1),
|
||
2 years ago
|
required,
|
||
|
};
|
||
3 years ago
|
}
|
||
|
}
|
||
2 years ago
|
return obj;
|
||
|
},
|
||
|
};
|
||
3 years ago
|
</script>
|
||
|
|
||
|
<style scoped lang="scss">
|
||
|
.nc-form-wrapper {
|
||
|
max-width: 800px;
|
||
|
margin: 0 auto;
|
||
|
}
|
||
|
|
||
|
.nc-form-wrapper {
|
||
|
border-radius: 4px;
|
||
|
|
||
|
.nc-form {
|
||
|
position: relative;
|
||
|
border-radius: 4px;
|
||
|
z-index: 2;
|
||
|
background: var(--v-backgroundColorDefault-base);
|
||
|
width: 80%;
|
||
|
max-width: 600px;
|
||
|
margin: 0 auto;
|
||
|
margin-top: -100px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.nc-field-wrapper {
|
||
|
&.active-row {
|
||
|
border-radius: 4px;
|
||
|
border: 1px solid var(--v-backgroundColor-darken1);
|
||
|
}
|
||
|
|
||
|
position: relative;
|
||
|
|
||
|
.nc-field-remove-icon {
|
||
|
opacity: 0;
|
||
|
position: absolute;
|
||
|
right: 10px;
|
||
|
top: 10px;
|
||
|
transition: 200ms opacity;
|
||
2 years ago
|
z-index: 9;
|
||
3 years ago
|
}
|
||
|
|
||
|
&.nc-editable:hover {
|
||
|
background: var(--v-backgroundColor-base);
|
||
|
|
||
|
.nc-field-remove-icon {
|
||
|
opacity: 1;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.row-col > label {
|
||
|
color: grey;
|
||
|
font-weight: 700;
|
||
|
}
|
||
|
|
||
2 years ago
|
.row-col:focus > label,
|
||
|
.active-row > label {
|
||
3 years ago
|
color: var(--v-primary-base);
|
||
|
}
|
||
|
|
||
|
.title.text-center {
|
||
|
white-space: nowrap;
|
||
|
overflow: hidden;
|
||
|
text-overflow: ellipsis;
|
||
|
}
|
||
|
|
||
|
::v-deep {
|
||
|
.nc-hint {
|
||
|
padding-left: 3px;
|
||
|
}
|
||
|
|
||
2 years ago
|
.nc-required-switch,
|
||
|
.nc-switch {
|
||
3 years ago
|
.v-input--selection-controls__input {
|
||
|
transform: scale(0.65) !important;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.v-breadcrumbs__item:nth-child(odd) {
|
||
2 years ago
|
font-size: 0.72rem;
|
||
3 years ago
|
color: grey;
|
||
|
}
|
||
|
|
||
|
.v-breadcrumbs li:nth-child(even) {
|
||
|
padding: 0 6px;
|
||
2 years ago
|
font-size: 0.72rem;
|
||
3 years ago
|
color: var(--v-textColor-base);
|
||
|
}
|
||
|
|
||
|
.comment-icon {
|
||
|
position: absolute;
|
||
|
right: 60px;
|
||
|
bottom: 60px;
|
||
|
}
|
||
|
|
||
|
.nc-field-wrapper {
|
||
|
//.required {
|
||
|
// & > input,
|
||
|
// .xc-input > input,
|
||
|
// .xc-input .v-input__slot input,
|
||
|
// .xc-input > div > input,
|
||
|
// & > select,
|
||
|
// .xc-input > select,
|
||
|
// textarea:not(.inputarea) {
|
||
|
// border: 1px solid rgba(255, 0, 0, 0.98);
|
||
|
// border-radius: 4px;
|
||
|
// background: var(--v-backgroundColorDefault-base);
|
||
|
// }
|
||
|
//}
|
||
|
|
||
|
div > input,
|
||
|
div > .xc-input > input,
|
||
|
div > .xc-input > div > input,
|
||
|
div > select,
|
||
|
div > .xc-input > select,
|
||
|
div textarea:not(.inputarea) {
|
||
|
border: 1px solid #7f828b33;
|
||
|
padding: 1px 5px;
|
||
2 years ago
|
font-size: 0.8rem;
|
||
3 years ago
|
border-radius: 4px;
|
||
|
min-height: 44px;
|
||
|
|
||
|
&:focus {
|
||
|
border: 1px solid var(--v-primary-base);
|
||
|
}
|
||
|
|
||
|
&:hover:not(:focus) {
|
||
|
box-shadow: 0 0 2px dimgrey;
|
||
|
}
|
||
|
|
||
|
background: var(--v-backgroundColorDefault-base);
|
||
|
}
|
||
|
|
||
|
.v-input__slot {
|
||
|
padding: 0 !important;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.nc-meta-inputs {
|
||
|
//width: 400px;
|
||
|
min-height: 40px;
|
||
|
border-radius: 4px;
|
||
|
//display: flex;
|
||
|
//align-items: center;
|
||
|
//justify-content: center;
|
||
|
|
||
|
&:hover {
|
||
|
background: var(--v-backgroundColor-base);
|
||
|
}
|
||
|
|
||
2 years ago
|
&:active,
|
||
|
&:focus {
|
||
3 years ago
|
border: 1px solid #7f828b33;
|
||
|
}
|
||
|
}
|
||
|
|
||
2 years ago
|
.nc-drag-n-drop-to-hide,
|
||
|
.nc-drag-n-drop-to-show {
|
||
3 years ago
|
border: 2px dashed #c4c4c4;
|
||
|
border-radius: 4px;
|
||
2 years ago
|
font-size: 0.62rem;
|
||
3 years ago
|
|
||
2 years ago
|
color: grey;
|
||
3 years ago
|
}
|
||
|
|
||
|
.nc-form-left-nav {
|
||
|
max-height: 100%;
|
||
|
}
|
||
|
|
||
|
.required > div > label + * {
|
||
|
//border: 1px solid red;
|
||
|
border-radius: 4px;
|
||
|
background: var(--v-backgroundColorDefault-base);
|
||
|
}
|
||
|
|
||
|
.nc-form-banner {
|
||
|
width: 100%;
|
||
|
height: 200px;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
border-top-left-radius: 4px;
|
||
|
border-top-right-radius: 4px;
|
||
|
padding-bottom: 100px;
|
||
|
|
||
|
.nc-form-logo {
|
||
|
border-top-left-radius: 4px;
|
||
|
border-top-right-radius: 4px;
|
||
|
height: 100px;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: flex-start;
|
||
|
width: 70%;
|
||
|
padding: 0 20px;
|
||
|
background: var(--v-backgroundColorDefault-base);
|
||
|
|
||
|
.nc-form-add-logo {
|
||
|
border-radius: 4px;
|
||
|
color: grey;
|
||
|
border: 2px dashed var(--v-backgroundColor-darken1);
|
||
|
padding: 15px 15px;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
<!--
|
||
|
/**
|
||
|
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||
|
*
|
||
|
* @author Naveen MR <oof1lab@gmail.com>
|
||
|
* @author Pranav C Balan <pranavxc@gmail.com>
|
||
|
*
|
||
|
* @license GNU AGPL version 3 or any later version
|
||
|
*
|
||
|
* This program is free software: you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU Affero General Public License as
|
||
|
* published by the Free Software Foundation, either version 3 of the
|
||
|
* License, or (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU Affero General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Affero General Public License
|
||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
*
|
||
|
*/
|
||
|
-->
|