dev-core#565: Make subject field of Note, inline editable in contact summary page
authorMonish Deb <deb.monish@gmail.com>
Fri, 30 Nov 2018 12:35:54 +0000 (18:05 +0530)
committerMonish Deb <deb.monish@gmail.com>
Fri, 30 Nov 2018 12:35:54 +0000 (18:05 +0530)
templates/CRM/Contact/Page/View/Note.tpl

index 8875c3f2691fef2cc0b937589057a0e074b71a1e..aece6998914c5e06688d4ecddd0e0fee9ac8652a 100644 (file)
         </thead>
 
         {foreach from=$notes item=note}
-        <tr id="cnote_{$note.id}" class="{cycle values="odd-row,even-row"} crm-note">
+        <tr id="Note-{$note.id}" data-action="setvalue" class="{cycle values="odd-row,even-row"} crm-note crm-entity">
             <td class="crm-note-comment">
                 {if $note.comment_count}
                     <span id="{$note.id}_show" style="display:block" class="icon_comments_show">
                   <a class="crm-popup" href="{crmURL p='civicrm/contact/view/note' q="action=view&selectedChild=note&reset=1&cid=`$contactId`&id=`$note.id`"}">{ts}(more){/ts}</a>
                 {/if}
             </td>
-            <td class="crm-note-subject">{$note.subject}</td>
+            <td class="crm-note-subject crmf-subject crm-editable">{$note.subject}</td>
             <td class="crm-note-modified_date" data-order="{$note.modified_date}">{$note.modified_date|crmDate}</td>
             <td class="crm-note-createdBy">
                 <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$note.contact_id`"}">{$note.createdBy}</a>