{'Add badge'|gettext}

{'Visible'|gettext}

{"Rules"|gettext}

{include file=Template::get("badge/badge.html") badge=$badge idsOn=true adminMode=true showForPreview=true xSize=300 ySize=300} {if isset($errors.badge_image_type)}
{$errors.badge_image_type}
{/if}
{'Upload your own image or select from our gallery'|gettext}
{assign var=perRow value=6} {assign var=firstRow value=4} {assign var=rowCount value=2}
data.badge_image_type != 'stock'}style="opacity:1;{/if}">
{'Upload an image'|gettext}
{foreach from=$stockBadges item=stockBadge} {if $rowCount eq $perRow}
{$rowCount = 0} {/if} {$rowCount=$rowCount+1}
{* data.badge_stock && $badge->data.badge_image_type eq "stock"}checked="checked"{/if} />*}
{/foreach}
{if $badge->data.badge_id && $badge->data.badge_auto eq 1}
{'ATTENTION: '|gettext}{'Any change to the automated badge rules may cause this badge to be added or removed from user profiles when you press Save Badge'|gettext}
{/if}
{if $badge->data.badge_id ne 0} {'Delete badge'|gettext} {/if} {'Cancel'|gettext}