changeset 2747:8c2dea536d8f

Changed format of ticket submit and modify view- moved comments to right and metadata to left
author Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
date Sun, 17 Aug 2014 23:51:19 +0530
parents 949994a4c3cf
children 7b87431f2d35
files MoinMoin/static/css/stylus/ticket.styl MoinMoin/static/css/ticket.css MoinMoin/templates/ticket/modify.html MoinMoin/templates/ticket/submit.html
diffstat 4 files changed, 27 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/static/css/stylus/ticket.styl	Sun Aug 17 17:44:53 2014 +0530
+++ b/MoinMoin/static/css/stylus/ticket.styl	Sun Aug 17 23:51:19 2014 +0530
@@ -73,7 +73,7 @@
     margin 5px 1px 3px 0px
     border 1px solid rgba(81, 203, 238, 1)
 
-.moin-ticket-metadata input[type=submit], #f_submit_update, #f_submit_update_negate_status
+.moin-ticket-comments input[type=submit], #f_submit_update, #f_submit_update_negate_status
     margin-top 10px
     margin-bottom 20px
     width auto
@@ -97,13 +97,14 @@
     border-radius 4px
     -webkit-user-select none
 
-.moin-ticket-comments
-    float right
-    width 50%
+.moin-ticket-submit, .moin-ticket-comments
+    float left
+    width 35em
+    clear both
 
 .moin-ticket-metadata
-    float left
-    width 50%
+    float right
+    width 30em
 
 #f_message
     width 100%
@@ -123,3 +124,11 @@
 
 .moin-ticket-tags
     padding-bottom 20px
+
+textarea
+    resize vertical
+
+.moin-form dt, .moin-form dd
+    text-align left
+    width 100%
+    padding-bottom 5px
--- a/MoinMoin/static/css/ticket.css	Sun Aug 17 17:44:53 2014 +0530
+++ b/MoinMoin/static/css/ticket.css	Sun Aug 17 23:51:19 2014 +0530
@@ -6,13 +6,14 @@
 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}
-.moin-ticket-metadata input[type=submit],#f_submit_update,#f_submit_update_negate_status{margin-top:10px;margin-bottom:20px;width:auto;background-color:#1b436d;height:40px;color:#fff;border:2px solid}
+.moin-ticket-comments input[type=submit],#f_submit_update,#f_submit_update_negate_status{margin-top:10px;margin-bottom:20px;width:auto;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}
-.moin-ticket-comments{float:right;width:50%}
-.moin-ticket-metadata{float:left;width:50%}
+.moin-ticket-submit,.moin-ticket-comments{float:left;width:35em;clear:both}
+.moin-ticket-metadata{float:right;width:30em}
 #f_message{width:100%;height:150px}
 h2{border-bottom:none}
 dt label{padding-top:10px}
 dl dd{padding-bottom:10px}
 .moin-ticket-link{padding-left:150px}
 .moin-ticket-tags{padding-bottom:20px}
+.moin-form dt,.moin-form dd{text-align:left;width:100%;padding-bottom:5px}
--- a/MoinMoin/templates/ticket/modify.html	Sun Aug 17 17:44:53 2014 +0530
+++ b/MoinMoin/templates/ticket/modify.html	Sun Aug 17 23:51:19 2014 +0530
@@ -19,20 +19,21 @@
             {{ forms.render_errors(form) }}
             {{ render_meta() }}
         </dl>
-	<div class="moin-ticket-tags">
+        <div class="moin-ticket-tags">
             {{ _("Suggested Tags: ") }}
             {% for suggested_tag in suggested_tags %}
                 {{ suggested_tag }}
             {% endfor %}
-	</div>
+        </div>
         <dl>
             {{ render_selectlists() }}
         </dl>
-
-        {{ forms.render(form['submit']) }}
         <h2>{{ _("Back references") }}</h2>
         <dl>
             {{ render_backref() }}
         </dl>
     </div>
+    <div class="moin-ticket-submit">
+        {{ forms.render(form['submit']) }}
+    </div>
 {% endblock %}
--- a/MoinMoin/templates/ticket/submit.html	Sun Aug 17 17:44:53 2014 +0530
+++ b/MoinMoin/templates/ticket/submit.html	Sun Aug 17 23:51:19 2014 +0530
@@ -16,8 +16,8 @@
 {% endblock %}
 {% block ticket_metadata %}
 
-    <h2>{{ _("Provide metadata") }}</h2>
     <div class="moin-ticket-metadata">
+        <h2>{{ _("Provide metadata") }}</h2>
         <dl>
         {{ forms.render_errors(form) }}
         {{ render_meta() }}
@@ -31,7 +31,8 @@
         <dl>
         {{ render_selectlists() }}
         </dl>
-
+    </div>
+    <div class="moin-ticket-submit">
         {{ forms.render_submit(form) }}
     </div>
 {% endblock %}