diff options
Diffstat (limited to 'templates/edit_journey.html.ep')
-rw-r--r-- | templates/edit_journey.html.ep | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/templates/edit_journey.html.ep b/templates/edit_journey.html.ep index ff36381..cb867e5 100644 --- a/templates/edit_journey.html.ep +++ b/templates/edit_journey.html.ep @@ -1,11 +1,11 @@ -<h1>Zugfahrt bearbeiten</h1> +<h1>Fahrt bearbeiten</h1> % if ($error and $error eq 'notfound') { <div class="row"> <div class="col s12"> <div class="card caution-color"> <div class="card-content white-text"> <span class="card-title">Fehler</span> - <p>Zugfahrt nicht gefunden.</p> + <p>Fahrt nicht gefunden.</p> </div> </div> </div> @@ -39,11 +39,11 @@ </p> <p> Nach einer Änderung können die ursprünglich eingetragenen - Zeiten nicht mehr wiederhergestellt werden. + Daten nicht wiederhergestellt werden. </p> <table class="striped"> <tr> - <th scope="row">Zug</th> + <th scope="row">Fahrt</th> <td> <%= $journey->{type} %> <%= $journey->{no} %> % if ($journey->{line}) { @@ -61,38 +61,50 @@ </td> </tr> <tr> + <th scope="row">Start:</th> + <td class="input-field"> + %= text_field 'from_name', id => 'from_name', class => 'autocomplete validate', autocomplete => 'off', required => undef + </td> + </tr> + <tr> <th scope="row">Geplante Abfahrt</th> - <td> + <td class="input-field"> %= text_field 'sched_departure', id => 'sched_departure', class => 'validate', required => undef, pattern => '[0-9][0-9]?[.][0-9][0-9]?[.][0-9][0-9][0-9][0-9] +[0-9][0-9]:[0-9][0-9]' </td> </tr> <tr> <th scope="row">Tatsächliche Abfahrt</th> - <td> + <td class="input-field"> %= text_field 'rt_departure', id => 'real_departure', class => 'validate', pattern => '[0-9][0-9]?[.][0-9][0-9]?[.][0-9][0-9][0-9][0-9] +[0-9][0-9]:[0-9][0-9]' </td> </tr> <tr> + <th scope="row">Ziel:</th> + <td class="input-field"> + %= text_field 'to_name', id => 'to_name', class => 'autocomplete validate', autocomplete => 'off', required => undef + </td> + </tr> + <tr> <th scope="row">Geplante Ankunft</th> - <td> + <td class="input-field"> %= text_field 'sched_arrival', id => 'sched_arrival', class => 'validate', required => undef, pattern => '[0-9][0-9]?[.][0-9][0-9]?[.][0-9][0-9][0-9][0-9] +[0-9][0-9]:[0-9][0-9]' </td> </tr> <tr> <th scope="row">Tatsächliche Ankunft</th> - <td> + <td class="input-field"> %= text_field 'rt_arrival', id => 'real_arrival', class => 'validate', pattern => '[0-9][0-9]?[.][0-9][0-9]?[.][0-9][0-9][0-9][0-9] +[0-9][0-9]:[0-9][0-9]' </td> </tr> <tr> <th scope="row">Route</th> - <td> + <td class="input-field"> %= text_area 'route', id => 'route', class => 'materialize-textarea' </td> </tr> <tr> <th scope="row">Kommentar</th> - <td> + <td class="input-field"> %= text_field 'comment' </td> </tr> @@ -108,7 +120,7 @@ <div class="col s6 m6 l6 center-align"> <button class="btn waves-effect waves-light" type="submit" name="action" value="save"> Speichern - <i class="material-icons right">send</i> + <i class="material-icons right" aria-hidden="true">send</i> </button> </div> </div> |