Merge pull request #2485 from mlorb/ml-sci-4478

Disable selecting range at update column [SCI-4478]
This commit is contained in:
Alex Kriuchykhin 2020-03-24 09:28:45 +01:00 committed by GitHub
commit 1ae2e93a85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 25 deletions

View file

@ -72,10 +72,14 @@ input[type="checkbox"].sci-checkbox {
}
}
&:disabled + .sci-checkbox-label {
&::before {
background: $color-alto;
border: $border-tertiary;
&:disabled {
cursor: default;
+ .sci-checkbox-label {
&::before {
background: $color-alto;
border: $border-tertiary;
}
}
}
}

View file

@ -1,12 +1,10 @@
<div class="form-group">
<div class="col-sm-3"></div>
<div class="col-sm-9">
<div class="permission-selector">
<span class="sci-checkbox-container">
<%= check_box_tag 'range', '', column&.repository_date_range_value?, { id: 'date-range', class: column.new_record? ? 'sci-checkbox' : 'sci-checkbox disabled' } %>
<span class="sci-checkbox-label"></span>
</span>
<span class="range-label"><%= t('libraries.manange_modal_column.datetime_type.range_label') %></span>
</div>
<span class="sci-checkbox-container">
<%= check_box_tag 'range', '', column&.repository_date_range_value?, { id: 'date-range', class: 'sci-checkbox', disabled: !column.new_record? } %>
<span class="sci-checkbox-label"></span>
</span>
<span class="range-label"><%= t('libraries.manange_modal_column.datetime_type.range_label') %></span>
</div>
</div>

View file

@ -1,12 +1,10 @@
<div class="form-group">
<div class="col-sm-3"></div>
<div class="col-sm-9">
<div class="permission-selector">
<span class="sci-checkbox-container">
<%= check_box_tag 'range', '', column&.repository_date_time_range_value?, { id: 'datetime-range', class: column.new_record? ? 'sci-checkbox' : 'sci-checkbox disabled' } %>
<span class="sci-checkbox-label"></span>
</span>
<span class="range-label"><%= t('libraries.manange_modal_column.datetime_type.range_label') %></span>
</div>
<span class="sci-checkbox-container">
<%= check_box_tag 'range', '', column&.repository_date_time_range_value?, { id: 'datetime-range', class: 'sci-checkbox', disabled: !column.new_record? } %>
<span class="sci-checkbox-label"></span>
</span>
<span class="range-label"><%= t('libraries.manange_modal_column.datetime_type.range_label') %></span>
</div>
</div>

View file

@ -1,12 +1,10 @@
<div class="form-group">
<div class="col-sm-3"></div>
<div class="col-sm-9">
<div class="permission-selector">
<span class="sci-checkbox-container">
<%= check_box_tag 'range', '', column&.repository_time_range_value?, { id: 'time-range', class: column.new_record? ? 'sci-checkbox' : 'sci-checkbox disabled' } %>
<span class="sci-checkbox-label"></span>
</span>
<span class="range-label"><%= t('libraries.manange_modal_column.datetime_type.range_label') %></span>
</div>
<span class="sci-checkbox-container">
<%= check_box_tag 'range', '', column&.repository_time_range_value?, { id: 'time-range', class: 'sci-checkbox', disabled: !column.new_record? } %>
<span class="sci-checkbox-label"></span>
</span>
<span class="range-label"><%= t('libraries.manange_modal_column.datetime_type.range_label') %></span>
</div>
</div>