From f479111025e02b8b751686fc2919e03981368552 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 4 Oct 2009 21:00:24 +0000 Subject: Bug 302542: Implement the ability to delete data sets (series) in New Charts - Patch by Frédéric Buclin r=gerv a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/global/messages.html.tmpl | 9 +++- template/en/default/reports/create-chart.html.tmpl | 6 ++- .../en/default/reports/delete-series.html.tmpl | 59 ++++++++++++++++++++++ 3 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 template/en/default/reports/delete-series.html.tmpl (limited to 'template/en') diff --git a/template/en/default/global/messages.html.tmpl b/template/en/default/global/messages.html.tmpl index 5c5002fc7..edbf080de 100644 --- a/template/en/default/global/messages.html.tmpl +++ b/template/en/default/global/messages.html.tmpl @@ -742,7 +742,14 @@ has been created. Note that you may need to wait up to [%+ series.frequency * 2 %] days before there will be enough data for a chart of this series to be produced. - + + [% ELSIF message_tag == "series_deleted" %] + [% title = "Series Deleted" %] + The series [% series.category FILTER html %] / + [%+ series.subcategory FILTER html %] / + [%+ series.name FILTER html %] + has been deleted. + [% ELSIF message_tag == "shutdown" %] [% title = "$terms.Bugzilla is Down" %] [% Param("shutdownhtml") %] diff --git a/template/en/default/reports/create-chart.html.tmpl b/template/en/default/reports/create-chart.html.tmpl index 0466b11c1..e2b6090fe 100644 --- a/template/en/default/reports/create-chart.html.tmpl +++ b/template/en/default/reports/create-chart.html.tmpl @@ -120,7 +120,7 @@ function subcatSelected() {

List Of Data Sets To Plot

- [% IF chart.lines.size > 0 %] + [% IF chart.lines.size %] @@ -173,9 +173,11 @@ function subcatSelected() {
Select - [% IF user.id == series.creator OR user.in_group("admin") %] + [% IF user.id == series.creator_id OR user.in_group("admin") %] Edit | + Delete | [% END %] + #%] + +[% series_name = BLOCK %] + [% series.category FILTER html %] / + [%+ series.subcategory FILTER html %] / + [%+ series.name FILTER html %] +[% END %] + +[% PROCESS global/header.html.tmpl title = "Delete Series" + style_urls = ['skins/standard/admin.css'] %] + +

+ You are going to completely remove the [% series_name FILTER none %] series + from the database. All data related to this series will be permanently deleted. +

+

+ [% IF series.creator %] + This series has been created by + [% series.creator.email FILTER html %] + [% ELSE %] + This series has been automatically created by [% terms.Bugzilla %] + [% END %] + + [% IF series.public %] + and is public. + [% ELSIF series.creator %] + and is only visible by this user. + [% ELSE %] + and cannot be displayed by anybody. + [% END %] +

+ +

Are you sure you want to delete this series?

+ +

+ Yes, delete | + No, go back to the charts page +

+ +[% PROCESS global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b