Files

24 lines
654 B
Markdown

<%*
let title = await tp.system.prompt("Title");
let supplier = await tp.system.prompt("Supplier");
let locall = await tp.system.prompt("Local Link");
let remotel = await tp.system.prompt("Remote Link");
-%>
---
Type: Resource
Resource Type: Hardware
Project: <% tp.file.folder(true).split('/')[1] %>
Task: <% tp.file.folder(false) %>
Publisher: <% supplier %>
Title: <% title %>
Local File Link: <% locall %>
Remote File Link: <% remotel %>
Description:
Status:
Classification:
Reviewed:
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %>
---
<%* await tp.file.rename("Resource⸬Hardware-" + tp.date.now("DDMMYYYYHHMMSS")) %>
# <% num %> - <% title %>