Skip to content

Commit

Permalink
Merge pull request #2242 from sparc-request/kg-calendar_structure_bug
Browse files Browse the repository at this point in the history
KG - Calendar Bugs
  • Loading branch information
Stuart-Johnson committed Mar 6, 2020
2 parents f4e6027 + 7974b5e commit e3cd9c4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/controllers/arms_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class ArmsController < ApplicationController
before_action :initialize_service_request, unless: :in_dashboard?
before_action :authorize_identity, unless: :in_dashboard?
before_action :authorize_admin, if: :in_dashboard?, except: [:index]
before_action :authorize_overlord, only: [:index]
before_action :find_arm, only: [:edit, :update, :destroy]

def index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
-# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
%tr
%th.service-name.text-center{ colspan: 8, rowspan: 2 }
%th.service-name.text-center{ colspan: 9, rowspan: 2 }
= LineItem.human_attribute_name(:service)
%th.notes.text-center{ colspan: 2, rowspan: 2 }
%span{ title: t(:calendars)[:tooltips][:line_item_notes], data: { toggle: 'tooltip' } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
-# Line Item Visits
- livs.each do |liv|
%tr{ class: ["line-item-#{liv.line_item.id}", "line-items-visit-#{liv.id}", "text-#{text_context}"] }
%td.service-name{ colspan: 8, title: calendar_service(liv), data: { toggle: 'tooltip', html: 'true' } }
%td.service-name{ colspan: 9, title: calendar_service(liv), data: { toggle: 'tooltip', html: 'true' } }
= calendar_service(liv)
%td.notes.editable.text-center{ colspan: 2, title: "#{Service.model_name.human} #{Note.model_name.plural.capitalize}", data: { toggle: 'tooltip' } }
= notes_button(liv, disabled: !editable, srid: service_request.try(:id), ssrid: sub_service_request.try(:id))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
-# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
%tr
%th.service-name.text-center{ colspan: 8, rowspan: 2 }
%th.service-name.text-center{ colspan: 9, rowspan: 2 }
= LineItem.human_attribute_name(:service)
%th.notes.text-center{ colspan: 2, rowspan: 2 }
%span{ title: t(:calendars)[:tooltips][:line_item_notes], data: { toggle: 'tooltip' } }
Expand Down

0 comments on commit e3cd9c4

Please sign in to comment.