Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converted to haml. Can create provinces and incident types
- Loading branch information
1 parent
2a9cd32
commit 047fb62
Showing
7 changed files
with
91 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ gem 'datamapper' | |
gem 'dm-sqlite-adapter' | ||
gem 'sqlite3' | ||
gem 'json' | ||
gem 'haml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
%form{action: '/incident_type', :method => "post"} | ||
%input{:type=>'text', :size=>40, :name=>'name', :id=>'name'} | ||
%input{:type=>'submit', :value=>'New Incident Type'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
!!! | ||
/ paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ | ||
/[if lt IE 7] <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> | ||
/[if IE 7] <html class="no-js lt-ie9 lt-ie8" lang="en"> | ||
/[if IE 8] <html class="no-js lt-ie9" lang="en"> | ||
/ [if gt IE 8]><! | ||
%html{:lang => "en"} | ||
/ <![endif] | ||
%head | ||
%meta{:charset => "utf-8"}/ | ||
/ Set the viewport width to device width for mobile | ||
%meta{:content => "width=device-width", :name => "viewport"}/ | ||
%title Eish - Incident Reporting for South Africa | ||
/ Included CSS Files | ||
%link{:href => "stylesheets/foundation.css", :rel => "stylesheet"} | ||
%link{:href => "stylesheets/app.css", :rel => "stylesheet"} | ||
/[if lt IE 9] | ||
<link rel="stylesheet" href="stylesheets/ie.css"> | ||
/ IE Fix for HTML5 Tags | ||
/[if lt IE 9] | ||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | ||
%body | ||
/ container | ||
.container | ||
.row | ||
.twelve.columns | ||
%h1 Eish - Incident Reports for South Africa | ||
.row | ||
%form.nice | ||
.two.columns | ||
%select#provinces | ||
.seven.columns | ||
%input#address.expand.input-text{:type => "text"}/ | ||
.three.columns | ||
%a#find_address.green.button{:href => "#"} Find | ||
.row | ||
%form.nice | ||
.two.columns | ||
%select#incident_types | ||
.seven.columns | ||
%textarea.expand.text-area | ||
.three.columns | ||
%a#report_incident.green.button{:href => "#"} Report Incident | ||
#map_container.row | ||
.twelve.columns | ||
#map_canvas | ||
/ Included ZURB foundation JS Files | ||
%script{:src => "javascripts/lib/jquery.min.js"} | ||
%script{:src => "javascripts/lib/modernizr.foundation.js"} | ||
%script{:src => "javascripts/lib/foundation.js"} | ||
%script{:src => "javascripts/lib/app.js"} | ||
/ Included backbone.js files | ||
%script{:src => "javascripts/lib/underscore.js"} | ||
%script{:src => "javascripts/lib/backbone.js"} | ||
/ Google Maps | ||
%script{:src => "http://maps.googleapis.com/maps/api/js?key=AIzaSyB_9LmLR7oC_Gsq1ireENLC6RDvDnYfNlw&sensor=true", :type => "text/javascript"} | ||
/ JS Application entry point | ||
%script{:src => "javascripts/app.js"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
%form{action: '/province', :method => "post"} | ||
%input{:type=>'text', :size=>40, :name=>'name', :id=>'name'} | ||
%input{:type=>'submit', :value=>'New Province'} |