aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/images/icons/disabled_left_arrow.pngbin0 -> 958 bytes
-rw-r--r--app/assets/images/icons/disabled_right_arrow.pngbin0 -> 920 bytes
-rw-r--r--app/assets/images/icons/gray_left_arrow.pngbin0 -> 567 bytes
-rw-r--r--app/assets/images/icons/gray_right_arrow.pngbin0 -> 556 bytes
-rw-r--r--app/assets/images/icons/green_left_arrow.pngbin0 -> 422 bytes
-rw-r--r--app/assets/images/icons/green_right_arrow.pngbin0 -> 423 bytes
-rw-r--r--app/assets/images/map/access_in.pngbin0 -> 840 bytes
-rw-r--r--app/assets/images/map/access_in_out.pngbin0 -> 847 bytes
-rw-r--r--app/assets/images/map/access_out.pngbin0 -> 829 bytes
-rw-r--r--app/assets/javascripts/access_points.js.coffee46
-rw-r--r--app/assets/javascripts/stop_areas.js.coffee15
-rw-r--r--app/assets/javascripts/time_tables.js.coffee7
-rw-r--r--app/assets/stylesheets/access_links.css.scss21
-rw-r--r--app/assets/stylesheets/access_points.css.scss103
-rw-r--r--app/assets/stylesheets/stop_areas.css.scss58
15 files changed, 250 insertions, 0 deletions
diff --git a/app/assets/images/icons/disabled_left_arrow.png b/app/assets/images/icons/disabled_left_arrow.png
new file mode 100644
index 000000000..3e11b9c71
--- /dev/null
+++ b/app/assets/images/icons/disabled_left_arrow.png
Binary files differ
diff --git a/app/assets/images/icons/disabled_right_arrow.png b/app/assets/images/icons/disabled_right_arrow.png
new file mode 100644
index 000000000..be6fcdf65
--- /dev/null
+++ b/app/assets/images/icons/disabled_right_arrow.png
Binary files differ
diff --git a/app/assets/images/icons/gray_left_arrow.png b/app/assets/images/icons/gray_left_arrow.png
new file mode 100644
index 000000000..7dc80a93e
--- /dev/null
+++ b/app/assets/images/icons/gray_left_arrow.png
Binary files differ
diff --git a/app/assets/images/icons/gray_right_arrow.png b/app/assets/images/icons/gray_right_arrow.png
new file mode 100644
index 000000000..a2fa02a7c
--- /dev/null
+++ b/app/assets/images/icons/gray_right_arrow.png
Binary files differ
diff --git a/app/assets/images/icons/green_left_arrow.png b/app/assets/images/icons/green_left_arrow.png
new file mode 100644
index 000000000..26149186d
--- /dev/null
+++ b/app/assets/images/icons/green_left_arrow.png
Binary files differ
diff --git a/app/assets/images/icons/green_right_arrow.png b/app/assets/images/icons/green_right_arrow.png
new file mode 100644
index 000000000..09ac3eec9
--- /dev/null
+++ b/app/assets/images/icons/green_right_arrow.png
Binary files differ
diff --git a/app/assets/images/map/access_in.png b/app/assets/images/map/access_in.png
new file mode 100644
index 000000000..6d341c517
--- /dev/null
+++ b/app/assets/images/map/access_in.png
Binary files differ
diff --git a/app/assets/images/map/access_in_out.png b/app/assets/images/map/access_in_out.png
new file mode 100644
index 000000000..5c9b066c5
--- /dev/null
+++ b/app/assets/images/map/access_in_out.png
Binary files differ
diff --git a/app/assets/images/map/access_out.png b/app/assets/images/map/access_out.png
new file mode 100644
index 000000000..bd366b7fc
--- /dev/null
+++ b/app/assets/images/map/access_out.png
Binary files differ
diff --git a/app/assets/javascripts/access_points.js.coffee b/app/assets/javascripts/access_points.js.coffee
new file mode 100644
index 000000000..74c5e926f
--- /dev/null
+++ b/app/assets/javascripts/access_points.js.coffee
@@ -0,0 +1,46 @@
+jQuery ->
+ x_y_change = (event) ->
+ if referential_projection != undefined
+ referential_point = new OpenLayers.Geometry.Point($('input#access_point_longitude').val(), $('input#access_point_latitude').val()).transform(new OpenLayers.Projection("EPSG:4326"), referential_projection )
+
+ $('input#access_point_x').val(referential_point.x)
+ $('input#access_point_y').val(referential_point.y)
+
+ feature = map.getLayersByName("access_point")[0].getFeatureByFid($('input#access_point_id').val())
+ google_point = new OpenLayers.LonLat($('input#access_point_longitude').val(), $('input#access_point_latitude').val()).transform(new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject())
+ feature.move(google_point)
+ map.setCenter(google_point, 16, false, true)
+
+ $('input#access_point_longitude').change(x_y_change)
+ $('input#access_point_latitude').change(x_y_change)
+
+ lon_lat_change = (event) ->
+ if referential_projection != undefined
+ wgs84_point = new OpenLayers.Geometry.Point($('input#access_point_x').val(), $('input#access_point_y').val()).transform(referential_projection, new OpenLayers.Projection("EPSG:4326"))
+
+ $('input#access_point_longitude').val( wgs84_point.x)
+ $('input#access_point_latitude').val( wgs84_point.y)
+
+ feature = map.getLayersByName("stop_area")[0].getFeatureByFid($('input#access_point_id').val())
+ google_point = new OpenLayers.LonLat(wgs84_point.x, wgs84_point.y).transform(new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject())
+ feature.move(google_point)
+ map.setCenter(google_point, 16, false, true)
+
+ $('input#access_point_x').change(lon_lat_change)
+ $('input#access_point_y').change(lon_lat_change)
+
+
+ # switch visibility of access_links
+ switch_generics = (event) ->
+ event.preventDefault()
+ $('.access_points .generics.content').toggle('slow')
+ $('a.generics .switcher').toggle()
+
+ $('.access_points a.generics').click(switch_generics)
+
+ switch_details = (event) ->
+ event.preventDefault()
+ $('.access_points .details.content').toggle('slow')
+ $('a.details .switcher').toggle()
+
+ $('.access_points a.details').click(switch_details)
diff --git a/app/assets/javascripts/stop_areas.js.coffee b/app/assets/javascripts/stop_areas.js.coffee
index cab862d46..aae8d4885 100644
--- a/app/assets/javascripts/stop_areas.js.coffee
+++ b/app/assets/javascripts/stop_areas.js.coffee
@@ -28,3 +28,18 @@ jQuery ->
$('input#stop_area_x').change(lon_lat_change)
$('input#stop_area_y').change(lon_lat_change)
+
+ # switch visibility of access_links
+ switch_generics = (event) ->
+ event.preventDefault()
+ $('.stop_areas .generics.content').toggle('slow')
+ $('a.generics .switcher').toggle()
+
+ $('.stop_areas a.generics').click(switch_generics)
+
+ switch_details = (event) ->
+ event.preventDefault()
+ $('.stop_areas .details.content').toggle('slow')
+ $('a.details .switcher').toggle()
+
+ $('.stop_areas a.details').click(switch_details)
diff --git a/app/assets/javascripts/time_tables.js.coffee b/app/assets/javascripts/time_tables.js.coffee
index b85376edb..d347ddc67 100644
--- a/app/assets/javascripts/time_tables.js.coffee
+++ b/app/assets/javascripts/time_tables.js.coffee
@@ -1,5 +1,12 @@
jQuery ->
# add trigger to hide/show application dates and periods
+ switch_calendars = (event) ->
+ event.preventDefault()
+ $('.time_tables .calendars.content').toggle('slow')
+ $('a.calendars .switcher').toggle()
+
+ $('.time_tables a.calendars').click(switch_calendars)
+
switch_dates = (event) ->
event.preventDefault()
$('.time_tables .dates.content').toggle('slow')
diff --git a/app/assets/stylesheets/access_links.css.scss b/app/assets/stylesheets/access_links.css.scss
new file mode 100644
index 000000000..63a55e021
--- /dev/null
+++ b/app/assets/stylesheets/access_links.css.scss
@@ -0,0 +1,21 @@
+// Place all the styles related to the lines controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
+@import "common";
+
+
+#workspace.access_links.show
+{
+
+ .summary p label {
+ font-weight: bold;
+ }
+ .duration {
+ padding-left: 10px;
+ }
+
+}
+
+
+
+
diff --git a/app/assets/stylesheets/access_points.css.scss b/app/assets/stylesheets/access_points.css.scss
new file mode 100644
index 000000000..22dc3ac3d
--- /dev/null
+++ b/app/assets/stylesheets/access_points.css.scss
@@ -0,0 +1,103 @@
+// Place all the styles related to the lines controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
+@import "common";
+
+#workspace.access_points.index
+{
+ .access_point:after {
+ @include after_div_for_object;
+ }
+
+ .access_points:after {
+ @include content_to_clear;
+ }
+
+ .access_point {
+ @include div_for_object;
+ /* to create multi-column index */
+ width: 250px;
+ float: left;
+ padding-right: 10px;
+
+ .access_type {
+ width: 25px;
+ height: 64px;
+ float: left;
+ margin-right: 10px;
+
+
+ a {
+ text-decoration: none;
+ }
+ }
+
+ }
+}
+
+#workspace.access_points.edit {
+ legend { padding-bottom: 20px; }
+}
+
+#workspace.access_points.show
+{
+ .geo_data {
+ padding-left:15px;
+ }
+
+ .summary{
+
+ p label {
+ font-weight: bold;
+ }
+ }
+
+ .access_link_pairs {
+
+ .link {
+ border: 2px solid black;
+ }
+ .access_point{
+ float: left;
+ padding: 3px 15px 0px 3px;
+ height: 25px;
+ * { vertical-align:middle; }
+ span { margin-left: 7px; }
+ img { margin: 0px 5px 0px 5px;}
+ }
+ .stop_area{
+ float: left;
+ padding: 3px 15px 0px 3px;
+ height: 25px;
+ * { vertical-align:middle; }
+ span { margin-left: 7px; }
+ img { margin: 0px 5px 0px 5px;}
+ }
+
+ .info {
+ font-size: 10px;
+ color: #777;
+ font-weight: normal;
+ padding-top: 0px;
+ padding-left: 45px;
+ padding-right: 3px;
+ padding-bottom: 3px;
+ }
+ }
+
+}
+
+
+#sidebar ul.selection li {
+ a {
+ line-height: 27px;
+
+ img{
+ height: 25px;
+ width: 25px;
+ vertical-align: middle;
+ }
+ }
+}
+
+
diff --git a/app/assets/stylesheets/stop_areas.css.scss b/app/assets/stylesheets/stop_areas.css.scss
index cd1623a05..fcfeb9fcf 100644
--- a/app/assets/stylesheets/stop_areas.css.scss
+++ b/app/assets/stylesheets/stop_areas.css.scss
@@ -118,6 +118,26 @@
height: 25px;
}
}
+ .access_point {
+ @include div_for_object;
+ /* to create multi-column index */
+ width: 250px;
+ float: left;
+ padding-right: 10px;
+
+ .access_type {
+ width: 25px;
+ height: 64px;
+ float: left;
+ margin-right: 10px;
+
+
+ a {
+ text-decoration: none;
+ }
+ }
+
+ }
}
#workspace.stop_areas.select_parent
@@ -135,6 +155,44 @@
}
}
+
+#workspace.stop_areas.access_links
+{
+ .access_link_pairs {
+ .link {
+ border: 2px solid black;
+ }
+ .access_point{
+ float: left;
+ padding: 3px 15px 0px 3px;
+ height: 25px;
+ * { vertical-align:middle; }
+ span { margin-left: 7px; }
+ img { margin: 0px 5px 0px 5px;}
+ }
+ .stop_area{
+ float: left;
+ padding: 3px 15px 0px 3px;
+ height: 25px;
+ * { vertical-align:middle; }
+ span { margin-left: 7px; }
+ img { margin: 0px 5px 0px 5px;}
+ }
+
+ .info {
+ font-size: 10px;
+ color: #777;
+ font-weight: normal;
+ padding-top: 0px;
+ padding-left: 45px;
+ padding-right: 3px;
+ padding-bottom: 3px;
+ }
+
+ }
+
+}
+
#sidebar ul.selection li {
a {
line-height: 27px;