pvbarredo / laravue-spa

Sample SPA system created in Laravel 5.5 + Vue 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UI TEMPLATE

Page Template

<div class="col-md-12">
</div>

Page Header

<div class="page-header">
    <h1>Device Data</h1>
</div>

If you want to add button in the header

<div class="page-header">
    <router-link to="/device/maintenance/create">
        <button class="btn btn-primary pull-right">
            <i class="glyphicon glyphicon-plus"></i> Add Device</button>
    </router-link>
    <h1>Device Maintenance</h1>
</div>

Search Panel

<div class="panel panel-default search-panel">
<form class="form-inline search-form">
</form>
</div>

Search Field

<div class="form-group">
    <div class="input-group">
        <div class="input-group-addon"><i class="glyphicon glyphicon-user"></i></div>
        <input type="text" class="form-control" placeholder="Username" v-model="searchCriteria.username">
    </div>
</div>

Form / Search Buttons

Buttons are right align (float right)

<div class="form-group search-button pull-right">
    <button type="button" class="btn btn-primary" @click.prevent="submitForm('device')"> Save</button>
    <button type="button" class="btn btn-default" @click.prevent="resetForm('device')"> Cancel</button>
</div>
<div class="clearfix"></div>

For form buttons, add padding top

<div class="form-group search-button pull-right from-button">

If dialog form, dont add padding

Panel

Always put stuff inside a panel

<div class="panel panel-default">
</div>

Forms

Use Element UI Forms, but bootstrap buttons

Dialogs

Make use of the title property for el-dialog

<el-dialog :visible.sync="deviceDataDialog" width="80%" title="Device Data">

Colors

  • Primary Color: #8FBC39
  • Navbar Color: #6B9942
  • Link Color: #6d961e;
  • Danger Color: #d0744f
  • Warning Color: #eda41d

About

Sample SPA system created in Laravel 5.5 + Vue 2


Languages

Language:PHP 56.6%Language:Vue 43.1%Language:HTML 0.4%