From 384edd99b40d0d4eda5da3009713cb3f1dd433db Mon Sep 17 00:00:00 2001 From: Matt Claypotch Date: Thu, 25 Nov 2010 11:00:39 -0500 Subject: [PATCH] Bug 603124, Step 5: Select a License --- .../devhub/addons/submit/license.html | 41 ++++++++++++++++--- media/css/zamboni/developers.css | 4 ++ 2 files changed, 40 insertions(+), 5 deletions(-) diff --git a/apps/devhub/templates/devhub/addons/submit/license.html b/apps/devhub/templates/devhub/addons/submit/license.html index ee4bc48fc43..28ecf577784 100644 --- a/apps/devhub/templates/devhub/addons/submit/license.html +++ b/apps/devhub/templates/devhub/addons/submit/license.html @@ -7,12 +7,43 @@

{{ _('Step 5. Select a License') }}

licensed. Please select a license from the list below or enter a custom license. {% endtrans %}

-
+ {{ csrf() }} - - {% include "devhub/includes/license_form.html" %} - {% include "devhub/includes/policy_form.html" %} -
+ {{ _('Select a license for your add-on:') }} +
+ {{ license_form.builtin.errors|safe }} + {{ license_form.builtin|safe }} + {% set show_other = (license_form.initial.builtin == license_other_val or license_form.errors) %} +
+ {{ license_form.non_field_errors()|safe }} + {{ license_form.name.errors|safe }} + {{ license_form.name.label_tag()|safe }} + {{ license_form.name|safe }} + {{ license_form.text.errors|safe }} + {{ license_form.text.label_tag()|safe }} + {{ license_form.text|safe }} +
+
+ {% set values = policy_form.data if policy_form.is_bound else policy_form.initial %} +
+ {{ policy_form.has_eula|safe }} + {{ policy_form.has_eula.label_tag()|safe }} +
+ {{ policy_form.eula.errors|safe }} + {{ policy_form.eula.label_tag()|safe }} + {{ policy_form.eula|safe }} +
+
+
+ {{ policy_form.has_priv|safe }} + {{ policy_form.has_priv.label_tag()|safe }} +
+ {{ policy_form.privacy_policy.errors|safe }} + {{ policy_form.privacy_policy.label_tag()|safe }} + {{ policy_form.privacy_policy|safe }} +
+
diff --git a/media/css/zamboni/developers.css b/media/css/zamboni/developers.css index 82fe19b0b6e..fccf409e356 100644 --- a/media/css/zamboni/developers.css +++ b/media/css/zamboni/developers.css @@ -623,6 +623,10 @@ h3 a.subscribe-feed:hover { display: block; padding-bottom: 3px; } +.submit-license input[type=checkbox] + label { + display: inline; + padding-bottom: 0; +} .addon-submission-process #id_name { width: 300px;