Skip to content

Commit

Permalink
[TASK] Apply translation form
Browse files Browse the repository at this point in the history
refs OSC-17
  • Loading branch information
rayuth-you authored and Bunhok committed Aug 10, 2022
1 parent f951af2 commit c0ef371
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/common_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -292,3 +292,7 @@ span.input-group-addon {
}
}
}

.nowrap {
white-space: nowrap;
}
4 changes: 3 additions & 1 deletion app/views/program_streams/_actions.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
- if can? :update, ProgramStream
= link_to edit_program_stream_path(program_stream, entity_type: program_stream.entity_type), class: 'btn btn-outline btn-success btn-xs' do
= fa_icon('pencil')

- if can? :delete, ProgramStream
= delete_button(program_stream)
- if (can? :manage, ProgramStream) && (I18n.default_locale.to_s == params[:locale].to_s)
= link_to new_program_stream_path(program_stream_id: program_stream.id, ngo_name: program_stream.ngo_name, entity_type: program_stream.entity_type), class: 'btn btn-outline btn-success btn-xs' do
= fa_icon('language')
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
= program_stream.completed_status
%td.places= program_stream.enrolled
%td.quantity= program_stream.quantity
%td.actions
%td.actions.nowrap
= render 'actions', program_stream: program_stream
.text-center
= paginate @program_streams, params: { tab: 'current_ngo' }, param_name: 'page_1'
2 changes: 1 addition & 1 deletion app/views/program_streams/index.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
.col-xs-3.col-sm-6.col-md-4
= submit_tag t('.search'), name: nil, class: 'btn btn-primary search'
.col-xs-12.col-sm-4.col-md-4.text-right
- if can? :manage, ProgramStream
- if (can? :manage, ProgramStream) && (I18n.default_locale.to_s == params[:locale].to_s)
.btn-group.new-program
%button.btn.btn-primary.dropdown-toggle{ "aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", :type => "button" }
= t('.new_program')
Expand Down

0 comments on commit c0ef371

Please sign in to comment.