cm-admin 3.0.5 → 3.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ccdee9067f16c0163a29773911a644dc8aa6db619a424941d249c772baaa965e
4
- data.tar.gz: 928bdb9b4043d03a99873bd436d54be57ff55b3bd9b728e1b016fcdfe184e02d
3
+ metadata.gz: edc4e96d677eaa2324f074cf028cf3defc717a49a64a64331e65d18c2b55ecce
4
+ data.tar.gz: d3cb35655e16e1c36ebb221be9782d6720f556ed0dba3acff74afdf45981f61d
5
5
  SHA512:
6
- metadata.gz: 669c963c009987392eed2454e7168368b939e4ed76b9e47692e3b53221035fab221bf2ec1c743e2434d26a3e1d80323e81c7771098c5d538a7e923bff5162161
7
- data.tar.gz: 11d176b610d4ee0992cb0bb6dbbe02838ea9ee8fda42c35e85b133b734dbdd2a2a6792b2cde710d3aed73dd79fc29392bb09787a44109481a275838a190bbfa5
6
+ metadata.gz: '0686244e80d49a67a4caaa628c1dd05b6f09917fe6a74edd7707607f86d6e41325d7ba0da9d637080a8e0a616856f90d2f4d191a436a6a0fe724b1e94eeae674'
7
+ data.tar.gz: 0fd14c5144600550b7cde3644c1f44e30f3aaa3c3099feb849784d8673cb1eac9dfa88a7257a42bad27b1f943bee1fc27ce44ba6c7ec488c50bdf0d914d2a3d1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cm-admin (3.0.5)
4
+ cm-admin (3.0.6)
5
5
  caxlsx_rails
6
6
  cocoon (~> 1.2.15)
7
7
  csv-importer (~> 0.8.2)
@@ -9,14 +9,10 @@
9
9
  .form-page {
10
10
  background-color: $white;
11
11
  &__header {
12
- @extend .position-sticky, .top-0, .bg-white;
12
+ @extend .top-0, .bg-white;
13
13
  z-index: 5;
14
14
  }
15
- &__body {
16
- padding: 24px;
17
- }
18
15
  .form-container {
19
- margin-bottom: 24px;
20
16
  .form-title {
21
17
  @extend .h6, .fw-semibold;
22
18
  color: $primary-text-clr;
@@ -33,6 +29,17 @@
33
29
  }
34
30
  }
35
31
  }
32
+
33
+ .form-section-container {
34
+ @extend .p-4;
35
+ margin-bottom: 64px;
36
+ }
37
+
38
+ .form-submit-button-container {
39
+ @extend .position-absolute, .bottom-0, .bg-white, .py-3, .px-4, .w-100;
40
+ border-top: 1px solid $gray-300;
41
+ z-index: 5;
42
+ }
36
43
  }
37
44
 
38
45
  //form field styles
@@ -151,4 +158,3 @@
151
158
  gap: 8px;
152
159
  }
153
160
  }
154
-
@@ -4,16 +4,14 @@
4
4
  .breadcrumb
5
5
  = link_to "#{@model.model_name.titleize.pluralize} /", cm_admin.send(:"cm_index_#{@model.name.underscore}_path"), class: 'text-reset'
6
6
  h4 = action_title
7
- / - if @model.current_action.page_description
8
- / p.mb-0.text-body-secondary = @model.current_action.page_description
9
7
  .entity-header__actions
10
8
  - if @model.current_action.name == 'index'
11
9
  - if has_valid_policy(@ar_object, :exportable)
12
10
  .export-container
13
11
  .dropdown
14
12
  button.btn-secondary.dropdown-toggle data-bs-toggle='dropdown'
15
- i.fa.fa-arrow-down
16
- | Export
13
+ i.fa.fa-arrow-down
14
+ | Export
17
15
  ul.dropdown-menu.export-popup
18
16
  li
19
17
  .popup-option.pointer data-bs-toggle='modal' data-bs-target='#exportmodal'
@@ -1,3 +1,3 @@
1
1
  module CmAdmin
2
- VERSION = '3.0.5'
2
+ VERSION = '3.0.6'
3
3
  end
@@ -40,7 +40,7 @@ module CmAdmin
40
40
  end
41
41
 
42
42
  def split_form_into_section(resource, form_obj, entities)
43
- content_tag :div do
43
+ content_tag :div, class: 'form-section-container' do
44
44
  entities.each do |entity|
45
45
  if entity.class == CmAdmin::Models::Row
46
46
  concat create_rows(resource, form_obj, entity)
@@ -187,13 +187,14 @@ module CmAdmin
187
187
  end
188
188
 
189
189
  concat split_form_into_section(resource, form_obj, entities)
190
- concat tag.br
191
- concat form_obj.submit 'Save', class: 'btn-cta', data: { behaviour: 'form_submit', form_class: "cm_#{form_obj.object.class.name.downcase}_form", turbo_submits_with: 'Submitting...' }
192
- concat (button_tag(type: 'button', class: 'btn-loading visually-hidden', data: { behaviour: 'form_submit_spinner' }) do
193
- concat content_tag(:span, '', class: 'spinner-border spinner-border-sm', role: 'status')
194
- concat ' Submitting...'
190
+ concat(content_tag(:div, class: 'form-submit-button-container') do
191
+ concat form_obj.submit 'Save', class: 'btn-cta', data: { behaviour: 'form_submit', form_class: "cm_#{form_obj.object.class.name.downcase}_form", turbo_submits_with: 'Submitting...' }
192
+ concat(button_tag(type: 'button', class: 'btn-loading visually-hidden', data: { behaviour: 'form_submit_spinner' }) do
193
+ concat content_tag(:span, '', class: 'spinner-border spinner-border-sm', role: 'status')
194
+ concat ' Submitting...'
195
+ end)
196
+ concat button_tag 'Discard', class: 'btn-secondary discard-form', data: { behaviour: 'discard_form' } unless @is_drawer_form
195
197
  end)
196
- concat button_tag 'Discard', class: 'btn-secondary discard-form', data: { behaviour: 'discard_form' } unless @is_drawer_form
197
198
  end
198
199
  end
199
200
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cm-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
4
+ version: 3.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: exe
16
16
  cert_chain: []
17
- date: 2024-10-28 00:00:00.000000000 Z
17
+ date: 2024-10-30 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: caxlsx_rails