diff --git a/apps/amo/helpers.py b/apps/amo/helpers.py index 81f809f12f..ef4f688227 100644 --- a/apps/amo/helpers.py +++ b/apps/amo/helpers.py @@ -423,8 +423,7 @@ def recaptcha(context, form): @register.filter def is_choice_field(value): try: - return (hasattr(value.field, 'choices') and - isinstance(value.field.widget, CheckboxInput)) + return isinstance(value.field.widget, CheckboxInput) except AttributeError: pass diff --git a/mkt/site/helpers.py b/mkt/site/helpers.py index 6499df38be..a286761135 100644 --- a/mkt/site/helpers.py +++ b/mkt/site/helpers.py @@ -324,10 +324,10 @@ def mkt_breadcrumbs(context, product=None, items=None, crumb_size=40, @register.function def form_field(field, label=None, tag='div', req=None, opt=False, hint=False, - some_html=False, cc_startswith=None, cc_for=None, + tooltip=False, some_html=False, cc_startswith=None, cc_for=None, cc_maxlength=None, grid=False, cls=None, **attrs): c = dict(field=field, label=label or field.label, tag=tag, req=req, - opt=opt, hint=hint, some_html=some_html, + opt=opt, hint=hint, tooltip=tooltip, some_html=some_html, cc_startswith=cc_startswith, cc_for=cc_for, cc_maxlength=cc_maxlength, grid=grid, cls=cls, attrs=attrs) t = env.get_template('site/helpers/simple_field.html').render(**c) diff --git a/mkt/site/templates/site/helpers/simple_field.html b/mkt/site/templates/site/helpers/simple_field.html index d2e3beacda..b9fd567a0c 100644 --- a/mkt/site/templates/site/helpers/simple_field.html +++ b/mkt/site/templates/site/helpers/simple_field.html @@ -1,21 +1,19 @@ {% from 'includes/forms.html' import required, optional, tip %} {% from 'developers/includes/macros.html' import some_html_tip %} -{% macro simple_label(field, label, opt, req, tooltip, hint) %} +{% macro simple_label(field, label, opt, req, hint) %} {% if field.field.required and req != False %}{{ required() -}}{% endif %} {% if opt %}{{ optional() -}}{% endif %} - {% endmacro %} {% if tag %} <{{ tag }} class="brform simple-field c {{ cls }}{{ ' error' if field.errors }}"> {% endif %} {% set choice = field|is_choice_field %} - {% if not tooltip %}{% set tooltip = field.help_text %}{% endif %} {% if grid %}
{{ _("We've got your app saved and ready to go! Your app is currently - awaiting review, and will show up on listing pages and in search once it is reviewed. - Until then, feel free to tweak your app's details and settings.") }}
+ {% if addon.make_public == amo.PUBLIC_WAIT %} ++ {% trans url=addon.get_dev_url('versions') %} + We've got your app saved and ready to go! Your app is currently + awaiting review, and once it is reviewed you will need to be manually + enable your app from the Manage Status page + for it to show up on listing pages and in search. Until then, feel + free to tweak your app's details and settings. + {% endtrans %} +
+ {% else %} +{{ _("We've got your app saved and ready to go! Your app is currently + awaiting review, and will show up on listing pages and in search once it is reviewed. + Until then, feel free to tweak your app's details and settings.") }}
+ {% endif %}