Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

info banner for expanded record, icon change

Ramesh Mane3fbf16a40d94
diff --git a/packages/nc-gui/components/smartsheet/expanded-form/index.vue b/packages/nc-gui/components/smartsheet/expanded-form/index.vue
index d861caed35..b55acf9079 100644
--- a/packages/nc-gui/components/smartsheet/expanded-form/index.vue
+++ b/packages/nc-gui/components/smartsheet/expanded-form/index.vue
@@ -1217,6 +1217,14 @@ export default {
<SmartsheetExpandedFormPresentorsDiscussion :is-unsaved-duplicated-record-exist="isUnsavedDuplicatedRecordExist" />
</template>
</div>
+ <div
+ v-if="templateMode || blueprintMode"
+ class="nc-expanded-form-template-notice flex items-center justify-center gap-2 px-4 py-1.5 border-t-1 border-nc-border-gray-medium bg-nc-bg-gray-extralight text-nc-content-gray-muted text-[11px] flex-shrink-0"
+ >
+ <GeneralIcon icon="info" class="flex-none w-3.5 h-3.5" />
+ <span v-if="templateMode">You are editing a record template. Changes here define default values for new records.</span>
+ <span v-else>You are editing a blueprint. A new record will be created from this data each time the template is used.</span>
+ </div>
</div>
</component>
diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/components/AddNewRowMenu.vue b/packages/nc-gui/components/smartsheet/grid/canvas/components/AddNewRowMenu.vue
index 9957e3972f..1ca0c92a6a 100644
--- a/packages/nc-gui/components/smartsheet/grid/canvas/components/AddNewRowMenu.vue
+++ b/packages/nc-gui/components/smartsheet/grid/canvas/components/AddNewRowMenu.vue
@@ -110,7 +110,7 @@ const handleUseTemplate = async (tmpl: any) => {
@click="handleUseTemplate(tmpl)"
>
<div class="flex items-center gap-2">
- <GeneralIcon icon="template" class="w-4 h-4" />
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="flex-none"><rect width="8" height="4" x="8" y="2" rx="1" ry="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/><path d="M9 12v-1h6v1"/><path d="M11 17h2"/><path d="M12 11v6"/></svg>
<span class="truncate flex-1">{{ tmpl.title }}</span>
</div>
</NcMenuItem>
@@ -120,7 +120,7 @@ const handleUseTemplate = async (tmpl: any) => {
<NcDivider />
<NcMenuItem class="nc-manage-templates" @click="onOpenTemplateManager?.()">
<div class="flex items-center gap-2">
- <GeneralIcon icon="template" class="w-4 h-4" />
+ <GeneralIcon icon="settings" class="w-4 h-4" />
<span>{{ $t('activity.manageTemplates') }}</span>
</div>
</NcMenuItem>
diff --git a/packages/nc-gui/components/smartsheet/toolbar/RecordTemplatesButton.vue b/packages/nc-gui/components/smartsheet/toolbar/RecordTemplatesButton.vue
index 2ab1afc210..b54dfdd8da 100644
--- a/packages/nc-gui/components/smartsheet/toolbar/RecordTemplatesButton.vue
+++ b/packages/nc-gui/components/smartsheet/toolbar/RecordTemplatesButton.vue
@@ -332,7 +332,7 @@ const customRow = (record: Record<string, any>) => ({
@click="openManager"
>
<div class="flex items-center gap-1 min-h-5">
- <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1" ry="1" /><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" /><path d="M9 12v-1h6v1" /><path d="M11 17h2" /><path d="M12 11v6" /></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1" ry="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/><path d="M9 12v-1h6v1"/><path d="M11 17h2"/><path d="M12 11v6"/></svg>
</div>
</NcButton>
</NcTooltip>
@@ -343,7 +343,7 @@ const customRow = (record: Record<string, any>) => ({
<!-- Header -->
<div class="flex items-center justify-between">
<div class="flex items-center gap-2 text-base font-semibold text-nc-content-gray">
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1" ry="1" /><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" /><path d="M9 12v-1h6v1" /><path d="M11 17h2" /><path d="M12 11v6" /></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1" ry="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/><path d="M9 12v-1h6v1"/><path d="M11 17h2"/><path d="M12 11v6"/></svg>
{{ $t('objects.recordTemplates') }}
</div>
<NcButton type="primary" size="small" @click="openTemplateForm()">