added style and js
This commit is contained in:
parent
00aa985fce
commit
5a8fd39e6b
@ -15,4 +15,11 @@
|
||||
//= require twitter/bootstrap
|
||||
//= require maskedinput
|
||||
//= require chosen-jquery
|
||||
//= require handlebars
|
||||
//= require ember
|
||||
//= require ember-data
|
||||
//= require_self
|
||||
//= require listpush
|
||||
//= require_tree .
|
||||
|
||||
ListPushApp = Ember.Application.create();
|
||||
|
@ -1,5 +1,5 @@
|
||||
$ ->
|
||||
$("#list_entry_localeze_categories").chosen max_selected_options: 3
|
||||
$("#list_entry_localeze_categories").chosen max_selected_options: 3, placeholder_text_multiple: "Select up to Three"
|
||||
$("#how").click ->
|
||||
$(".how").toggle()
|
||||
elem = $("#chars")
|
||||
@ -28,22 +28,8 @@ $ ->
|
||||
$("#payment_types_commadelimited_#{i}").click clear_payment_types
|
||||
|
||||
$("#list_entry_Phone").mask "(999) 999-9999"
|
||||
$("#list_entry_altnumber").mask "(999) 999-9999"
|
||||
$("#list_entry_fax").mask "(999) 999-9999"
|
||||
|
||||
open247 = ->
|
||||
if $(this).is(":checked")
|
||||
$("select[id*=day_open]").prop "disabled", "disabled"
|
||||
$("select[id*=day_close]").prop "disabled", "disabled"
|
||||
$("#set_all").unbind "click"
|
||||
$("#set_MF").unbind "click"
|
||||
clear_times()
|
||||
else
|
||||
$("select[id*=day_open]").prop "disabled", ""
|
||||
$("select[id*=day_close]").prop "disabled", ""
|
||||
$("#set_all").click all_days_same
|
||||
$("#set_MF").click all_MF
|
||||
return
|
||||
$("#list_entry_AltNumber").mask "(999) 999-9999"
|
||||
$("#list_entry_Fax").mask "(999) 999-9999"
|
||||
|
||||
clear_payment_types = ->
|
||||
unchecked = true
|
||||
|
@ -2,6 +2,22 @@ html, body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.tab-content {
|
||||
overflow: none ! important;
|
||||
}
|
||||
|
||||
.nav {
|
||||
margin-bottom: 0px ! important;
|
||||
}
|
||||
|
||||
.how {
|
||||
margin-bottom: 3px ! important;
|
||||
}
|
||||
|
||||
.chosen-container-multi {
|
||||
width: 314px ! important;
|
||||
}
|
||||
|
||||
.required label:before {
|
||||
content: "* ";
|
||||
color: #f00;
|
||||
@ -20,7 +36,6 @@ input[type="text"] {
|
||||
}
|
||||
|
||||
.controls select {
|
||||
width: 300px;
|
||||
height: 1.8em;
|
||||
}
|
||||
|
||||
|
@ -1,15 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Add a Listing</title>
|
||||
|
||||
<%= stylesheet_link_tag "application", :media => "all" %>
|
||||
<%= javascript_include_tag "application" %>
|
||||
<%= csrf_meta_tags %>
|
||||
</head>
|
||||
<body>
|
||||
<%= yield %>
|
||||
<p class="notice"><%= notice %></p>
|
||||
<p class="alert"><%= alert %></p>
|
||||
</body>
|
||||
</html>
|
@ -33,6 +33,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<%= f.label :localeze_categories, "Localeze Categories", {class: "control-label"} %>
|
||||
<div class="controls">
|
||||
<%= f.collection_select(:localeze_categories , LocalezeCategory.find(:all), :id , :name, {}, { :multiple => true, :size => 3, class: 'fuckingworkdick' }) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="control-group">
|
||||
<%= f.label :City, {class: "control-label"} %>
|
||||
<div class="controls">
|
||||
@ -94,12 +102,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<%= f.label :localeze_categories, "Localeze Categories", {class: "control-label"} %>
|
||||
<div class="controls">
|
||||
<%= f.collection_select(:localeze_categories , LocalezeCategory.find(:all), :id , :name, {}, { :multiple => true, :size => 3, class: 'fuckingworkdick' }) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="control-group">
|
||||
<%= f.label :CreditCards, {class: "control-label"} %>
|
||||
@ -142,7 +145,6 @@
|
||||
<%= select( "hours_saturday", "open", hours_hash) %>
|
||||
<%= select( "hours_saturday", "close", hours_hash) %><br>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
@ -156,7 +158,7 @@
|
||||
<div id="footer">
|
||||
<div class="container">
|
||||
<h4> When you're complete with all tabs... </h4>
|
||||
<input type="submit" name="submit" value="Submit Listing" class="btn btn-primary">
|
||||
<button id="submit" name="submit" class="btn btn-primary">Submit Listing</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user