Skip to content

Instantly share code, notes, and snippets.

This is a fork of Bootstrap Typeahead that adds minimal but powerful extensions.

For example, process typeahead list asynchronously and return objects

  # This example does an AJAX lookup and is in CoffeeScript
  $('.typeahead').typeahead(
    # source can be a function
    source: (typeahead, query) ->
 # this function receives the typeahead object and the query string
sudo apt-get update
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
sudo apt-get install -y vim curl python-software-properties
sudo add-apt-repository -y ppa:ondrej/php5
sudo apt-get update
sudo apt-get install -y php5 apache2 libapache2-mod-php5 php5-curl php5-gd php5-mcrypt php5-readline mysql-server-5.5 php5-mysql git-core php5-xdebug
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
# use 192.168.33.21 for tso host and .31 for fortrabbit
@extends('layouts.modal')
@section('modal-body')
<h1>Create an order</h1>
<div class="row">
{{ Former::open()
->role('Form')
->class('modal-ajax-form')
->tableId('orders')
@section('show-child-view')
{{-- Overwrites this section in parent --}}
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
{{ Former::text('order_title')->class('form-control input-sm copy-destination')->label('Order Summary')->placeholder('Add summary of order here')->label('New lable from child view') }}
</div>
<div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
// Paste the following into the end of your function.php file...
/**
* Filter Add URL params (like UTM codes and dynamic content) to every form in TCB and Leads
*
* @param $lead_group - (WP Post Object) Lead Group content type
* @param $form_type - (WP Post Object) Form Type content type
* @param $form_variation - (Array) Form variation data
*
* @return string - additional dynamic code to appear before </form> tag
/** Changing the Header **/
header {
background: #d82222; // Paste in your new header colour
}
footer .fmn {
background: #b96363; // Paste in your new footer colour
}
/** Changing the nav links **/
header ul.menu > li > a {
<div style="text-align:center; padding: 40px 0">
<h2>Our Happy Clients</h2>
<img src="http://www.twistedimage.media/wp-content/uploads/2016/11/heart328.png" style="float:left;padding:0 10px" width="350px">
<img src="http://www.twistedimage.media/wp-content/uploads/2016/11/icon.png" style="float:left;padding:0 10px" width="300px">
<img src="https://www.biglotteryfund.org.uk/assets/images/logos/en/pink-large.jpg" style="float:left;padding:0 10px" width="200px"><img src="http://www.twistedimage.media/wp-content/uploads/2016/11/getfile-300x129.jpeg" style="float:left;padding:20px 10px 0" width="250px">
<div style="float:clear"></div>
</div>
<!-- Clearly, I'd add the styling in the CSS file, if we mde the amendments to the proper website! -->
<!DOCTYPE html>
<!--[if IE 8]>
<html class="ie ie8" lang="en-GB" prefix="og: http://ogp.me/ns#">
<![endif]-->
<!--[if !(IE 7) & !(IE 8)]><!-->
<html lang="en-GB" prefix="og: http://ogp.me/ns#">
<!--<![endif]-->
<head>
<meta charset="UTF-8">