Skip to content

Commit

Permalink
[#34] include copy icon in extension, merged issue/34
Browse files Browse the repository at this point in the history
  • Loading branch information
bjendres committed Apr 26, 2021
2 parents 4d4a35f + 6606237 commit a4ad411
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CRM/I3val/Form/Desktop.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ public function buildQuickForm() {
}
}

// add resources
$this->assign('i3val_icon_copy', E::url('resources/copy.png'));

// render activity form
try {
$handlers = $configuration->getHandlersForActivityType($this->activity['activity_type_id']);
Expand Down
Binary file added resources/copy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions templates/CRM/I3val/Handler/AddressUpdate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
<td style="vertical-align: middle;">{$fieldlabel}</td>
<td style="vertical-align: middle;">
{if $i3val_address_values.$fieldkey.original}
<img class="action-icon address-value-copy" value="{$i3val_address_values.$fieldkey.original}" src="{$config->resourceBase}i/copy.png" alt="{ts 1=$i3val_address_values.$fieldkey.original}Click to copy '%1' into the 'apply' column.{/ts}" title="{ts 1=$i3val_address_values.$fieldkey.original}Click to copy '%1' into the 'apply' column.{/ts}" />
<img class="action-icon address-value-copy" value="{$i3val_address_values.$fieldkey.original}" src="{$i3val_icon_copy}" alt="{ts 1=$i3val_address_values.$fieldkey.original}Click to copy '%1' into the 'apply' column.{/ts}" title="{ts 1=$i3val_address_values.$fieldkey.original}Click to copy '%1' into the 'apply' column.{/ts}" />
{/if}
{$i3val_address_values.$fieldkey.original}</td>
<td style="vertical-align: middle;">
{if $i3val_address_values.$fieldkey.submitted}
<img class="action-icon address-value-copy" value="{$i3val_address_values.$fieldkey.submitted}" src="{$config->resourceBase}i/copy.png" alt="{ts 1=$i3val_address_values.$fieldkey.submitted}Click to copy '%1' into the 'apply' column.{/ts}" title="{ts 1=$i3val_address_values.$fieldkey.submitted}Click to copy '%1' into the 'apply' column.{/ts}" />
<img class="action-icon address-value-copy" value="{$i3val_address_values.$fieldkey.submitted}" src="{$i3val_icon_copy}" alt="{ts 1=$i3val_address_values.$fieldkey.submitted}Click to copy '%1' into the 'apply' column.{/ts}" title="{ts 1=$i3val_address_values.$fieldkey.submitted}Click to copy '%1' into the 'apply' column.{/ts}" />
{/if}
{$i3val_address_values.$fieldkey.submitted}
</td>
<td class="i3val-address-current i3val-address-current-{$fieldkey}" style="vertical-align: middle;">
<img style="display: none;" class="action-icon address-value-copy" value="{$i3val_address_values.$fieldkey.current}" src="{$config->resourceBase}i/copy.png" alt="{ts 1=$i3val_address_values.$fieldkey.current}Click to copy '%1' into the 'apply' column.{/ts}" title="{ts 1=$i3val_address_values.$fieldkey.current}Click to copy '%1' into the 'apply' column.{/ts}" />
<img style="display: none;" class="action-icon address-value-copy" value="{$i3val_address_values.$fieldkey.current}" src="{$i3val_icon_copy}" alt="{ts 1=$i3val_address_values.$fieldkey.current}Click to copy '%1' into the 'apply' column.{/ts}" title="{ts 1=$i3val_address_values.$fieldkey.current}Click to copy '%1' into the 'apply' column.{/ts}" />
<span>{$i3val_address_values.$fieldkey.current}</span>
</td>
<td style="vertical-align: middle;" class="i3val-control">{$form.$input_field.html}</td>
Expand Down
6 changes: 3 additions & 3 deletions templates/CRM/I3val/Handler/EmailUpdate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
<td style="vertical-align: middle;">{$fieldlabel}</td>
<td style="vertical-align: middle;">
{if $i3val_email_values.$fieldkey.original}
<img class="action-icon phone-value-copy" value="{$i3val_email_values.$fieldkey.original}" src="{$config->resourceBase}i/copy.png" alt="{ts 1=$i3val_email_values.$fieldkey.original}Click to copy '%1' into the 'apply' column.{/ts}" title="{ts 1=$i3val_email_values.$fieldkey.original}Click to copy '%1' into the 'apply' column.{/ts}" />
<img class="action-icon phone-value-copy" value="{$i3val_email_values.$fieldkey.original}" src="{$i3val_icon_copy}" alt="{ts 1=$i3val_email_values.$fieldkey.original}Click to copy '%1' into the 'apply' column.{/ts}" title="{ts 1=$i3val_email_values.$fieldkey.original}Click to copy '%1' into the 'apply' column.{/ts}" />
{/if}
{$i3val_email_values.$fieldkey.original}
</td>
<td style="vertical-align: middle;">
{if $i3val_email_values.$fieldkey.submitted}
<img class="action-icon phone-value-copy" value="{$i3val_email_values.$fieldkey.submitted}" src="{$config->resourceBase}i/copy.png" alt="{ts 1=$i3val_email_values.$fieldkey.submitted}Click to copy '%1' into the 'apply' column.{/ts}" title="{ts 1=$i3val_email_values.$fieldkey.submitted}Click to copy '%1' into the 'apply' column.{/ts}" />
<img class="action-icon phone-value-copy" value="{$i3val_email_values.$fieldkey.submitted}" src="{$i3val_icon_copy}" alt="{ts 1=$i3val_email_values.$fieldkey.submitted}Click to copy '%1' into the 'apply' column.{/ts}" title="{ts 1=$i3val_email_values.$fieldkey.submitted}Click to copy '%1' into the 'apply' column.{/ts}" />
{/if}
{$i3val_email_values.$fieldkey.submitted}
</td>
<td style="vertical-align: middle;">
{if $i3val_email_values.$fieldkey.current}
<img class="action-icon phone-value-copy" value="{$i3val_email_values.$fieldkey.current}" src="{$config->resourceBase}i/copy.png" alt="{ts 1=$i3val_email_values.$fieldkey.current}Click to copy '%1' into the 'apply' column.{/ts}" title="{ts 1=$i3val_email_values.$fieldkey.current}Click to copy '%1' into the 'apply' column.{/ts}" />
<img class="action-icon phone-value-copy" value="{$i3val_email_values.$fieldkey.current}" src="{$i3val_icon_copy}" alt="{ts 1=$i3val_email_values.$fieldkey.current}Click to copy '%1' into the 'apply' column.{/ts}" title="{ts 1=$i3val_email_values.$fieldkey.current}Click to copy '%1' into the 'apply' column.{/ts}" />
{/if}
{$i3val_email_values.$fieldkey.current}
</td>
Expand Down
6 changes: 3 additions & 3 deletions templates/CRM/I3val/Handler/PhoneUpdate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
<td style="vertical-align: middle;">{$fieldlabel}</td>
<td style="vertical-align: middle;">
{if $i3val_phone_values.$fieldkey.original}
<img class="action-icon phone-value-copy" value="{$i3val_phone_values.$fieldkey.original}" src="{$config->resourceBase}i/copy.png" alt="{ts 1=$i3val_phone_values.$fieldkey.original}Click to copy '%1' into the 'apply' column.{/ts}" title="{ts 1=$i3val_phone_values.$fieldkey.original}Click to copy '%1' into the 'apply' column.{/ts}" />
<img class="action-icon phone-value-copy" value="{$i3val_phone_values.$fieldkey.original}" src="{$i3val_icon_copy}" alt="{ts 1=$i3val_phone_values.$fieldkey.original}Click to copy '%1' into the 'apply' column.{/ts}" title="{ts 1=$i3val_phone_values.$fieldkey.original}Click to copy '%1' into the 'apply' column.{/ts}" />
{/if}
{$i3val_phone_values.$fieldkey.original}
</td>
<td style="vertical-align: middle;">
{if $i3val_phone_values.$fieldkey.submitted}
<img class="action-icon phone-value-copy" value="{$i3val_phone_values.$fieldkey.submitted}" src="{$config->resourceBase}i/copy.png" alt="{ts 1=$i3val_phone_values.$fieldkey.submitted}Click to copy '%1' into the 'apply' column.{/ts}" title="{ts 1=$i3val_phone_values.$fieldkey.submitted}Click to copy '%1' into the 'apply' column.{/ts}" />
<img class="action-icon phone-value-copy" value="{$i3val_phone_values.$fieldkey.submitted}" src="{$i3val_icon_copy}" alt="{ts 1=$i3val_phone_values.$fieldkey.submitted}Click to copy '%1' into the 'apply' column.{/ts}" title="{ts 1=$i3val_phone_values.$fieldkey.submitted}Click to copy '%1' into the 'apply' column.{/ts}" />
{/if}
{$i3val_phone_values.$fieldkey.submitted}
</td>
<td style="vertical-align: middle;">
{if $i3val_phone_values.$fieldkey.current}
<img class="action-icon phone-value-copy" value="{$i3val_phone_values.$fieldkey.current}" src="{$config->resourceBase}i/copy.png" alt="{ts 1=$i3val_phone_values.$fieldkey.current}Click to copy '%1' into the 'apply' column.{/ts}" title="{ts 1=$i3val_phone_values.$fieldkey.current}Click to copy '%1' into the 'apply' column.{/ts}" />
<img class="action-icon phone-value-copy" value="{$i3val_phone_values.$fieldkey.current}" src="{$i3val_icon_copy}" alt="{ts 1=$i3val_phone_values.$fieldkey.current}Click to copy '%1' into the 'apply' column.{/ts}" title="{ts 1=$i3val_phone_values.$fieldkey.current}Click to copy '%1' into the 'apply' column.{/ts}" />
{/if}
{$i3val_phone_values.$fieldkey.current}
</td>
Expand Down

0 comments on commit a4ad411

Please sign in to comment.