Book Image

Creating Interfaces with Bulma

By : Jeremy Thomas, Oleksii Potiekhin, Mikko Lauhakari, Aslam Shah, Dave Berning
Book Image

Creating Interfaces with Bulma

By: Jeremy Thomas, Oleksii Potiekhin, Mikko Lauhakari, Aslam Shah, Dave Berning

Overview of this book

Bulma is a lightweight configurable CSS framework that handles all the hard work of Flexbox for you. Bulma makes creating web interfaces an easy and interesting job. This book begins with an overview of the basics of Bulma ? its terms and its concepts. Then, while designing a login page for your application, you’ll learn how to use the various tools provided by Bulma to create HTML forms and control their layout and flow. In the later chapters, you’ll design an admin area for your application, thus learning to use Bulma’s navigation and menu components. You will also add the components to your user interface for common things such as boxes, lists, and media groups, and then create pagination. As you progress through the book, you’ll create and layout some other components for your interface, including tables, design dropdown lists, and finally to integrate your web application with JavaScript. By the end of this book, you’ll be able to use the features of Bulma to your advantage and build web interfaces quickly and easily.
Table of Contents (15 chapters)
8
8. Creating more tables and selecting dropdowns

List of orders

To display the list of orders, you can use a similar table to the customers table.

Duplicate customers.html, rename it orders.html, and perform a few changes:

  • Move the is-active class in the sidebar menu
  • Change the title to “Orders”
  • Write “2 orders” instead of “3 customers”
  • Remove the “New” button
  • Change the search placeholder to “Order #, customer...”

Heading

The green “New” button is removed because the UI assumes that an order is automatically created when a customer purchases a book on the publisher’s website.

The table only requires new columns:

  • order #
  • customer
  • date
  • number of books
  • status
  • total cost
<table class="table is-hoverable is-fullwidth">
  <thead>
    <tr>
      <th>Order #</th>
      <th>Customer</th>
      <th>Date</th>
      <th>Books</th>
      <th>Status</th>
      <th class...