<div class="card min-w-[600px] h-auto[% IF modal %] shadow-float[% END %]">
  <div class="head justify-between">
    <h3>[% IF modal %][% request %][% ELSE %]Command Options[% END %]</h3>
    [% IF modal %]
    <div class="flexrow flex-nowrap gap-2">
      <button class="iconOnly medium" onClick="toggleClass('.js-help', 'hidden'); return false;"><i class="uil uil-question-circle"></i></button>
      <button class="iconOnly medium" onClick="closeModalWindow(); return false;"><i class="uil uil-times"></i></button>
    </div>
    [% END %]
  </div>
  <div class="body">
    <form method='post' action='cmd.cgi' onsubmit="setFormBtnSpinner(this)">
      <input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;"/>
      <input type="hidden" name="referer" value="[% referer | html %]">
      <input type="hidden" name="CSRFtoken" value="[% get_user_token(c) %]">
      <input type='hidden' name='cmd_typ' value="[% cmd_typ | html %]">
      <input type='hidden' name='cmd_mod' value='2'>
      [% IF backends.size == 1 %]
        <input type="hidden" name="backend" value="[% backends.0 | html %]">
      [% END %]
      <table class="cellspacing">
        [% IF modal %]
        <tr class="js-help clickable hidden" onClick="toggleClass(this, 'hidden'); return false;">
          <th class="align-top">Help</th>
          <td class="whitespace-normal max-w-80 clickable">[% description %]
          </td>
        </tr>
        [% END %]
        [% content %]
        [% IF content.trim() == "" %]
          <tr>
            <td></td>
            <td>This command does not have any options.</td>
          </tr>
        [% END %]
        [% PROCESS cmd_form_backends %]
        <tr>
          <td></td>
          <td>
            <div class="flexrow gap-1">
              [% IF modal %]
              <button class="w-20" onclick="closeModalWindow()">Cancel</button>
              [% ELSIF referer != "" %]
              <a href="[% referer %]" class="button w-20">Cancel</a>
              [% ELSE %]
              <button class="w-20" onclick="window.history.go(-1)">Cancel</button>
              [% END %]
              <button type='submit' name='btnSubmit' value='Commit' class="w-40 green">
                <i class="uil uil-corner-down-right-alt"></i>Commit
              </button>
            </div>
          </td>
        </tr>
      </table>
    </form>
  </div>
</div>
