[%# This page reminds the user of non-reset flag requests on each bug change.
  # License: Dual-license MPL 1.1+ or GPL 3.0+
  # Author(s): Vitaliy Filippov, Stas Fomin %]

[% PROCESS global/header.html.tmpl title='Verify flag requests' %]

[% ARGS = Bugzilla.input_params %]

<h3>Please, verify flags:</h3>

<form action="process_bug.cgi" method="post" enctype="multipart/form-data">

<input type="hidden" name="force_flags" value="1" />
[% PROCESS "global/hidden-fields.html.tmpl" %]

<table cellspacing="0" cellpadding="4" style="border-width: 1px 1px 0 1px; border-style: solid; border-color: gray">
  <tr style="background-color: #e0e0e0">
    <th style="text-align: left">Who</th>
    <th style="text-align: left">What</th>
    <th style="text-align: left">Requestee</th>
    <th style="text-align: left">Status</th>
  </tr>
[% FOREACH flag = verify_flags %]
  <tr>
    <td style="border-width: 0 0 1px 0; border-style: solid; border-color: gray">
      [% flag.setter.login | html %] ( [% flag.setter.realname | html %] )
    </td>
    <td style="border-width: 0 0 1px 0; border-style: solid; border-color: gray">
      "[% flag.type.description | html %]"
    </td>
    <td style="border-width: 0 0 1px 0; border-style: solid; border-color: gray">
      [% ARGS.${"requestee-$flag.id"}.join(', ') %]
    </td>
    <td style="border-width: 0 0 1px 0; border-style: solid; border-color: gray">
      <select id="flag-[% flag.id %]" name="flag-[% flag.id %]">
        <option value="X" [% 'selected="selected"' IF flag.status == 'X' %]>X</option>
        <option value="+">+</option>
        <option value="-">-</option>
        <option value="?" [% 'selected="selected"' IF flag.status == '?' %]>?</option>
      </select>
    </td>
  </tr>
[% END %]
</table>

<p><input type="submit" value="Commit" /></p>
</form>

[% PROCESS global/footer.html.tmpl %]
