allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [10/10] allura git commit: [#8024] tweak checkbox value so it stays checked, if you get an error on submitting
Date Fri, 08 Jan 2016 18:02:40 GMT
[#8024] tweak checkbox value so it stays checked, if you get an error on submitting


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/d46244c7
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/d46244c7
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/d46244c7

Branch: refs/heads/master
Commit: d46244c7314646c9692ed7573f918d4612fb8a7f
Parents: c2f7993
Author: Dave Brondsema <dave@brondsema.net>
Authored: Fri Jan 8 13:01:53 2016 -0500
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Fri Jan 8 13:01:53 2016 -0500

----------------------------------------------------------------------
 .../templates/site_admin_site_notifications_create_update.html     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/d46244c7/Allura/allura/templates/site_admin_site_notifications_create_update.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/site_admin_site_notifications_create_update.html b/Allura/allura/templates/site_admin_site_notifications_create_update.html
index e02284e..0d3c730 100644
--- a/Allura/allura/templates/site_admin_site_notifications_create_update.html
+++ b/Allura/allura/templates/site_admin_site_notifications_create_update.html
@@ -71,7 +71,7 @@
   <div>
     <label>Active</label>
     <div class="input">
-      <input type="checkbox" name="active" value="yes" {%- if not form_values|length -%}
checked {%- elif form_values.get('active') == 'True' -%} checked {% endif %}>
+      <input type="checkbox" name="active" value="True" {%- if not form_values|length
-%} checked {%- elif form_values.get('active') == 'True' -%} checked {% endif %}>
     </div>
     {{error('active')}}
   </div>


Mime
View raw message