<input type="hidden" name="flag_action" id="flag_action" />
<input type="hidden" name="flag_data" id="flag_data" />
<table class="flagmanagement">
 <thead>
  <tr>
   <td><gettext>Label</gettext></td>
   <td><gettext>Icon</gettext></td>
   <td class="colorheader"><gettext>Color</gettext></td>
  </tr>
 </thead>
 <tbody>
<loop:flags>
  <tr>
   <td>
<if:flags.user>
<if:locked>
    <tag:flags.label />
<else:locked>
    <input name="<tag:flags.label_name />" value="<tag:flags.label />" />
</else:locked></if:locked>
<else:flags.user>
    <tag:flags.label />
</else:flags.user></if:flags.user>
   </td>
   <td class="flagicon">
<if:flags.user><else:flags.user>
    <tag:flags.icon />
</else:flags.user></if:flags.user>
   </td>
   <td>
<if:locked><else:locked>
    <input type="hidden" id="<tag:flags.colorid />" name="<tag:flags.colorid />" value="<tag:flags.color />" />
    <div class="iconImg msgflags flagUser" style="<tag:flags.colorstyle />"></div>
    <a class="flagcolorpicker" href="#"><tag:picker_img /></a>
<if:flags.user>
    <a class="flagdelete" href="#"><span class="iconImg deleteImg"></span></a>
</if:flags.user>
</else:locked></if:locked>
   </td>
  </tr>
</loop:flags>
 </tbody>
</table>

<if:locked><else:locked>
<div>
 <input id="new_button" type="button" class="button" value="<gettext>New Flag</gettext>" />
</div>
</else:locked></if:locked>
