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

New customer template

The new customer template has the same structure as the new book one: a breadcrumb and a list of form fields.

Duplicate the new-book.html file, and rename it to new-customer.html. In the sidebar menu, move the is-active class to the “Customers” item. In the right column’s breadcrumb, change any instance of “book” to “customer.”

You can now focus on the <form>. Remove all fields, except the first large input, and the last set of buttons.

Initial

The first field can simply be repurposed by changing the label and placeholder.

<div class="field">
  <div class="field">
    <label class="label">Full name</label>
    <div class="control">
      <input class="input is-large" type="text" placeholder="e.g. Alex Smith" required>
    </div>
  </div>
</div>

Title

The second field is an email one, with an envelope...