Skip to content

Commit

Permalink
Dev: renamed "copy" button to "extend"
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Oct 18, 2017
1 parent 50fafd9 commit 448adfe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/views/admin/templates/templateeditorbar_view.php
Expand Up @@ -115,9 +115,9 @@ function copyprompt(text, defvalue, copydirectory, action)
<!-- Copy -->
<?php if(Permission::model()->hasGlobalPermission('templates','create')):?>
<?php if (is_writable($usertemplaterootdir)):?>
<a class="btn btn-default" href="#" role="button" onclick="javascript: copyprompt('<?php eT("Please enter the name for the copied template:"); ?>', '<?php echo gT("copy_of_")."$templatename"; ?>', '<?php echo $templatename; ?>', 'copy')">
<a class="btn btn-default" href="#" role="button" onclick="javascript: copyprompt('<?php eT("Please enter the name for the new template:"); ?>', '<?php echo gT("extends_")."$templatename"; ?>', '<?php echo $templatename; ?>', 'copy')">
<span class="icon-copy text-success"></span>
<?php eT("Copy"); ?>
<?php eT("Extend"); ?>
</a>
<?php else: ?>
<span class="btntooltip" data-toggle="tooltip" data-placement="bottom" title="<?php eT("The template upload directory doesn't exist or is not writable."); ?>" style="display: inline-block" data-toggle="tooltip" data-placement="bottom">
Expand Down Expand Up @@ -283,8 +283,8 @@ function copyprompt(text, defvalue, copydirectory, action)
<?php eT('Note: This is a standard template.');?>
</strong>
<?php
printf(gT('If you want to edit it %s please copy it first%s.'),"<a href='#' title=\"".gT("Copy Template")."\""
." onclick=\"javascript: copyprompt('".gT("Please enter the name for the copied template:")."', '".gT("copy_of_")."$templatename', '$templatename', 'copy')\">",'</a>');
printf(gT('If you want to edit it %s please extend it first%s.'),"<a href='#' title=\"".gT("Extend Template")."\""
." onclick=\"javascript: copyprompt('".gT("Please enter the name for the new template:")."', '".gT("extends_")."$templatename', '$templatename', 'copy')\">",'</a>');
?>
</div>
<?php endif;?>
Expand Down

0 comments on commit 448adfe

Please sign in to comment.