瀏覽代碼

added note_template_section_template to tree

Josh 4 年之前
父節點
當前提交
2e1b9c3e57

+ 1 - 1
generatecv/tree.txt

@@ -1131,7 +1131,7 @@ ADMIN
                 id=note_template_section_template.note_template_id=>/note_template_section_templates/view/UID
                 !inc:@uid,section_template_id
                 !qry:section_templates:SELECT id, title FROM section_template
-                #!col:section_template_id:Section Template:~section_templates:title:id,=,$section_template_id:all
+                !col:section_template_id:Section Template:~section_templates:title:id,=,$$section_template_id:all
                 add_new:note_template_section_template:create
                     noteTemplateUID:hidden=uid
                     sectionTemplateUID:record:section_template:uid,title

+ 2 - 2
resources/views/admin/note_templates_SINGLE/SUB_note_template_section_templates.blade.php

@@ -15,14 +15,14 @@
                 <thead>
                 <tr>
                     <th>&nbsp;</th>
-<th>Section Template Id</th>
+<th>Section Template</th>
                 </tr>
                 </thead>
                 <tbody>
                 @foreach($subRecords as $subRecord)
                     <tr>
                         <td><a href="/note_template_section_templates/view/{{ $subRecord->uid }}"><i class="fas fa-share-square"></i></a></td>
-<td><?= $subRecord->section_template_id ?></td>
+<td><?= value_from_rs($result_section_templates, 'title', [['id', '=', $subRecord->section_template_id], ], 'all'); ?></td>
                     </tr>
                 @endforeach
                 </tbody>

+ 1 - 1
storage/sections/test1/summary.php

@@ -1,3 +1,3 @@
 <div class="p-5" style="background-color:<?= $newContentData['favoriteColor']; ?>; ">
     <h1><?= $newContentData['nickname']; ?></h1>
-</div>
+</div>