changeset 2684:44a288038e11

Removed HTML validation errors from ticket show/modify view
author Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
date Fri, 01 Aug 2014 17:54:11 +0530
parents 5a6660508036
children 19747e4214f4
files MoinMoin/static/css/stylus/ticket.styl MoinMoin/static/css/ticket.css MoinMoin/templates/forms.html MoinMoin/templates/ticket/modify.html MoinMoin/templates/ticket/submit.html
diffstat 5 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/static/css/stylus/ticket.styl	Fri Aug 01 17:51:20 2014 +0530
+++ b/MoinMoin/static/css/stylus/ticket.styl	Fri Aug 01 17:54:11 2014 +0530
@@ -75,7 +75,7 @@
     margin 5px 1px 3px 0px
     border 1px solid rgba(81, 203, 238, 1)
 
-input[type=submit], #f_submit
+input[type=submit], #f_submit_update, #f_submit_update_negate_status
     margin-top 10px
     margin-bottom 20px
     width 150px
--- a/MoinMoin/static/css/ticket.css	Fri Aug 01 17:51:20 2014 +0530
+++ b/MoinMoin/static/css/ticket.css	Fri Aug 01 17:54:11 2014 +0530
@@ -6,5 +6,5 @@
 label.moin-inline-label{background-image:url("../img/radiobutton.png")}
 #f_meta_tags,#f_meta_summary{-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-ms-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;outline:none;width:200px;margin-top:20px;margin-bottom:20px;height:25px;padding:3px 0 3px 3px;margin:5px 1px 3px 0;border:1px solid #ddd}
 #f_meta_tags:focus,#f_meta_summary:focus{box-shadow:0 0 5px #51cbee;margin-top:20px;margin-bottom:20px;height:25px;padding:3px 0 3px 3px;margin:5px 1px 3px 0;border:1px solid #51cbee}
-input[type=submit],#f_submit{margin-top:10px;margin-bottom:20px;width:150px;background-color:#1b436d;height:40px;color:#fff;border:2px solid}
+input[type=submit],#f_submit_update,#f_submit_update_negate_status{margin-top:10px;margin-bottom:20px;width:150px;background-color:#1b436d;height:40px;color:#fff;border:2px solid}
 select{display:inline-block;margin-bottom:0;font-weight:normal;text-align:center;vertical-align:middle;cursor:pointer;border:1px solid;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none}
--- a/MoinMoin/templates/forms.html	Fri Aug 01 17:51:20 2014 +0530
+++ b/MoinMoin/templates/forms.html	Fri Aug 01 17:54:11 2014 +0530
@@ -132,7 +132,7 @@
 
 {% macro small_natural(field) %}
     <dt>
-        {{ gen.label(field) }}
+        {{ field['label'] }}
     </dt>
     <dd>
         {% for i in range(field.properties.lower, field.properties.upper+1) %}
@@ -167,7 +167,7 @@
 {% macro select_submit(field) %}
   {% set labels = field.properties.get('labels', {}) %}
   {% for value in field.valid_values %}
-    {{ gen.button(field, type='submit', value=value, contents=labels.get(value, value)) }}
+    {{ gen.button(field, type='submit', value=value, contents=labels.get(value, value), id='f_submit_' + value) }}
   {% endfor %}
 {% endmacro %}
 
@@ -200,7 +200,7 @@
 
 {% macro readonly_item_link_list(field) %}
   <dt>
-    {{ gen.label(field) }}
+    {{ field['label'] }}
   </dt>
   <dd>
     {% for v in field.value %}
--- a/MoinMoin/templates/ticket/modify.html	Fri Aug 01 17:51:20 2014 +0530
+++ b/MoinMoin/templates/ticket/modify.html	Fri Aug 01 17:54:11 2014 +0530
@@ -14,10 +14,12 @@
     <dl>
     {{ forms.render_errors(form) }}
     {{ render_meta() }}
+    </dl>
     {{ _("Suggested Tags: ") }}
     {% for suggested_tag in suggested_tags %}
         {{ suggested_tag }}
     {% endfor %}
+    <dl>
     {{ render_selectlists() }}
     </dl>
 
--- a/MoinMoin/templates/ticket/submit.html	Fri Aug 01 17:51:20 2014 +0530
+++ b/MoinMoin/templates/ticket/submit.html	Fri Aug 01 17:54:11 2014 +0530
@@ -15,10 +15,12 @@
     <dl>
     {{ forms.render_errors(form) }}
     {{ render_meta() }}
+    </dl>
     {{ _("Suggested Tags: ") }}
     {% for suggested_tag in suggested_tags %}
         {{ suggested_tag }}
     {% endfor %}
+    <dl>
     {{ render_selectlists() }}
     </dl>