diff options
| author | 2014-09-24 13:56:40 +0200 | |
|---|---|---|
| committer | 2014-09-24 13:56:40 +0200 | |
| commit | bcb1e3750a9eee51070d602cc77def06f7f071c9 (patch) | |
| tree | 9af9bab0dcf0d3a6f45491631b17053c088ffe3b /app/views/configure | |
| parent | 17f686095ddebe1a7c94fe665eddfdfef9696015 (diff) | |
More explicit message when deleting feeds or cats
Introduce "data-str-confirm" to override default message for confirm actions.
Fix https://github.com/marienfressinaud/FreshRSS/issues/625
Diffstat (limited to 'app/views/configure')
| -rw-r--r-- | app/views/configure/categorize.phtml | 5 | ||||
| -rw-r--r-- | app/views/configure/feed.phtml | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/app/views/configure/categorize.phtml b/app/views/configure/categorize.phtml index 2f0e554ca..23d1c9fa1 100644 --- a/app/views/configure/categorize.phtml +++ b/app/views/configure/categorize.phtml @@ -21,7 +21,10 @@ <a class="btn" href="<?php echo _url('index', 'index', 'get', 'c_' . $cat->id ()); ?>"> <?php echo _i('link'); ?> </a> - <button type="submit" class="btn btn-attention confirm" formaction="<?php echo _url ('feed', 'delete', 'id', $cat->id (), 'type', 'category'); ?>"><?php echo Minz_Translate::t ('ask_empty'); ?></button> + <button formaction="<?php echo _url('feed', 'delete', 'id', $cat->id (), 'type', 'category'); ?>" + class="btn btn-attention confirm" + data-str-confirm="<?php echo _t('confirm_action_feed_cat'); ?>" + type="submit"><?php echo _t('ask_empty'); ?></button> <?php } ?> </div> (<?php echo Minz_Translate::t ('number_feeds', $cat->nbFeed ()); ?>) diff --git a/app/views/configure/feed.phtml b/app/views/configure/feed.phtml index 0959652c2..e96a28739 100644 --- a/app/views/configure/feed.phtml +++ b/app/views/configure/feed.phtml @@ -79,8 +79,11 @@ </div> <div class="form-group form-actions"> <div class="group-controls"> - <button class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button> - <button class="btn btn-attention confirm" formmethod="post" formaction="<?php echo Minz_Url::display (array ('c' => 'feed', 'a' => 'delete', 'params' => array ('id' => $this->flux->id ()))); ?>"><?php echo Minz_Translate::t ('delete'); ?></button> + <button class="btn btn-important"><?php echo _t('save'); ?></button> + <button class="btn btn-attention confirm" + data-str-confirm="<?php echo _t('confirm_action_feed_cat'); ?>" + formaction="<?php echo _url('feed', 'delete', 'id', $this->flux->id ()); ?>" + formmethod="post"><?php echo _t('delete'); ?></button> </div> </div> |
