diff options
| author | Luc Donnet | 2015-05-18 16:53:04 +0200 |
|---|---|---|
| committer | Luc Donnet | 2015-05-18 16:53:04 +0200 |
| commit | 8199c5d98595aa71f0305a3e033ca7f5a209fefe (patch) | |
| tree | 18ed5c84b115f19a8d4a6da09909790ddf134cdb /app/views/export_tasks | |
| parent | b3a4f0c5cde9427fafef30a56f8e016d40bad4fb (diff) | |
| download | chouette-core-8199c5d98595aa71f0305a3e033ca7f5a209fefe.tar.bz2 | |
Fix modules concern and export task validation
Diffstat (limited to 'app/views/export_tasks')
| -rw-r--r-- | app/views/export_tasks/new.html.erb | 4 | ||||
| -rw-r--r-- | app/views/export_tasks/new.js.coffee | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/views/export_tasks/new.html.erb b/app/views/export_tasks/new.html.erb index 6cb34665f..b97201f2e 100644 --- a/app/views/export_tasks/new.html.erb +++ b/app/views/export_tasks/new.html.erb @@ -1,14 +1,14 @@ <%= title_tag t(".title") %> <ul class="nav nav-pills"> <% ExportTask.data_formats.each do |format| %> - <li role="presentation"><a href="#<%= format %>" class="<%= format %>" title='<%= t(:"enumerize.data_format_detail.#{format}")%>' data-toggle="tab"><%= t(:"enumerize.data_format.#{format}") %></a></li> + <li role="presentation"><a href="#<%= format %>" class='<%= @export_task.data_format == format ? "#{format} active" : "#{format}" %>' title='<%= t(:"enumerize.data_format_detail.#{format}")%>' data-toggle="tab"><%= t(:"enumerize.data_format.#{format}") %></a></li> <% end %> </ul> <div class="tab-content"> <% @available_exports.each do |export_task| %> <%= semantic_form_for [@referential, export_task], :as => :export_task, :url => referential_export_tasks_path(@referential), :namespace => export_task.data_format ,:html => { :id => "#{export_task.data_format}", :class => "tab-pane highlight"} do |form| %> - <%= form.inputs do %> + <%= form.inputs do %> <%= form.input :user_name, :as => :hidden, :input_html => { :value => current_user.name } %> <%= form.input :user_id, :as => :hidden, :input_html => { :value => current_user.id } %> <%= form.input :data_format, :as => :hidden %> diff --git a/app/views/export_tasks/new.js.coffee b/app/views/export_tasks/new.js.coffee index 21eba2e05..dd0e284a5 100644 --- a/app/views/export_tasks/new.js.coffee +++ b/app/views/export_tasks/new.js.coffee @@ -1,2 +1,2 @@ jQuery -> - $('#workspace.export_tasks .nav a:first').tab('show') + $('#workspace.export_tasks .nav a.active').tab('show') |
