forked from grosser/werstreikt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change wording and make form more stylish
- Loading branch information
Showing
5 changed files
with
51 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module StrikesHelper | ||
def strike_summary(strike) | ||
"#{strike.organisation} Streik vom #{d strike.start_on} bis #{d strike.end_on}" | ||
"#{strike.organisation}: bestreikt vom #{d strike.start_on} bis #{d strike.end_on}" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
<table> | ||
<tr> | ||
<td>Es streikt</td> | ||
<td><%= f.text_field :organisation %></td> | ||
</tr> | ||
<tr> | ||
<td>Erster Tag</td> | ||
<td><%= date_text_field f, :start_on %></td> | ||
</tr> | ||
<tr> | ||
<td>Letzter Tag</td> | ||
<td><%= date_text_field f, :end_on %></td> | ||
</tr> | ||
<tr> | ||
<td>Kommentar</td> | ||
<td><%= f.text_area :comment, :size => '40x3' %></td> | ||
</tr> | ||
</table> | ||
<label>Es wird bestreikt</label> | ||
<%= f.text_field :organisation %><br/> | ||
|
||
<div> | ||
<div class="date_wrapper"> | ||
<label>Erster Tag</label> | ||
<%= date_text_field f, :start_on %><br/> | ||
</div> | ||
<div class="date_wrapper"> | ||
<label>Letzter Tag</label> | ||
<%= date_text_field f, :end_on %><br/> | ||
</div> | ||
<%= clearer %> | ||
</div> | ||
|
||
<label>Folgen </label> | ||
<div class="label_details"> | ||
(z.B. Zugausfälle in Berlin von 9:00 bis 10:00) | ||
</div> | ||
<%= f.text_area :comment, :size => '60x5' %><br/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<h1>Streik ändern</h1> | ||
|
||
<% form_for @strike do |f| %> | ||
<% form_for @strike, :html => {:class => "full_form"} do |f| %> | ||
<%= render 'form', :f => f %> | ||
<%= submit_tag 'Ändern' %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<h1>Neuen Streik eintragen</h1> | ||
|
||
<% form_for @strike do |f| %> | ||
<% form_for @strike, :html => {:class => "full_form"} do |f| %> | ||
<%= render 'form', :f => f %> | ||
<%= submit_tag 'Streik eintragen' %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters