Changed Button style class to btn-primary 47/66147/3
authorParker Berberian <pberberian@iol.unh.edu>
Wed, 2 Jan 2019 22:54:24 +0000 (17:54 -0500)
committerParker Berberian <pberberian@iol.unh.edu>
Thu, 3 Jan 2019 20:04:33 +0000 (15:04 -0500)
btn-primary has a handful of advantages over btn-default, including
consistency across browsers and correctly styling non-button
html tags

p.s. vim is best

Change-Id: I6e55a75a9fd48d64496fd83f43a7856af0c04cc0
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
dashboard/src/templates/account/booking_list.html
dashboard/src/templates/account/configuration_list.html
dashboard/src/templates/account/details.html
dashboard/src/templates/account/resource_list.html
dashboard/src/templates/account/userprofile_update_form.html
dashboard/src/templates/booking/booking_calendar.html
dashboard/src/templates/dashboard/landing.html
dashboard/src/templates/dashboard/resource_detail.html
dashboard/src/templates/workflow/viewport-base.html

index 21f6ff7..c7c5e00 100644 (file)
@@ -27,8 +27,8 @@ function edit_booking(pk){
             <li>purpose: {{booking.purpose}}</li>
             </ul>
             <div class="detail_btn_group">
-                <button style="display: none" class="btn" onclick="edit_booking({{booking.id}});">Edit</button>
-                <button class="btn" onclick="location.href='/booking/detail/{{booking.id}}/';">Details</button>
+                <button style="display:none" class="btn btn-primary" onclick="edit_booking({{booking.id}});">Edit</button>
+                <button class="btn btn-primary" onclick="location.href='/booking/detail/{{booking.id}}/';">Details</button>
             </div>
         </div>
     {% endfor %}
@@ -44,8 +44,8 @@ function edit_booking(pk){
             <li>purpose: {{booking.purpose}}</li>
             </ul>
             <div class="detail_btn_group">
-                <button style="display: none" class="btn" disabled=true onclick="edit_booking({{booking.id}});">Edit</button>
-                <button class="btn" onclick="location.href='/booking/detail/{{booking.id}}/';">Details</button>
+                <button style="display: none" class="btn btn-primary" disabled=true onclick="edit_booking({{booking.id}});">Edit</button>
+                <button class="btn btn-primary" onclick="location.href='/booking/detail/{{booking.id}}/';">Details</button>
             </div>
         </div>
     {% endfor %}
index b04535b..9dcec07 100644 (file)
@@ -24,7 +24,7 @@ function edit_configuration(pk){
                 <li>resource: {{config.bundle}}</li>
             </ul>
             <div class="detail_btn_group">
-                <button style="display: none" class="btn" onclick="edit_configuration({{config.id}});">Edit</button>
+                <button style="display: none" class="btn btn-primary" onclick="edit_configuration({{config.id}});">Edit</button>
             </div>
         </div>
     {% endfor %}
index 740dce6..acf3eb1 100644 (file)
@@ -2,8 +2,8 @@
 {% load staticfiles %}
 {% block content %}
 <h1>Account Details</h1>
-<button class="btn" onclick="location.href = '{% url 'account:my-resources' %}'">My Resources</button>
-<button class="btn" onclick="location.href = '{% url 'account:my-bookings' %}'">My Bookings</button>
-<button class="btn" onclick="location.href = '{% url 'account:my-configurations' %}'">My Configurations</button>
-<button class="btn" onclick="location.href = '{% url 'account:my-images' %}'">My Snapshots</button>
+<a class="btn btn-primary" onclick="location.href = '{% url 'account:my-resources' %}'">My Resources</a>
+<a class="btn btn-primary" onclick="location.href = '{% url 'account:my-bookings' %}'">My Bookings</a>
+<a class="btn btn-primary" onclick="location.href = '{% url 'account:my-configurations' %}'">My Configurations</a>
+<a class="btn btn-primary" onclick="location.href = '{% url 'account:my-images' %}'">My Snapshots</a>
 {% endblock content %}
index 2ef293b..7e4194b 100644 (file)
@@ -23,7 +23,7 @@ function edit_resource(pk){
                 <li>description: {{resource.description}}</li>
             </ul>
             <div class="detail_btn_group">
-                <button style="display: none" class="btn" onclick="edit_resource({{resource.id}});">Edit</button>
+                <button style="display: none" class="btn btn-primary" onclick="edit_resource({{resource.id}});">Edit</button>
             </div>
         </div>
     {% endfor %}
index f4bb7b5..f1d2852 100644 (file)
@@ -17,7 +17,7 @@
                             {% csrf_token %}
                             {% bootstrap_form form %}
                             <p><b>API Token</b>
-                                <a href="{% url 'generate_token' %}" class="btn btn-default">
+                                <a href="{% url 'generate_token' %}" class="btn btn-primary">
                                     Generate
                                 </a>
                             </p>
index 349cb0a..1b29dc2 100644 (file)
                 <div class="modal-body" id="booking_detail_content">
                 </div>
                 <div class="modal-footer">
-                    <button type="button" class="btn btn-default" data-dismiss="modal">Close
+                    <button type="button" class="btn btn-primary" data-dismiss="modal">Close
                     </button>
                 </div>
             </div>
index b1eec86..84b060f 100644 (file)
     }
 </style>
 <div class='wf_create_div'>
-<button class="wf_create btn" onclick="cwf(0)">Create a Booking</button>
-<button class="wf_create btn" onclick="cwf(1)">Create a Pod</button>
-<button class="wf_create btn" onclick="cwf(2)">Configure a Pod</button>
-<button class="wf_create btn" onclick="cwf(3)">Create a Snapshot</button>
+<button class="wf_create btn btn-primary" onclick="cwf(0)">Create a Booking</button>
+<button class="wf_create btn btn-primary" onclick="cwf(1)">Create a Pod</button>
+<button class="wf_create btn btn-primary" onclick="cwf(2)">Configure a Pod</button>
+<button class="wf_create btn btn-primary" onclick="cwf(3)">Create a Snapshot</button>
 {% if manager == True %}
-<button class="wf_continue btn" onclick="continue_wf()">Finish Unfinished Business</button>
+<button class="wf_continue btn btn-primary" onclick="continue_wf()">Finish Unfinished Business</button>
 {% endif %}
 </div>
 
index 79389f0..0a443d9 100644 (file)
                     {{ resource.owner.email }}
                 </p>
                 <p>
-                    <a href="{% url 'booking:create' resource_id=resource.id %}" class="btn
-                    btn-primary">
+                    <a href="{% url 'booking:create' resource_id=resource.id %}" class="btn btn-primary">
                         Booking
                     </a>
-                    <a href="{{ resource.url }}" class="btn
-                    btn-primary">
+                    <a href="{{ resource.url }}" class="btn btn-primary">
                         OPNFV Wiki
                     </a>
                 </p>
index 82c1324..9ddb4b8 100644 (file)
 </style>
 
 <button id="gof" onclick="go(step+1)" class="btn go_btn go_forward">Go Forward</button>
-<button id="gob" onclick="go(step-1)" class="btn btn go_btn go_back">Go Back</button>
+<button id="gob" onclick="go(step-1)" class="btn go_btn go_back">Go Back</button>
 
 <div class="options">
-    <button id="cancel_btn" class="btn" onclick="cancel_wf()">Cancel</button>
+    <button id="cancel_btn" class="btn btn-primary" onclick="cancel_wf()">Cancel</button>
 </div>
 <div class="btn_wrapper">
 <div id="breadcrumbs" class="btn-group">