Skip to content

Commit

Permalink
add back button to all forms
Browse files Browse the repository at this point in the history
  • Loading branch information
lislis committed Feb 12, 2019
1 parent 8dd1a3f commit 85621c4
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/views/pages/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<%= form_for :page, method: :patch, url: page_path(@page) do |f|%>
<%= render "form", f: f %>
<% end %>
<p class="mt-2"><%= link_to t("back"), page_path(@page) %></p>
</div>
</div>
</div>
1 change: 1 addition & 0 deletions app/views/pages/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<%= form_for :page, method: :post, url: subject_pages_path() do |f|%>
<%= render "form", f: f %>
<% end %>
<p class="mt-2"><%= link_to t("back"), subject_path(@subject) %></p>
</div>
</div>
</div>
2 changes: 2 additions & 0 deletions app/views/stations/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<%= form_for :station, method: :put, url: station_path(@station) do |f| %>
<%= render "form", f: f %>
<% end %>

<p class="mt-2"><%= link_to t("back"), station_path(@station) %></p>
</div>
<div class="column col-5 col-md-10">
<noscript><%= t 'staion.form.noscript' %></noscript>
Expand Down
1 change: 1 addition & 0 deletions app/views/stations/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<%= form_for :station, method: :post, url: walk_stations_path(@walk) do |f| %>
<%= render "form", f: f %>
<% end %>
<p class="mt-2"><%= link_to t("back"), walk_path(@walk) %></p>
</div>
<div class="column col-5 col-md-10">
<noscript><%= t 'staion.form.noscript' %></noscript>
Expand Down
2 changes: 2 additions & 0 deletions app/views/subjects/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<%= form_for :subject, method: :put, url: subject_path(@subject) do |f| %>
<%= render "form", f: f %>
<% end %>

<p class="mt-2"><%= link_to t("back"), subject_path(@subject) %></p>
</div>
</div>
</div>
1 change: 1 addition & 0 deletions app/views/subjects/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<%= form_for :subject, method: :post, url: station_subjects_path(@station) do |f| %>
<%= render "form", f: f %>
<% end %>
<p class="mt-2"><%= link_to t("back"), station_path(@station) %></p>
</div>
</div>
</div>
2 changes: 2 additions & 0 deletions app/views/walks/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<%= form_for :walk, method: :patch, url: walk_path(@walk) do |f| %>
<%= render 'walks/form', f: f %>
<% end %>

<p class="mt-2"><%= link_to t("back"), walk_path(@walk) %></p>
</div>
</div>
</div>
1 change: 1 addition & 0 deletions app/views/walks/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<%= form_for :walk, method: :post, url: walks_path do |f| %>
<%= render 'walks/form', f: f %>
<% end %>
<p class="mt-2"><%= link_to t("back"), private_walks_path() %></p>
</div>
</div>
</div>
1 change: 1 addition & 0 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ de:
label: "ausloggen"
last_edited: "zuletzt bearbeitet"
saving: "speichern"
back: "zurück"
password:
forgot: "Passwort vergessen?"
min_chars: "Zeichen Mindestlänge"
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ en:
label: "Sign out"
last_edited: "last edited"
saving: "saving"
back: "back"
password:
forgot: "Forgot password?"
min_chars: "characters minimun"
Expand Down

0 comments on commit 85621c4

Please sign in to comment.