aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Etienne2012-04-19 08:42:36 +0200
committerMichel Etienne2012-04-19 08:42:36 +0200
commit61cd44aa68fe296675b1a4863c71cdcfb38257ff (patch)
tree92494cd7f07c5223cc477e78d07c990c3f0e0a04
parent0671126a7169ebc6b77576703a26cd47957476c6 (diff)
downloadchouette-core-61cd44aa68fe296675b1a4863c71cdcfb38257ff.tar.bz2
update help and put an empty all icon on area types
-rw-r--r--app/assets/images/map/all.pngbin0 -> 1231 bytes
-rw-r--r--app/assets/stylesheets/help.css.scss70
-rw-r--r--app/controllers/help_controller.rb1
-rw-r--r--app/views/help/dataspaces.textile2
-rw-r--r--app/views/help/index.textile30
-rw-r--r--app/views/help/show.html.erb6
-rw-r--r--app/views/help/stop_areas.textile2
-rw-r--r--app/views/help/toc.textile26
-rw-r--r--app/views/layouts/application.html.erb2
-rw-r--r--app/views/stop_areas/index.html.erb2
10 files changed, 117 insertions, 24 deletions
diff --git a/app/assets/images/map/all.png b/app/assets/images/map/all.png
new file mode 100644
index 000000000..a638e013f
--- /dev/null
+++ b/app/assets/images/map/all.png
Binary files differ
diff --git a/app/assets/stylesheets/help.css.scss b/app/assets/stylesheets/help.css.scss
index ca68e15b5..4952b18e1 100644
--- a/app/assets/stylesheets/help.css.scss
+++ b/app/assets/stylesheets/help.css.scss
@@ -68,3 +68,73 @@ dd {
padding-left: 10px;
}
}
+#sidebarhelp.help {
+h2 {
+ font-size: 17px;
+}
+
+h3 {
+ font-size: 15px;
+}
+
+h4 {
+ font-weight: bold;
+ padding: 7px 0;
+}
+
+ul li {
+ list-style: circle;
+ margin: 7px 0 7px 20px;
+}
+
+ol {
+ list-style: none;
+ margin: 7px 0 7px 20px;
+ padding: 0;
+ counter-reset: num;
+}
+
+ol li:before {
+ content: counter(num) '. ';
+ counter-increment: num;
+}
+
+ol ol li:before {
+ content: counters(num, '.') ' ';
+}
+
+em {
+ font-style: italic;
+}
+
+strong {
+ font-weight: bold;
+}
+
+cite {
+ font-style: italic;
+}
+
+p.attr_data {
+ font-style: italic;
+ text-decoration: underline;
+}
+
+table {
+ width: 100%;
+}
+
+table td {
+ padding: 3px 5px;
+ width: 30%;
+}
+
+dt {
+ font-style:italic;
+ margin: 5px 0;
+}
+
+dd {
+ padding-left: 10px;
+}
+}
diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb
index 92f96ebd7..91e8088de 100644
--- a/app/controllers/help_controller.rb
+++ b/app/controllers/help_controller.rb
@@ -2,6 +2,7 @@ class HelpController < ApplicationController
def show
@page = HelpPage.find(slug)
+ @toc = HelpPage.find("toc")
end
private
diff --git a/app/views/help/dataspaces.textile b/app/views/help/dataspaces.textile
index 536ea4173..68e88173b 100644
--- a/app/views/help/dataspaces.textile
+++ b/app/views/help/dataspaces.textile
@@ -1,6 +1,6 @@
---
layout: default
-title: Espaces de donnees
+title: Espaces de données
---
h3. D&eacute;finition
diff --git a/app/views/help/index.textile b/app/views/help/index.textile
index 64a4281e5..c3b5ee2bd 100644
--- a/app/views/help/index.textile
+++ b/app/views/help/index.textile
@@ -8,30 +8,20 @@ Chouette v2 : it&eacute;ration 4 du 16/04/2012
Cette it&eacute;ration pr&eacute;sente les formulaires de :
* r&eacute;seaux
+* transporteurs
* lignes
* arr&ecirc;ts
* calendriers d'application
-l'avancement actuel permet de ...
+l'avancement actuel permet de :
-h3. Sommaire
+* cr&eacute;er, modifier et supprimer les objets
+* consulter les cartes
-# "G&eacute;n&eacute;ralit&eacute;s":introduction
-## "Normalisation":normalisation
-# "Espaces de donn&eacute;es":dataspaces
-# "R&eacute;seaux":networks
-# "Transporteurs":companies
-# "Lignes":lines
-## S&eacute;quences d'arr&ecirc;ts
-## Horaires
-# "Arr&ecirc;ts":stop_areas
-## Correspondances
-## Acc&egrave;s
-## Liaisons Arr&ecirc;t-Acc&egrave;s
-# "Calendriers d'application":timetables
-# Outils
-## Imports
-## Validation
-# Divers
-## "API Rest":restapis
+les action suivantes ne sont pas encore disponible :
+* d&eacute;placer un arr&ecirc;t depuis la carte
+* afficher le fond G&eacute;oportail
+* ajouter ou supprimer des dates et des p&eacute;riodes aux calendriers
+* associer les arr&ecirc;ts &agrave; leurs parents
+* associer une ITL &agrave; une ligne
diff --git a/app/views/help/show.html.erb b/app/views/help/show.html.erb
index b5c8506ee..cd4c595eb 100644
--- a/app/views/help/show.html.erb
+++ b/app/views/help/show.html.erb
@@ -1,3 +1,9 @@
<h2><%= @page.title %></h2>
<%= textilize(@page.content).html_safe %>
+
+<% content_for :sidebar do %>
+<div id="sidebarhelp" class="help">
+<%= textilize(@toc.content).html_safe %>
+</div>
+<% end %> \ No newline at end of file
diff --git a/app/views/help/stop_areas.textile b/app/views/help/stop_areas.textile
index a562e21cb..8c468e9f1 100644
--- a/app/views/help/stop_areas.textile
+++ b/app/views/help/stop_areas.textile
@@ -1,6 +1,6 @@
---
layout: default
-title: Arr&ecirc;ts
+title: ArrĂȘts
---
h3. D&eacute;finition
diff --git a/app/views/help/toc.textile b/app/views/help/toc.textile
new file mode 100644
index 000000000..f4f6998f8
--- /dev/null
+++ b/app/views/help/toc.textile
@@ -0,0 +1,26 @@
+---
+layout: default
+title: sommaire
+---
+
+h3. Sommaire
+
+# "G&eacute;n&eacute;ralit&eacute;s":introduction
+## "Normalisation":normalisation
+# "Espaces de donn&eacute;es":dataspaces
+# "R&eacute;seaux":networks
+# "Transporteurs":companies
+# "Lignes":lines
+## S&eacute;quences d'arr&ecirc;ts
+## Horaires
+# "Arr&ecirc;ts":stop_areas
+## Correspondances
+## Acc&egrave;s
+## Liaisons Arr&ecirc;t-Acc&egrave;s
+# "Calendriers d'application":timetables
+# Outils
+## Imports
+## Validation
+# Divers
+## "API Rest":restapis
+
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index f75b138fe..9c48ff00b 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <title>Chouette - <%= title %></title>
+ <title>Chouette V2 - <%= title %></title>
<%= stylesheet_link_tag :application %>
<%= javascript_include_tag :application %>
<script src="http://maps.google.com/maps/api/js?v=3.2&sensor=false"></script>
diff --git a/app/views/stop_areas/index.html.erb b/app/views/stop_areas/index.html.erb
index 873b4fb2e..d9587f36b 100644
--- a/app/views/stop_areas/index.html.erb
+++ b/app/views/stop_areas/index.html.erb
@@ -27,7 +27,7 @@
<% Chouette::StopArea.types.each do |area_type| %>
<li><%= link_with_search (image_tag("map/" + area_type.name.downcase + ".png")+t("area_types.label.#{area_type.to_s}")), "areatype_eq" => area_type.name %></li>
<% end %>
-<li><%= link_with_search t(".selection_all"), {"areatype_eq" => nil}, :class => "all" %></li>
+<li><%= link_with_search (image_tag("map/all.png")+t(".selection_all")), {"areatype_eq" => nil}, :class => "all" %></li>
</ul>
<% end %>