public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/gentoo-bugzilla:bugstest commit in: template/en/default/bug/process/, template/en/default/list/, ...
@ 2018-09-30  9:06 Michał Górny
  0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2018-09-30  9:06 UTC (permalink / raw
  To: gentoo-commits

commit:     285857e7c7800290963d901fa443d02d0bb9ad15
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 30 09:06:40 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Sep 30 09:06:40 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-bugzilla.git/commit/?id=285857e7

Try hiding 'version' field

Bug: https://bugs.gentoo.org/620048
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 template/en/default/bug/create/create.html.tmpl         | 17 ++---------------
 template/en/default/bug/edit.html.tmpl                  |  7 -------
 template/en/default/bug/field-help.none.tmpl            |  4 ----
 .../en/default/bug/process/verify-new-product.html.tmpl | 13 -------------
 template/en/default/list/edit-multiple.html.tmpl        |  7 -------
 5 files changed, 2 insertions(+), 46 deletions(-)

diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl
index 3e25e9c29..e7f2b2aed 100644
--- a/template/en/default/bug/create/create.html.tmpl
+++ b/template/en/default/bug/create/create.html.tmpl
@@ -82,6 +82,8 @@ TUI_hide_default('attachment_text_field');
       onsubmit="return validateEnterBug(this)">
 <input type="hidden" name="product" value="[% product.name FILTER html %]">
 <input type="hidden" name="token" value="[% token FILTER html %]">
+<input type="hidden" name="version"
+         value="[% default.version FILTER html %]">
 
 <table>
 <tbody>
@@ -184,21 +186,6 @@ TUI_hide_default('attachment_text_field');
   </tr>
 
   <tr>
-    [% INCLUDE "bug/field-label.html.tmpl"
-      field = bug_fields.version editable = 1 rowspan = 4
-    %]
-    <td rowspan="4">
-      <select name="version" id="version" size="5" aria-required="true"
-              class="required">
-        [%- FOREACH v = version %]
-          [% NEXT IF NOT v.is_active %]
-          <option value="[% v.name FILTER html %]"
-            [% ' selected="selected"' IF v.name == default.version %]>[% v.name FILTER html -%]
-          </option>
-        [%- END %]
-      </select>
-    </td>
-
     [% INCLUDE bug/field.html.tmpl
       bug = default, field = bug_fields.bug_severity, editable = 1, 
       value = default.bug_severity %]

diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index 29387b301..dcadb89d1 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -260,13 +260,6 @@
           editable = bug.check_can_change_field('component', 0, 1)
       %]
     </tr>
-    <tr>
-      [% INCLUDE "bug/field-label.html.tmpl"
-          field = bug_fields.version
-          editable = bug.check_can_change_field('version', 0, 1) %]
-
-      [% PROCESS select selname => "version" %]
-    </tr>
     [%############%]    
     [%# PLATFORM #%]
     [%############%]    

diff --git a/template/en/default/bug/field-help.none.tmpl b/template/en/default/bug/field-help.none.tmpl
index 2b6096547..af6c6ac96 100644
--- a/template/en/default/bug/field-help.none.tmpl
+++ b/template/en/default/bug/field-help.none.tmpl
@@ -152,10 +152,6 @@ target_milestone =>
    "The $vars.field_descs.target_milestone field is used to define when the"
    _ " engineer the $terms.bug is assigned to expects to fix it.",
 
-version =>
-  "The version field defines the version of the software the"
-  _ " $terms.bug was found in.",
-
 votes =>
   "Some $terms.bugs can be voted for, and you can limit your search to"
   _ " $terms.bugs with more than a certain number of votes.",

diff --git a/template/en/default/bug/process/verify-new-product.html.tmpl b/template/en/default/bug/process/verify-new-product.html.tmpl
index c562bf54d..affd6b674 100644
--- a/template/en/default/bug/process/verify-new-product.html.tmpl
+++ b/template/en/default/bug/process/verify-new-product.html.tmpl
@@ -59,19 +59,6 @@
 
 <table>
   <tr>
-    <td>
-      <b>Version:</b><br>
-      [% IF versions.size == 1 %]
-        [% SET default_version = versions.0 %]
-      [% ELSE %]
-        [% SET default_version = defaults.version %]
-      [% END %]
-      [% PROCESS "global/select-menu.html.tmpl" 
-                 name="version"
-                 options=versions
-                 default=default_version
-                 size=10 %]
-    </td>
     <td>
       <b>Component:</b><br>
       [% IF components.size == 1 %]

diff --git a/template/en/default/list/edit-multiple.html.tmpl b/template/en/default/list/edit-multiple.html.tmpl
index e581f0892..878f9954b 100644
--- a/template/en/default/list/edit-multiple.html.tmpl
+++ b/template/en/default/list/edit-multiple.html.tmpl
@@ -61,13 +61,6 @@
        %]
     </td>
 
-    <th><label for="version">Version:</label></th>
-    <td>
-      [% PROCESS selectmenu menuname = "version"
-                            menuitems = versions
-                            property = "" %]
-    </td>
-
   </tr>
   <tr>
 


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-30  9:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-30  9:06 [gentoo-commits] proj/gentoo-bugzilla:bugstest commit in: template/en/default/bug/process/, template/en/default/list/, Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox