pagermon
pagermon copied to clipboard
add a field to capcode creation /edition
Add a field on the capcode alias creation/edit page to place a comment.
Examples : "validated on 01 janv 21" or " also linked with capcode xxx" or " owner is john Doe".
A checkbox or another sign, on the main page, to inform/remember that a comment does exist on this capcode/alias.
Thanks !
The comment field is added easily enough, The display on the main page is probably a bigger discussion. something for the future
The comment field is added easily enough, The display on the main page is probably a bigger discussion. something for the future
on the alias template, replace
<td class="expand clickable-td" ng-click="messageDetail(alias.id);" style="color: Maroon;">{{alias.alias || ''}}</td>
with
<td class="expand clickable-td" ng-click="messageDetail(alias.id);" style="color: Maroon;" title="{{alias.comment}}">{{alias.alias || ''}}</td>
obviously 'comment' column has to exist in the capcodes table. renders this on hover:
You could add the same way in main page, or as part of popover template, but would have to reference an extra column in messages. that could get messy. if all you wanted was a checkbox you could have a boolean "hascomment" column i guess
Hello, More than one year later, I see this answer ... Thanks, I will test
With "main page", do you refer to the alias list or the message list?
With "main page", do you refer to the alias list or the message list?
Im going to be honest. I dont even remember writing this and would probably do it differently now 😂