summaryrefslogtreecommitdiff
path: root/addons/event/static
diff options
context:
space:
mode:
authorAtul Patel (OpenERP) <atp@tinyerp.com>2012-05-09 23:08:39 +0530
committerAtul Patel (OpenERP) <atp@tinyerp.com>2012-05-09 23:08:39 +0530
commit9dc92d18d5d86459ade21c8d9985c0deda005f20 (patch)
tree6bf8a713a536417b8daf57561ba9b25c53c95a8f /addons/event/static
parent8d2723ac4f49e17c186cb701a250abd28015e432 (diff)
[Add]: Add css file into event_sale modules.
bzr revid: atp@tinyerp.com-20120509173839-q3y5egsp8xliyfvi
Diffstat (limited to 'addons/event/static')
-rw-r--r--addons/event/static/src/css/event.css34
-rw-r--r--addons/event/static/src/js/event.js54
-rw-r--r--addons/event/static/src/xml/event_address.xml9
3 files changed, 0 insertions, 97 deletions
diff --git a/addons/event/static/src/css/event.css b/addons/event/static/src/css/event.css
index f898647db23..b0f5db0e9d2 100644
--- a/addons/event/static/src/css/event.css
+++ b/addons/event/static/src/css/event.css
@@ -119,37 +119,3 @@ div.oe_fold_column{
.no_of_seats{
width:35px;
}
-.oe_event_title{
- font-size: 25px;
-}
-.oe_sub1
-{
- float:left;
- height:50px;
- border-right: 1px solid black;
- border-color: #DCDCDC;
-}
-.oe_mapbox
-{
- width:auto;
- height:200px;
- margin-left:auto;
- margin-right:auto;
- text-align: right;
-
-}
-.oe_td_border
-{
- width: 5em;
- padding: 2px;
- border-right: 1px solid black;
- text-align: center;
- border-color: #DCDCDC;
-
-
-}
-.oe_td_date_border
-{
- border-right:1px solid black;
- border-color: #DCDCDC;
-}
diff --git a/addons/event/static/src/js/event.js b/addons/event/static/src/js/event.js
deleted file mode 100644
index 4fb368d0845..00000000000
--- a/addons/event/static/src/js/event.js
+++ /dev/null
@@ -1,54 +0,0 @@
-openerp.event = function(instance){
- instance.web.form.widgets.add('geo_address', 'instance.event.GeoAddress');
- instance.event.GeoAddress = instance.web.form.AbstractField.extend(_.extend({}, {
-
- init : function(){
- this._super.apply(this,arguments);
- },
-
- start:function(){
- },
-
- set_input_id:function(id){
- },
- set_value:function(value){
- var self = this;
- this.get_address(value).done(function(value){
- if(!self.__parentedParent.$element.find("#address_text").length)self.__parentedParent.$element.find(".oe_td_border").after(instance.web.qweb.render("address",{'record': value}));
- var address = _.str.sprintf(' %(street)s, %(city)s, %(country_id[1])s', value);
- return self.list_addresses(address);
-
- });
-
- },
- get_address:function(value){
- if (!value || value.length == 0){
- return $.Deferred().reject();
- }
- return new instance.web.DataSet (this,this.field.relation, this.build_context()).read_ids(value[0],["street","city","country_id"]);
- },
-
- list_addresses: function(address){
- var geocoder = new google.maps.Geocoder();
- geocoder.geocode( { 'address': address}, function(results, status)
- {
- if (status == google.maps.GeocoderStatus.OK){
- var lat = results[0].geometry.location.lat(),lng =results[0].geometry.location.lng();
- var myOptions = {
- zoom: 17,
- center: new google.maps.LatLng(lat,lng),
- mapTypeId: google.maps.MapTypeId.ROADMAP
- }
- return new google.maps.Marker({
- map : new google.maps.Map(document.getElementById("oe_mapbox"),myOptions),
- position: new google.maps.LatLng(lat,lng)
- });
- }
- });
-
- },
- get_value:function(){
- }
-
- }));
-}; \ No newline at end of file
diff --git a/addons/event/static/src/xml/event_address.xml b/addons/event/static/src/xml/event_address.xml
deleted file mode 100644
index 14c7051cf7d..00000000000
--- a/addons/event/static/src/xml/event_address.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
- <template>
- <td id = "address_text" t-name="address">
- <t t-esc="record.street"/> <br/>
- <t t-esc="record.city"/> <br/>
- <t t-esc="record.country_id[1]"/>
- </td>
- </template> \ No newline at end of file