classiccms 0.5.15 → 0.5.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Classiccms #:nodoc
2
- VERSION = "0.5.15"
2
+ VERSION = "0.5.16"
3
3
  end
@@ -6,7 +6,8 @@
6
6
  - model.fields.each do |key, info|
7
7
  .item
8
8
  - name = "[#{model}][#{key}]"
9
- - if !["_type", "_id", "created_at", "updated_at", "version", "deleted_at"].include? key
9
+
10
+ - if info.options[:input] != nil
10
11
  %label{key: key}
11
12
  %a= key
12
13
  %p{:style => 'color: red;'}
@@ -16,6 +17,7 @@
16
17
  - when 'textarea'
17
18
  %textarea{:id => key, :name=> name}= record[key]
18
19
  - when 'date'
20
+ - record[key] = Date.today if record[key] == nil
19
21
  %select{:name=>"[#{model}][#{key}(3i)]"}
20
22
  = select_options day_choices, record[key].day
21
23
  %select{:name=>"[#{model}][#{key}(2i)]"}
@@ -31,8 +33,6 @@
31
33
  %input{:type => 'hidden', :id => 'file_select', :name=> name, :value => record[key]}
32
34
 
33
35
  - when 'images'
34
- - else
35
- %label Comming soon
36
36
  - if record.new_record?
37
37
  - record.connections.each do |connection|
38
38
  %input{:type=> 'hidden', :name=> "[#{record.class}][connections][][id]", :value => connection.id}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: classiccms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.15
4
+ version: 0.5.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-14 00:00:00.000000000 Z
12
+ date: 2012-09-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec