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/reports/create-chart.html.tmpl | 6 ++- .../en/default/reports/delete-series.html.tmpl | 59 ++++++++++++++++++++++ 2 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 template/en/default/reports/delete-series.html.tmpl (limited to 'template/en/default/reports') 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