Feature #15167 » 0001-Hide-unused-Options-section-in-spent-time-report.patch
| app/assets/stylesheets/application.css | ||
|---|---|---|
|
.query-totals>span:not(:first-child) {margin-inline-start: 0.6em;}
|
||
|
.query-totals .value {font-weight:bold;}
|
||
|
body.controller-timelog .query-totals {margin-block-start: initial;}
|
||
|
/* Spent time report does not use options, hide the options section */
|
||
|
body.controller-timelog.action-report fieldset#options {display: none;}
|
||
|
body.controller-gantts fieldset#options > div > div {
|
||
|
display: flex;
|
||
| app/views/timelog/report.html.erb | ||
|---|---|---|
|
<% @report.criteria.each do |criterion| %>
|
||
|
<%= hidden_field_tag 'criteria[]', criterion, :id => nil %>
|
||
|
<% end %>
|
||
|
<%# Report view does not use query options for results, so the options section is hidden by CSS. %>
|
||
|
<%= render :partial => 'timelog/date_range' %>
|
||
|
<p><label for='columns'><%= l(:label_details) %></label>: <%= select_tag 'columns', options_for_select([[l(:label_year), 'year'],
|
||
| test/system/timelog_test.rb | ||
|---|---|---|
|
assert page.has_no_text?('Comment')
|
||
|
end
|
||
|
end
|
||
|
def test_report_should_hide_options
|
||
|
log_user 'jsmith', 'jsmith'
|
||
|
visit '/projects/ecookbook/time_entries/report'
|
||
|
assert_selector 'fieldset#options', visible: :hidden
|
||
|
end
|
||
|
end
|
||
- « Previous
- 1
- 2
- Next »