π¦ All Templates
// Template Index - DataviewJS renders template cards
console.log('TemplateIndex: START');
// Create the grid container inside dv.container
const grid = dv.container.querySelector('#template-index-grid');
if (!grid) {
const newGrid = document.createElement('div');
newGrid.id = 'template-index-grid';
newGrid.className = 'template-index-grid';
dv.container.appendChild(newGrid);
}
const finalGrid = dv.container.querySelector('#template-index-grid');
console.log('TemplateIndex: grid found =', !!finalGrid);
const templates = [
{
id: 'daily-log',
icon: 'π',
name: 'Daily Log',
desc: 'Daily site report with shift, manpower, weather, progress & issues',
frontmatter: ['project', 'date', 'day_number', 'weather', 'temperature_high', 'temperature_low', 'rainfall_mm', 'shift', 'superintendent', 'safety_officer', 'materials_engineer', 'manpower_total'],
templateFile: 'Daily Log.md',
className: 'template-daily-log',
tags: ['daily-log', 'construction', 'philippines'],
folder: '03_Construction/Daily Logs/',
standards: 'DPWH Daily Accomplishment Report'
},
{
id: 'construction-logbook',
icon: 'π',
name: 'Construction Logbook',
desc: 'Comprehensive daily construction record per PD 1096 / DPWH standard',
frontmatter: ['project', 'logbook_no', 'date_started', 'date_completed', 'materials_engineer', 'resident_engineer', 'contractor', 'contract_no', 'location'],
templateFile: 'Construction Logbook.md',
className: 'template-construction-logbook',
tags: ['logbook', 'dpwh', 'philippines'],
folder: '03_Construction/Daily Logs/',
standards: 'PD 1096, DPWH Blue Book'
},
{
id: 'rfi-log',
icon: 'β',
name: 'RFI Log',
desc: 'Request for Information β track clarification requests with responses',
frontmatter: ['project', 'rfi_no', 'date', 'discipline', 'subject', 'location', 'priority', 'status', 'raised_by', 'assigned_to'],
templateFile: 'RFI Log.md',
className: 'template-rfi-log',
tags: ['rfi', 'construction', 'philippines'],
folder: '03_Construction/',
standards: 'DPWH Communication Protocol'
},
{
id: 'ncr-register',
icon: 'π΄',
name: 'NCR Register',
desc: 'Non-Conformance Report β log defects, root cause & corrective actions',
frontmatter: ['project', 'ncr_no', 'date', 'location', 'description', 'discipline', 'severity', 'root_cause', 'corrective_action', 'status'],
templateFile: 'NCR Register.md',
className: 'template-ncr-register',
tags: ['ncr', 'qa-qc', 'philippines'],
folder: '04_QA_QC/',
standards: 'ISO 9001, DPWH QC Guidelines'
},
{
id: 'permit-tracker',
icon: 'π',
name: 'Permit Tracker',
desc: 'Building permits, occupancy, fire safety, environmental compliance',
frontmatter: ['project', 'permit_type', 'permit_no', 'status', 'application_date', 'approval_date', 'expiry_date', 'fee_php', 'authority'],
templateFile: 'Permit Tracker.md',
className: 'template-permit-tracker',
tags: ['permit', 'philippines'],
folder: '05_Permits/',
standards: 'PD 1096, RA 9514, Local OBO'
},
{
id: 'submittal-log',
icon: 'π€',
name: 'Submittal Log',
desc: 'Material submittals, shop drawings, samples tracking with approval workflow',
frontmatter: ['project', 'submittal_no', 'date', 'discipline', 'title', 'spec_section', 'submitted_by', 'status', 'reviewer', 'due_date'],
templateFile: 'Submittal Log.md',
className: 'template-submittal-log',
tags: ['submittal', 'construction', 'philippines'],
folder: '03_Construction/',
standards: 'DPWH Submittal Procedure'
},
{
id: 'drawing-register',
icon: 'π',
name: 'Drawing Register',
desc: 'Drawing log with revision control, approval status & distribution list',
frontmatter: ['project', 'drawing_no', 'rev', 'title', 'discipline', 'scale', 'sheet_size', 'status', 'approved_by', 'date_approved'],
templateFile: 'Drawing Register.md',
className: 'template-drawing-register',
tags: ['drawing', 'design', 'philippines'],
folder: '01_Design/',
standards: 'ISO 19650, DPWH Drawing Standards'
},
{
id: 'specifications',
icon: 'π',
name: 'Specifications',
desc: 'Technical specifications per DPWH Blue Book / PNS standards (CSI 01-28)',
frontmatter: ['project', 'spec_section', 'title', 'version', 'status', 'authority', 'standard_ref'],
templateFile: 'Specifications.md',
className: 'template-specifications',
tags: ['specifications', 'design', 'philippines'],
folder: '01_Design/',
standards: 'DPWH Blue Book, PNS, NSCP'
},
{
id: 'meeting-minutes',
icon: 'π',
name: 'Meeting Minutes',
desc: 'Structured minutes with action items, decisions & responsibility assignment',
frontmatter: ['project', 'meeting_type', 'date', 'time', 'location', 'chair', 'attendees', 'distribution'],
templateFile: 'Meeting Minutes.md',
className: 'template-meeting-minutes',
tags: ['meeting', 'management', 'philippines'],
folder: '02_Management/',
standards: 'DPWH Meeting Protocol'
},
{
id: 'correspondence-log',
icon: 'π',
name: 'Correspondence Log',
desc: 'Site instructions, verbal instructions, letters, variation orders & correspondence tracking',
frontmatter: ['project', 'correspondence_number', 'date', 'type', 'subject', 'from', 'to', 'cc', 'discipline', 'status', 'responsible_party', 'due_date'],
templateFile: 'Correspondence Log.md',
className: 'template-correspondence-log',
tags: ['correspondence', 'log', 'philippines'],
folder: '02_Management/',
standards: 'DPWH Communication Protocol'
},
{
id: 'project-charter',
icon: 'ποΈ',
name: 'Project Charter',
desc: 'Project initiation: scope, budget, team, timeline, permit matrix, estimates',
frontmatter: ['project', 'project_name', 'client', 'location', 'contract_value_php', 'contract_duration_days', 'start_date', 'target_completion'],
templateFile: 'Project Charter.md',
className: 'template-project-charter',
tags: ['project', 'charter', 'philippines'],
folder: '01_Project_Setup/',
standards: 'DPWH Project Requirements, PMBOK'
},
];
// Render template cards
function renderTemplates() {
finalGrid.innerHTML = '';
templates.forEach(t => {
const card = document.createElement('div');
card.className = 'template-index-card ' + t.className;
// Build frontmatter display
const fmItems = t.frontmatter.slice(0, 6).map(f => `<code>${f}</code>`).join(', ');
const fmMore = t.frontmatter.length > 6 ? ` +${t.frontmatter.length - 6} more` : '';
card.innerHTML = `
<div class="template-index-header">
<span class="template-index-icon">${t.icon}</span>
<span class="template-index-name">${t.name}</span>
</div>
<p class="template-index-desc">${t.desc}</p>
<div class="template-index-meta">
<div class="meta-row">
<span class="meta-label">π Target Folder</span>
<span class="meta-value">${t.folder}</span>
</div>
<div class="meta-row">
<span class="meta-label">π Frontmatter</span>
<span class="meta-value">${fmItems}${fmMore}</span>
</div>
<div class="meta-row">
<span class="meta-label">π Standards</span>
<span class="meta-value">${t.standards}</span>
</div>
<div class="meta-row">
<span class="meta-label">π·οΈ Tags</span>
<span class="meta-value">${t.tags.map(tag => `<span class="tag tag-inline">${tag}</span>`).join(' ')}</span>
</div>
</div>
<div class="template-index-actions">
<a class="template-index-btn primary" href="obsidian://actions-uri/note/create?file=${encodeURIComponent(t.name + ' Entry')}&apply=templater&template-file=00_Templates/${encodeURIComponent(t.templateFile)}">
π± Create via Mobile Capture
</a>
<a class="template-index-btn secondary" href="[[00_Templates/${t.templateFile.replace('.md', '')}|View Template]]">
ποΈ View Source
</a>
</div>
`;
finalGrid.appendChild(card);
});
}
renderTemplates();
console.log('TemplateIndex: END');π± Mobile Capture
Quickest way to create notes: Use Mobile Capture β select project, tap template, done.
π Template Files in Vault
| File | Description |
|---|---|
00_Templates/Daily Log.md | Daily site report |
00_Templates/Construction Logbook.md | DPWH-format logbook |
00_Templates/RFI Log.md | Request for Information |
00_Templates/NCR Register.md | Non-Conformance Report |
00_Templates/Permit Tracker.md | Permit tracking |
00_Templates/Submittal Log.md | Submittal tracking |
00_Templates/Drawing Register.md | Drawing revision control |
00_Templates/Specifications.md | Technical specs (CSI 01-28) |
00_Templates/Meeting Minutes.md | Meeting documentation |
00_Templates/Correspondence Log.md | Site instructions & correspondence |
00_Templates/Project Charter.md | Project initiation |
Last updated: 2026-11-29 PHT | β Back to Mobile Capture | Home