diff options
author | Raimund Schlüßler <raimund.schluessler@googlemail.com> | 2016-08-12 21:01:16 +0300 |
---|---|---|
committer | Raimund Schlüßler <raimund.schluessler@googlemail.com> | 2016-08-26 23:16:35 +0300 |
commit | 8032b36fe56155cae9bb6d049d9e9c072ca42be8 (patch) | |
tree | 1a2a48419787282e1fddb18c6b46349c4ed621e5 /templates | |
parent | d758d2637500405fa29af0cea1feccb648b7848a (diff) |
Add confirmation directive
Diffstat (limited to 'templates')
-rw-r--r-- | templates/confirmation.php | 11 | ||||
-rw-r--r-- | templates/main.php | 6 |
2 files changed, 12 insertions, 5 deletions
diff --git a/templates/confirmation.php b/templates/confirmation.php new file mode 100644 index 00000000..adad6dcc --- /dev/null +++ b/templates/confirmation.php @@ -0,0 +1,11 @@ +<span class="confirmation-default" title="<?php p($l->t('Delete')); ?>"> + <img class="icon-delete svg" src="<?php p(image_path('core', 'actions/delete.svg'))?>"/> + <span><?php p($l->t('Delete')); ?></span> +</span> +<span class="confirmation-confirm"> + <span class="countdown">33 </span> + <img class="icon-delete svg" src="<?php p(image_path('core', 'actions/delete-white.svg'))?>"/> +</span> +<span class="confirmation-abort" title="<?php p($l->t('Cancel')); ?>"> + <img class="icon-close svg" src="<?php p(image_path('core', 'actions/close.svg'))?>"/> +</span> diff --git a/templates/main.php b/templates/main.php index 4cf8fb7c..b4aabd84 100644 --- a/templates/main.php +++ b/templates/main.php @@ -76,11 +76,7 @@ <span><?php p($l->t('Export')); ?></span> </a> </li> - <li> - <span title="<?php p($l->t('Delete')); ?>" ng-click="delete(calendar)"> - <img class="icon-delete svg" src="<?php p(image_path('core', 'actions/delete.svg'))?>"/> - <span><?php p($l->t('Delete')); ?></span> - </span> + <li confirmation="delete(calendar)" confirmation-message="deleteMessage(calendar)"> </li> </ul> </div> |