simple-admin 0.1.1.pre.alpha → 0.1.2.pre.alpha
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 +4 -4
- data/ISSUE_TEMPLATE.md +19 -0
- data/app/assets/javascripts/simple_admin/application.js +2 -14
- data/app/assets/javascripts/simple_admin/core.js +12 -0
- data/app/views/simple_admin/admin/system/entities/index.html.erb +1 -1
- data/app/views/simple_admin/fields/number/_form.html.erb +5 -5
- data/lib/generators/simple_admin/install_generator.rb +0 -7
- data/lib/simple_admin/version.rb +1 -1
- metadata +4 -3
- data/lib/generators/templates/user.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bf0afcf85c61c6204b30e4c54387fb396229cf7
|
4
|
+
data.tar.gz: fb1485737c969acd5bf3a4e7dad402cc55db903c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f62a4ff1b346e034c1e4999909d17965767305a80a0b6e21393082bb82a83925cf60d00e35f28b17625a0f7344ce937875422548e330932251801873c0495eaa
|
7
|
+
data.tar.gz: f017439734ea3a7989a7dab92b22c2fe84ce14b48bf52e63a1dc9d8d476b5ba429cb0c21bbc197749bc2bce802320e5725dd520ca313c5bf09ce423662fcb1f4
|
data/ISSUE_TEMPLATE.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
## Precheck
|
2
|
+
|
3
|
+
- Do not use the issues tracker for help or support, try Stack Overflow.
|
4
|
+
- For bugs, do a quick search and make sure the bug has not yet been reported
|
5
|
+
- Finally, be nice and have fun!
|
6
|
+
|
7
|
+
## Environment
|
8
|
+
|
9
|
+
- Ruby **[version]**
|
10
|
+
- Rails **[version]**
|
11
|
+
- SimpleAdmin **[version]**
|
12
|
+
|
13
|
+
## Current behavior
|
14
|
+
|
15
|
+
Include code samples, errors, steps to reproduce the error and stacktraces if appropriate.
|
16
|
+
|
17
|
+
Will be even more helpful if you provide a sample application or a test case that reproduces the error.
|
18
|
+
|
19
|
+
## Expected behavior
|
@@ -10,19 +10,7 @@
|
|
10
10
|
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
11
|
// about supported directives.
|
12
12
|
//
|
13
|
-
//= require rails-ujs
|
14
13
|
//= require jquery
|
14
|
+
//= require jquery_ujs
|
15
15
|
//= require jquery-ui/widgets/tabs
|
16
|
-
|
17
|
-
$(document).ready(function() {
|
18
|
-
if (!!$('#tabs').length) {
|
19
|
-
$('#tabs').tabs();
|
20
|
-
}
|
21
|
-
|
22
|
-
if (!!$('#tags').length) {
|
23
|
-
$('#tags').tagsInput({
|
24
|
-
width: '100%',
|
25
|
-
height: '36px'
|
26
|
-
});
|
27
|
-
}
|
28
|
-
});
|
16
|
+
//= require simple_admin/core
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<div class="block">
|
19
19
|
<div class="block-content">
|
20
20
|
<table class="table table-responsive table-striped table-borderless table-header-bg">
|
21
|
-
<%= render 'simple_admin/admin/shared/collection/table_header', column_names: ['#', 'Model Class Name', '
|
21
|
+
<%= render 'simple_admin/admin/shared/collection/table_header', column_names: ['#', 'Model Class Name', 'Label', 'Status'] %>
|
22
22
|
|
23
23
|
<tbody>
|
24
24
|
<% @resources.each do |resource| %>
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<
|
2
|
-
<
|
3
|
-
<div class="
|
4
|
-
|
1
|
+
<div class="form-group">
|
2
|
+
<label class="col-xs-12" for="example-text-input"><%= field.label %></label>
|
3
|
+
<div class="col-sm-9">
|
4
|
+
<%= f.text_field field.name, class: 'form-control' %>
|
5
5
|
</div>
|
6
|
-
</
|
6
|
+
</div>
|
data/lib/simple_admin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2.pre.alpha
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitriy Strukov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -154,11 +154,13 @@ files:
|
|
154
154
|
- CODE_OF_CONDUCT.md
|
155
155
|
- CONTRIBUTING.md
|
156
156
|
- Gemfile
|
157
|
+
- ISSUE_TEMPLATE.md
|
157
158
|
- LICENSE.txt
|
158
159
|
- README.md
|
159
160
|
- Rakefile
|
160
161
|
- app/assets/fonts/Simple-Line-Icons.woff
|
161
162
|
- app/assets/javascripts/simple_admin/application.js
|
163
|
+
- app/assets/javascripts/simple_admin/core.js
|
162
164
|
- app/assets/stylesheets/simple_admin/application.scss
|
163
165
|
- app/assets/stylesheets/simple_admin/global/buttons.css
|
164
166
|
- app/assets/stylesheets/simple_admin/global/errors.css
|
@@ -254,7 +256,6 @@ files:
|
|
254
256
|
- lib/generators/templates/migrations/core_migrations/entity_field_settings_migration.rb
|
255
257
|
- lib/generators/templates/migrations/core_migrations/entity_field_types_migration.rb
|
256
258
|
- lib/generators/templates/migrations/core_migrations/entity_fields_migration.rb
|
257
|
-
- lib/generators/templates/user.rb
|
258
259
|
- lib/generators/templates/views/devise/registrations/new.html.erb
|
259
260
|
- lib/generators/templates/views/devise/sessions/new.html.erb
|
260
261
|
- lib/generators/templates/views/devise/shared/_footer.html.erb
|
@@ -1,24 +0,0 @@
|
|
1
|
-
module SimpleAdmin
|
2
|
-
class User < Base
|
3
|
-
has_one :profile, dependent: :destroy
|
4
|
-
|
5
|
-
has_many :posts
|
6
|
-
has_many :comments
|
7
|
-
|
8
|
-
accepts_nested_attributes_for :profile, update_only: true
|
9
|
-
delegate :avatar, :first_name, :last_name, to: :profile, allow_nil: true
|
10
|
-
|
11
|
-
after_create :create_profile!
|
12
|
-
|
13
|
-
def full_name
|
14
|
-
"#{first_name} #{last_name}"
|
15
|
-
end
|
16
|
-
|
17
|
-
private
|
18
|
-
|
19
|
-
def create_profile!
|
20
|
-
profile = build_profile
|
21
|
-
profile.save
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|