<%inherit file="/template.html" /> <%namespace name="components" file="/components.html" /> <%namespace name="forms" file="/forms.html"/> <%namespace name="badge_tiles" file="/badge/tiles.html" /> <%def name="title()">${c.form_title} <%def name="breadcrumbs()"> ${h.badge.breadcrumbs(None)|n} <%block name="main_content"> ${self.form()} <%def name="form()"> <% h.need.spectrum %>
${components.flashmessages()} ${h.field_token()|n} <%forms:textarea label="${_('Category description') if c.badge_type == 'category' else _('Badge description')}" name="description" rows="8" value=""> %if c.badge_type == 'category': %if c.instance is not None and c.instance.display_category_pages: <%forms:textarea label="${_('Long category description')}" name="long_description" rows="10" value="" help="${_('Here you can add a more detailed description of your category with markdown.')}"> ${components.formatting()} %else: %endif %endif ${_("Like '#a4a4a4'")} %if c.badge_type != 'thumbnail': %endif %if c.badge_type == 'thumbnail' or (c.badge_type == 'category' and c.instance is not None and c.instance.display_category_pages): %endif %if c.badge_type == 'user': %if h.has_permission('global.admin'): ${_("Automatically assign all users with this badge to the selected group for all instances in the adhocracy site.")} %else: ${_("Automatically assign all users with this badge to the selected group.")} %endif ${_("Display this badge instead of the normal user group.")} %endif %if h.has_permission('global.admin'): %else: %endif %if c.badge_type == 'category':
${_('Link this category to a superordinate category')}
%endif %if c.badge_type == 'user': %if lib.behavior.behavior_enabled():

Behaviors

%endif %endif %if c.badge_type in ['delegateable', 'category', 'thumbnail']: ${forms.input(_(u'Impact'), 'impact', type='number', min=-10, max=10)} %endif
${components.savebox(c.return_url, _('Save'))}