]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 464187: Make the text inputs in the show_bug edit form grow with the window
authormkanat%bugzilla.org <>
Thu, 12 Feb 2009 19:04:53 +0000 (19:04 +0000)
committermkanat%bugzilla.org <>
Thu, 12 Feb 2009 19:04:53 +0000 (19:04 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=pyrzak, a=mkanat

skins/standard/show_bug.css
template/en/default/bug/edit.html.tmpl
template/en/default/bug/field.html.tmpl

index 17ce9afd028781b783ea8af717ef553c86ff0489..3a91e8c7b4b7d278949e2fc62987142cdf17b792 100644 (file)
@@ -7,8 +7,30 @@
     font-weight: bold;
 }
 
+.bz_bug .edit_form {
+  width: 100%;
+}
+.bz_bug .edit_form table {
+  width: 100%;
+}
+.bz_bug .edit_form .text_input {
+  width: 100%;
+  min-width: 25em;
+}
+.bz_bug #alias {
+    min-width: 0;
+    width: 10em;
+}
+
+.flags_label {
+    text-align: left;
+}
+table#flags {
+    width: auto;
+}
+
 .bz_column_spacer {
-    width: 2em;
+    width: 0.5em;
 }
 
 .related_actions {
index f097d0616c64aa5cd5b3b38b1c23a679545bff09..b3b5c8d42400e7502b824d99fde2f677aa3dc854 100644 (file)
   <input type="hidden" name="token" value="[% issue_hash_token([bug.id, bug.delta_ts]) FILTER html %]">
 
   [% PROCESS section_title %]
-  <table>
+  <table class="edit_form">
     <tr>
       [%# 1st Column %]
       <td id="bz_show_bug_column_1" class="bz_show_bug_column">     
 
 [% BLOCK section_title %]
   [%# That's the main table, which contains all editable fields. %]
-  <div class="bz_alias_short_desc_container">
+  <div class="bz_alias_short_desc_container edit_form">
       [% PROCESS commit_button id="_top"%]
      <a href="show_bug.cgi?id=[% bug.bug_id %]">
         <b>[% terms.Bug %]&nbsp;[% bug.bug_id FILTER html %]</b></a> - 
   [% END %]
   [% IF show_bug_flags %]
     <tr>
-      <td class="field_label">
+      <td class="field_label flags_label">
         <label><b>Flags:</b></label>
       </td>
       <td></td>
     <span id="[% dep.fieldname %]_input_area">
       [% IF bug.check_can_change_field(dep.fieldname, 0, 1) %]
         <input name="[% dep.fieldname %]" id="[% dep.fieldname %]"
+               class="text_input"
                value="[% bug.${dep.fieldname}.join(', ') %]">
       [% END %]
     </span>
   [% END %]
     [% val = value ? value : bug.$inputname %]
     [% IF bug.check_can_change_field(inputname, 0, 1) %]
-       <input id="[% inputname %]" name="[% inputname %]"
+       <input id="[% inputname %]" name="[% inputname %]" class="text_input"
               value="[% val FILTER html %]"[% " size=\"$size\"" IF size %]
               [% " maxlength=\"$maxlength\"" IF maxlength %]
               [% " spellcheck=\"$spellcheck\"" IF spellcheck %]>
index 3ae7302c6db7d326585c9dfe288d5637fbe46b37..bdfdd099ee446f12887c2947be9ec3f6dfab22d4 100644 (file)
@@ -72,7 +72,8 @@
 [% IF editable %]
   [% SWITCH field.type %]
     [% CASE constants.FIELD_TYPE_FREETEXT %]
-        <input id="[% field.name FILTER html %]" name="[% field.name FILTER html %]"
+        <input id="[% field.name FILTER html %]" class="text_input"
+               name="[% field.name FILTER html %]"
                value="[% value FILTER html %]" size="40"
                maxlength="[% constants.MAX_FREETEXT_LENGTH FILTER none %]">
     [% CASE constants.FIELD_TYPE_DATETIME %]
          <strong>Add [% terms.Bug %] URLs:</strong>
        </label><br>
        <input type="text" id="[% field.name FILTER html %]" 
-              name="[% field.name FILTER html %]" size="40">
+              class="text_input" name="[% field.name FILTER html %]" size="40">
   [% END %]
 [% ELSIF field.type == constants.FIELD_TYPE_TEXTAREA %]
   <div class="uneditable_textarea">[% value FILTER wrap_comment(60)