Skip to content

Instantly share code, notes, and snippets.

<form id="login_form">
<div id="login_elements" style="display:none;">
<div id="error_flash" style="display: none;">
Logging in...
</div>
<h3 id="log_in">
Are you a bartender? Sign in!
</h3>
<div id="login_email" class="field">
<span>Email</span>
- @template.tabs.each_with_index do |t, index|
- if index > 0
.tab{:id => "tab_#{index}"}
- else
.tab.visible{:id => "tab_#{index}"}
%h3= t['headers'][0]
- t['inputs'].each do |b|
%h4= b['prompt']
= render 'make_input', :input => b
// Place all the styles related to the Videos controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
input[type='text'] {
width: 50%;
font-size: 14px;
padding: 3px;
}
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
ul.hmenu{list-style:none;margin:0 0 2em;padding:0}ul.hmenu li{display:inline}ul.hmenu li a{text-decoration:none}#flash_notice,#flash_alert{padding:5px 8px;margin:10px 0}#flash_notice{background-color:#CFC;border:solid 1px #6C6}#flash_alert{background-color:#FCC;border:solid 1px #C66}a.button{text-decoration:none;border:1px solid #999;background:#eee;color:#555;width:auto;padding:5px 8px 5px 8px;-webkit-border-radius:6px}a.button:hover{background:#f9f9f9;color:#777;border-color:#bbb}
Ext.define("onthebar.view.Main", {
extend: 'Ext.Container',
requires: ['Ext.TitleBar','onthebar.view.SignIn'],
id: 'viewport',
config: {
title: 'onthebar',
layout: {
type: 'card'
},
Ext.define "onthebar.controller.StartViewController",
extend: "Deft.mvc.ViewController"
...
control:
signUpNavButton: #gets selector by id automatically
listeners:
tap: 'onSignUpNavButton'
class Regularship < ActiveRecord::Base
...
belongs_to :user
belongs_to :regulee, :class_name => "User", :counter_cache => true
...
end
class User < ActiveRecord::Base
# shuts down all taps globally for specified time...
tapped: false
mainLaunch: ->
Ext.Viewport.element.on 'tap', (event) =>
if onthebar.app.tapped
console.log 'busy! come back later!'
event.stopEvent()
return
<!DOCTYPE html>
<html>
<head>
<title>onthebar - Corey Bunnewith</title>
<meta name="keywords" content="Corey Bunnewith, bartenders, craft cocktails, cocktails, cocktail bars, nightlife" />
<meta name="Description" content="The app for bartenders and their regulars." />