##// END OF EJS Templates
Warn user that subprojects are also deleted when deleting a project (#1111) and add a checkbox to confirm the deletion....
Jean-Philippe Lang -
r1344:76b92fb99975
parent child
Show More
@@ -1,14 +1,16
1 <h2><%=l(:label_confirmation)%></h2>
1 <h2><%=l(:label_confirmation)%></h2>
2 <div class="box">
2 <div class="warning">
3 <center>
3 <p><strong><%=h @project_to_destroy %></strong><br />
4 <p><strong><%=h @project_to_destroy.name %></strong><br />
4 <%=l(:text_project_destroy_confirmation)%>
5 <%=l(:text_project_destroy_confirmation)%></p>
6
5
6 <% if @project_to_destroy.children.any? %>
7 <br /><%= l(:text_subprojects_destroy_warning, content_tag('strong', h(@project_to_destroy.children.sort.collect{|p| p.to_s}.join(', ')))) %>
8 <% end %>
9 </p>
7 <p>
10 <p>
8 <% form_tag({:controller => 'projects', :action => 'destroy', :id => @project_to_destroy}) do %>
11 <% form_tag({:controller => 'projects', :action => 'destroy', :id => @project_to_destroy}) do %>
9 <%= hidden_field_tag "confirm", 1 %>
12 <label><%= check_box_tag 'confirm', 1 %> <%= l(:general_text_Yes) %></label>
10 <%= submit_tag l(:button_delete) %>
13 <%= submit_tag l(:button_delete) %>
11 <% end %>
14 <% end %>
12 </p>
15 </p>
13 </center>
14 </div>
16 </div>
@@ -617,3 +617,4 label_overall_activity: Цялостна дейност
617 setting_default_projects_public: Новите проекти са публични по подразбиране
617 setting_default_projects_public: Новите проекти са публични по подразбиране
618 error_scm_annotate: "Обектът не съществува или не може да бъде анотиран."
618 error_scm_annotate: "Обектът не съществува или не може да бъде анотиран."
619 label_planning: Планиране
619 label_planning: Планиране
620 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -622,3 +622,4 enumeration_doc_categories: Kategorie dokumentů
622 enumeration_activities: Aktivity (sledování času)
622 enumeration_activities: Aktivity (sledování času)
623 error_scm_annotate: "Položka neexistuje nebo nemůže být komentována."
623 error_scm_annotate: "Položka neexistuje nebo nemůže být komentována."
624 label_planning: Plánování
624 label_planning: Plánování
625 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -619,3 +619,4 label_overall_activity: Overordnet aktivitet
619 setting_default_projects_public: Nye projekter er offentlige som default
619 setting_default_projects_public: Nye projekter er offentlige som default
620 error_scm_annotate: "The entry does not exist or can not be annotated."
620 error_scm_annotate: "The entry does not exist or can not be annotated."
621 label_planning: Planlægning
621 label_planning: Planlægning
622 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -618,3 +618,4 default_activity_development: Entwicklung
618 enumeration_issue_priorities: Ticket-Prioritäten
618 enumeration_issue_priorities: Ticket-Prioritäten
619 enumeration_doc_categories: Dokumentenkategorien
619 enumeration_doc_categories: Dokumentenkategorien
620 enumeration_activities: Aktivitäten (Zeiterfassung)
620 enumeration_activities: Aktivitäten (Zeiterfassung)
621 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -557,6 +557,7 text_select_mail_notifications: Select actions for which email notifications sho
557 text_regexp_info: eg. ^[A-Z0-9]+$
557 text_regexp_info: eg. ^[A-Z0-9]+$
558 text_min_max_length_info: 0 means no restriction
558 text_min_max_length_info: 0 means no restriction
559 text_project_destroy_confirmation: Are you sure you want to delete this project and related data ?
559 text_project_destroy_confirmation: Are you sure you want to delete this project and related data ?
560 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
560 text_workflow_edit: Select a role and a tracker to edit the workflow
561 text_workflow_edit: Select a role and a tracker to edit the workflow
561 text_are_you_sure: Are you sure ?
562 text_are_you_sure: Are you sure ?
562 text_journal_changed: changed from %s to %s
563 text_journal_changed: changed from %s to %s
@@ -620,3 +620,4 label_overall_activity: Actividad global
620 setting_default_projects_public: Los proyectos nuevos son públicos por defecto
620 setting_default_projects_public: Los proyectos nuevos son públicos por defecto
621 error_scm_annotate: "No existe la entrada o no ha podido ser anotada"
621 error_scm_annotate: "No existe la entrada o no ha podido ser anotada"
622 label_planning: Planificación
622 label_planning: Planificación
623 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -617,3 +617,4 setting_default_projects_public: Uudet projektit ovat oletuksena julkisia
617 label_overall_activity: Kokonaishistoria
617 label_overall_activity: Kokonaishistoria
618 error_scm_annotate: "Merkintää ei ole tai siihen ei voi lisätä selityksiä."
618 error_scm_annotate: "Merkintää ei ole tai siihen ei voi lisätä selityksiä."
619 label_planning: Suunnittelu
619 label_planning: Suunnittelu
620 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -556,7 +556,8 status_locked: vérouillé
556 text_select_mail_notifications: Actions pour lesquelles une notification par e-mail est envoyée
556 text_select_mail_notifications: Actions pour lesquelles une notification par e-mail est envoyée
557 text_regexp_info: ex. ^[A-Z0-9]+$
557 text_regexp_info: ex. ^[A-Z0-9]+$
558 text_min_max_length_info: 0 pour aucune restriction
558 text_min_max_length_info: 0 pour aucune restriction
559 text_project_destroy_confirmation: Etes-vous sûr de vouloir supprimer ce projet et tout ce qui lui est rattaché ?
559 text_project_destroy_confirmation: Etes-vous sûr de vouloir supprimer ce projet et toutes ses données ?
560 text_subprojects_destroy_warning: 'Ses sous-projets: %s seront également supprimés.'
560 text_workflow_edit: Sélectionner un tracker et un rôle pour éditer le workflow
561 text_workflow_edit: Sélectionner un tracker et un rôle pour éditer le workflow
561 text_are_you_sure: Etes-vous sûr ?
562 text_are_you_sure: Etes-vous sûr ?
562 text_journal_changed: changé de %s à %s
563 text_journal_changed: changé de %s à %s
@@ -617,3 +617,4 label_overall_activity: פעילות כוללת
617 setting_default_projects_public: פרויקטים חדשים הינם פומביים כברירת מחדל
617 setting_default_projects_public: פרויקטים חדשים הינם פומביים כברירת מחדל
618 error_scm_annotate: "הכניסה לא קיימת או שלא ניתן לתאר אותה."
618 error_scm_annotate: "הכניסה לא קיימת או שלא ניתן לתאר אותה."
619 label_planning: תכנון
619 label_planning: תכנון
620 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -617,3 +617,4 label_overall_activity: Overall activity
617 setting_default_projects_public: New projects are public by default
617 setting_default_projects_public: New projects are public by default
618 error_scm_annotate: "The entry does not exist or can not be annotated."
618 error_scm_annotate: "The entry does not exist or can not be annotated."
619 label_planning: Planning
619 label_planning: Planning
620 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -618,3 +618,4 label_overall_activity: 全ての活動
618 setting_default_projects_public: デフォルトで新しいプロジェクトは公開にする
618 setting_default_projects_public: デフォルトで新しいプロジェクトは公開にする
619 error_scm_annotate: "エントリが存在しない、もしくはアノテートできません。"
619 error_scm_annotate: "エントリが存在しない、もしくはアノテートできません。"
620 label_planning: 計画
620 label_planning: 計画
621 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -617,3 +617,4 label_overall_activity: Overall activity
617 setting_default_projects_public: New projects are public by default
617 setting_default_projects_public: New projects are public by default
618 error_scm_annotate: "The entry does not exist or can not be annotated."
618 error_scm_annotate: "The entry does not exist or can not be annotated."
619 label_planning: Planning
619 label_planning: Planning
620 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -618,3 +618,4 label_overall_activity: Overall activity
618 setting_default_projects_public: New projects are public by default
618 setting_default_projects_public: New projects are public by default
619 error_scm_annotate: "The entry does not exist or can not be annotated."
619 error_scm_annotate: "The entry does not exist or can not be annotated."
620 label_planning: Planning
620 label_planning: Planning
621 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -618,3 +618,4 label_overall_activity: Overall activity
618 setting_default_projects_public: New projects are public by default
618 setting_default_projects_public: New projects are public by default
619 error_scm_annotate: "The entry does not exist or can not be annotated."
619 error_scm_annotate: "The entry does not exist or can not be annotated."
620 label_planning: Planning
620 label_planning: Planning
621 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -618,3 +618,4 default_activity_development: Utvikling
618 enumeration_issue_priorities: Sakssprioriteringer
618 enumeration_issue_priorities: Sakssprioriteringer
619 enumeration_doc_categories: Dokument-kategorier
619 enumeration_doc_categories: Dokument-kategorier
620 enumeration_activities: Aktiviteter (tidssporing)
620 enumeration_activities: Aktiviteter (tidssporing)
621 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -617,3 +617,4 label_overall_activity: Ogólna aktywność
617 setting_default_projects_public: Nowe projekty są domyślnie publiczne
617 setting_default_projects_public: Nowe projekty są domyślnie publiczne
618 error_scm_annotate: "Wpis nie istnieje lub nie można do niego dodawać adnotacji."
618 error_scm_annotate: "Wpis nie istnieje lub nie można do niego dodawać adnotacji."
619 label_planning: Planning
619 label_planning: Planning
620 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -617,3 +617,4 label_overall_activity: Overall activity
617 setting_default_projects_public: New projects are public by default
617 setting_default_projects_public: New projects are public by default
618 error_scm_annotate: "The entry does not exist or can not be annotated."
618 error_scm_annotate: "The entry does not exist or can not be annotated."
619 label_planning: Planning
619 label_planning: Planning
620 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -617,3 +617,4 label_overall_activity: Overall activity
617 setting_default_projects_public: New projects are public by default
617 setting_default_projects_public: New projects are public by default
618 error_scm_annotate: "The entry does not exist or can not be annotated."
618 error_scm_annotate: "The entry does not exist or can not be annotated."
619 label_planning: Planning
619 label_planning: Planning
620 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -617,3 +617,4 label_overall_activity: Overall activity
617 setting_default_projects_public: New projects are public by default
617 setting_default_projects_public: New projects are public by default
618 error_scm_annotate: "The entry does not exist or can not be annotated."
618 error_scm_annotate: "The entry does not exist or can not be annotated."
619 label_planning: Planning
619 label_planning: Planning
620 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -621,3 +621,4 label_overall_activity: Сводная активность
621 setting_default_projects_public: Новые проекты являются публичными
621 setting_default_projects_public: Новые проекты являются публичными
622 error_scm_annotate: "Данные отсутствуют или не могут быть подписаны."
622 error_scm_annotate: "Данные отсутствуют или не могут быть подписаны."
623 label_planning: Планирование
623 label_planning: Планирование
624 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -618,3 +618,4 label_overall_activity: Overall activity
618 setting_default_projects_public: New projects are public by default
618 setting_default_projects_public: New projects are public by default
619 error_scm_annotate: "The entry does not exist or can not be annotated."
619 error_scm_annotate: "The entry does not exist or can not be annotated."
620 label_planning: Planning
620 label_planning: Planning
621 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -618,3 +618,4 label_overall_activity: Overall activity
618 setting_default_projects_public: New projects are public by default
618 setting_default_projects_public: New projects are public by default
619 error_scm_annotate: "The entry does not exist or can not be annotated."
619 error_scm_annotate: "The entry does not exist or can not be annotated."
620 label_planning: Planning
620 label_planning: Planning
621 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -619,3 +619,4 label_overall_activity: Overall activity
619 setting_default_projects_public: New projects are public by default
619 setting_default_projects_public: New projects are public by default
620 error_scm_annotate: "The entry does not exist or can not be annotated."
620 error_scm_annotate: "The entry does not exist or can not be annotated."
621 label_planning: Planning
621 label_planning: Planning
622 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -618,3 +618,4 default_activity_development: 開發
618 enumeration_issue_priorities: 項目優先權
618 enumeration_issue_priorities: 項目優先權
619 enumeration_doc_categories: 文件分類
619 enumeration_doc_categories: 文件分類
620 enumeration_activities: 活動 (時間追蹤)
620 enumeration_activities: 活動 (時間追蹤)
621 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -618,3 +618,4 default_activity_development: 开发
618 enumeration_issue_priorities: 问题优先级
618 enumeration_issue_priorities: 问题优先级
619 enumeration_doc_categories: 文档类别
619 enumeration_doc_categories: 文档类别
620 enumeration_activities: 活动(时间跟踪)
620 enumeration_activities: 活动(时间跟踪)
621 text_subprojects_destroy_warning: 'Its subproject(s): %s will be also deleted.'
@@ -259,7 +259,7 p.other-formats { text-align: right; font-size:0.9em; color: #666; }
259 a.feed { background: url(../images/feed.png) no-repeat 1px 50%; padding: 2px 0px 3px 16px; }
259 a.feed { background: url(../images/feed.png) no-repeat 1px 50%; padding: 2px 0px 3px 16px; }
260
260
261 /***** Flash & error messages ****/
261 /***** Flash & error messages ****/
262 #errorExplanation, div.flash, .nodata {
262 #errorExplanation, div.flash, .nodata, .warning {
263 padding: 4px 4px 4px 30px;
263 padding: 4px 4px 4px 30px;
264 margin-bottom: 12px;
264 margin-bottom: 12px;
265 font-size: 1.1em;
265 font-size: 1.1em;
@@ -282,7 +282,7 div.flash.notice {
282 color: #005f00;
282 color: #005f00;
283 }
283 }
284
284
285 .nodata {
285 .nodata, .warning {
286 text-align: center;
286 text-align: center;
287 background-color: #FFEBC1;
287 background-color: #FFEBC1;
288 border-color: #FDBF3B;
288 border-color: #FDBF3B;
General Comments 0
You need to be logged in to leave comments. Login now