mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
Merge pull request #2485 from mlorb/ml-sci-4478
Disable selecting range at update column [SCI-4478]
This commit is contained in:
commit
1ae2e93a85
4 changed files with 23 additions and 25 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue