Storm.NewProperty = Ember.Object.extend({ building_name:"", estate_name: "", street_number_high: "", street_number_low: "", unit_number:"", level_number:"", street_name: "", state: Storm.Options.state_names.content[0].abbreviation, suburb: "", formatted_address: function(){ return //do something on existing properties and compute a new one
}.property('street_number_high','street_number_low') });
Storm.TextField = Ember.View.extend( Storm.AsyncValidation, {
className: "span4", classNames: "control-group", type: 'text', value: "", maxlength:"255", placeholder: "", code: '', appended_text: null, classNameBindings: ['code'], message: "", templateName: "inputs/text-field" });
Storm.AccessController=Ember.ObjectController.extend(Storm.EnquiryHelper,{
contact_type_options: Storm.Options.contact_type, update_enquiry_details: function(enquiry){ }, validation_check: function(){ if(Ember.isEmpty(this.get('contact_name'))) { var element = $('.validation-check'); element.trigger(Storm.validInputEvent(element.attr("id"))); $('.validation-check .close_button').trigger('click'); } }.observes('contact_name') }
);
partial "inputs/error_message"
.span12.search-box.asset-box
Storm.AssetSearchBox classNames="span12 asset-search-field"
table.table.table-hover.table-condensed.hidden.asset_search_result.search-result
tbody
each result in view.asset_search_results
Storm.AssetSearchResultView contentBinding='result'
else
tr
td No results found ...