diff options
| author | jpl | 2016-08-04 16:35:56 +0200 |
|---|---|---|
| committer | jpl | 2016-08-04 16:35:56 +0200 |
| commit | c20aa8d80d3ca2d90655d830716d8183c780dcc3 (patch) | |
| tree | ca4e8d30b0b103872593a34236707abe2e4f511d | |
| parent | 6658f7dd01d7162496b039ab6626724cf2e7ff51 (diff) | |
| download | chouette-core-c20aa8d80d3ca2d90655d830716d8183c780dcc3.tar.bz2 | |
Refs #1295: convert erb to slim (vehicle_journey_imports)
| -rw-r--r-- | app/views/vehicle_journey_imports/new.html.erb | 14 | ||||
| -rw-r--r-- | app/views/vehicle_journey_imports/new.html.slim | 11 |
2 files changed, 11 insertions, 14 deletions
diff --git a/app/views/vehicle_journey_imports/new.html.erb b/app/views/vehicle_journey_imports/new.html.erb deleted file mode 100644 index 7a0e0ac96..000000000 --- a/app/views/vehicle_journey_imports/new.html.erb +++ /dev/null @@ -1,14 +0,0 @@ -<%= title_tag t('vehicle_journey_imports.new.title') %> - -<div class="main_actions"> -</div> - -<%= semantic_form_for [@referential, @line, @route, @vehicle_journey_import] do |form| %> - <%= form.inputs do %> - <%= form.input :file, :as => :file, :input_html => { :title => "#{t('.tooltip.file')}", :'data-placement' => "right", :'data-toggle' => "tooltip", :'data-trigger' =>"hover" } %> - <% end %> - <%= form.actions do %> - <%= form.action :submit, :as => :button , :label => t( 'formtastic.import' ) %> - <%= form.action :cancel, :as => :link %> - <% end %> -<% end %> diff --git a/app/views/vehicle_journey_imports/new.html.slim b/app/views/vehicle_journey_imports/new.html.slim new file mode 100644 index 000000000..6220de273 --- /dev/null +++ b/app/views/vehicle_journey_imports/new.html.slim @@ -0,0 +1,11 @@ += title_tag t('vehicle_journey_imports.new.title') + +.main_actions + += semantic_form_for [@referential, @line, @route, @vehicle_journey_import] do |form| + = form.inputs do + = form.input :file, as: :file, input_html: { title: "#{t('.tooltip.file')}", 'data-placement': "right", 'data-toggle': "tooltip", 'data-trigger': "hover" } + + = form.actions do + = form.action :submit, as: :button , label: t('formtastic.import') + = form.action :cancel, as: :link
\ No newline at end of file |
