ish_manager 0.1.8.38 → 0.1.8.39
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4030d8345c8ea9bd5c98d7e753ab2170af94c8b
|
4
|
+
data.tar.gz: 4e63bc9f9e0eb0156b34d770f80d8138d3f01e1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ae50a5edeb02e5da77271bf045751b2ce068c0fe49ea7d547dfdacec4447d33fd82ade89519a47a692767c4d4ba01f29f220f5709211f1be742cfd2f99886cc
|
7
|
+
data.tar.gz: bb617b3d39cc641166c4765427a1f30c1169bf6bf22334377c583b26599a6df3e9cd4f0a45ce00c36d7fc4cc66e74198d04a88d007fed268ee27cb4e820d7beb
|
@@ -12,7 +12,9 @@ class IshManager::Ability
|
|
12
12
|
# role manager
|
13
13
|
if user.profile && user.profile.role_name == :manager
|
14
14
|
|
15
|
-
can [ :create_newsitem, :show ], ::City
|
15
|
+
can [ :create_newsitem, :show, :new_feature, :create_feature ], ::City
|
16
|
+
|
17
|
+
can [ :new ], ::Feature
|
16
18
|
|
17
19
|
can [ :cities_index, :home, :sites_index, :venues_index ], ::Manager
|
18
20
|
|
@@ -20,10 +22,12 @@ class IshManager::Ability
|
|
20
22
|
|
21
23
|
can [ :new, :create ], Report
|
22
24
|
|
23
|
-
can [ :show, :edit, :update, :create_newsitem ], ::Site do |site|
|
25
|
+
can [ :show, :edit, :update, :create_newsitem, :new_feature, :create_feature ], ::Site do |site|
|
24
26
|
!site.is_private && !site.is_trash
|
25
27
|
end
|
26
28
|
|
29
|
+
# can [ :new_feature, :create_feature ], ::Tag
|
30
|
+
|
27
31
|
end
|
28
32
|
|
29
33
|
if user.profile && user.profile.sudoer?
|
@@ -9,47 +9,112 @@
|
|
9
9
|
%ul
|
10
10
|
- report.errors.full_messages.each do |msg|
|
11
11
|
%li= msg
|
12
|
+
.row
|
13
|
+
.col-md-6
|
14
|
+
.field
|
15
|
+
= f.label :"Name & Name SEO"
|
16
|
+
= f.text_field :name, :class=> 'form-control', :placeholder => "name of report", :type => "text"
|
17
|
+
= f.text_field :name_seo, :class=> 'form-control', :placeholder => "name seo", :type => "text"
|
18
|
+
|
19
|
+
.col-md-6
|
20
|
+
.field
|
21
|
+
= f.label :subhead
|
22
|
+
= f.text_area :subhead, :class => 'form-control', :rows => "5", :style=> "resize: vertical;"
|
12
23
|
|
13
24
|
.field
|
14
|
-
= f.label :
|
15
|
-
= f.
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
.
|
20
|
-
|
21
|
-
|
25
|
+
= f.label :Description
|
26
|
+
= f.text_area :descr, :class => 'tinymce'
|
27
|
+
|
28
|
+
%br/
|
29
|
+
|
30
|
+
.row
|
31
|
+
.col-md-6
|
32
|
+
/ Single button
|
33
|
+
%label{} City
|
34
|
+
= select :report, :city_id, @cities_list, :class=>"btn"
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
.col-md-6
|
40
|
+
.field
|
41
|
+
= f.label :Coordinates
|
42
|
+
.panel.panel-default
|
43
|
+
.panel-body
|
44
|
+
.col-md-6
|
45
|
+
.form-group
|
46
|
+
%label{} X-coordinate
|
47
|
+
= f.text_field :x, :placeholder => "x", :type => "text", :class=>"form-control"
|
48
|
+
|
49
|
+
.col-md-6
|
50
|
+
.form-group
|
51
|
+
%label{} Y-coordinate
|
52
|
+
= f.text_field :y, :placeholder => "y", :type => "text", :class=>"form-control"
|
53
|
+
|
54
|
+
|
22
55
|
|
23
56
|
.row
|
24
|
-
.
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
.card
|
29
|
-
.card-content
|
30
|
-
= f.label :coords
|
31
|
-
.row
|
32
|
-
.col-xs-6
|
33
|
-
= f.text_field :x
|
34
|
-
.col-xs-6
|
35
|
-
= f.text_field :y
|
36
|
-
|
37
|
-
.card
|
38
|
-
.card-content
|
39
|
-
= f.label :site
|
57
|
+
.col-md-6
|
58
|
+
/ Single button
|
59
|
+
%label{} Sites
|
60
|
+
.btn-group{:style => "width:100%"}
|
40
61
|
= select :report, :site_id, @sites_list
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
62
|
+
|
63
|
+
|
64
|
+
.col-md-6
|
65
|
+
%label{} Tags
|
66
|
+
= select :report, :tag_id, @tags_list, :value=>"select a tag"
|
67
|
+
|
68
|
+
.panel.panel-default
|
69
|
+
.panel-heading
|
70
|
+
%h3.panel-title Upload File
|
71
|
+
.panel-body
|
72
|
+
.row
|
73
|
+
.col-md-6.col-md-offset-3
|
74
|
+
%button.btn.btn-primary.btn-lg.btn-block{:type => "button", :onClick => "upload()"} Upload File
|
75
|
+
= file_field_tag :photo, :style => "display:none", :id=>"photo"
|
76
|
+
.div.center
|
77
|
+
%img#thumbnail_image_boy.img-thumbnail{:alt => "uploaded image", :width=>"200px"}/
|
78
|
+
|
79
|
+
|
80
|
+
:javascript
|
81
|
+
|
82
|
+
$( document ).ready(function() {
|
83
|
+
$(".caret").html("");
|
84
|
+
});
|
85
|
+
|
86
|
+
function upload(){
|
87
|
+
document.getElementById("photo").click();
|
88
|
+
}
|
89
|
+
|
90
|
+
function handleFileSelect(evt) {
|
91
|
+
var files = evt.target.files;
|
92
|
+
|
93
|
+
// Loop through the FileList and render image files as thumbnails.
|
94
|
+
for (var i = 0, f; f = files[i]; i++) {
|
95
|
+
// Only process image files.
|
96
|
+
if (f.type.match('image.*')) {
|
97
|
+
var reader = new FileReader();
|
98
|
+
|
99
|
+
reader.onload = function (e) {
|
100
|
+
// get loaded data and render thumbnail.
|
101
|
+
document.getElementById("thumbnail_image_boy").src = e.target.result;
|
102
|
+
};
|
103
|
+
|
104
|
+
// read the image file as a data URL.
|
105
|
+
reader.readAsDataURL(f);
|
106
|
+
}else{
|
107
|
+
$("#photo").val("");
|
108
|
+
alert("Only images accepted.");
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
document.getElementById('photo').addEventListener('change', handleFileSelect, false);
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
.wrapper{:style => "text-align: center;"}
|
117
|
+
%p.center
|
118
|
+
= f.check_box :is_public
|
119
|
+
= f.label :is_public
|
120
|
+
%button.btn.btn-success{:type => "submit"} submit
|
@@ -1,57 +1,50 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
.
|
4
|
-
|
5
|
-
|
6
|
-
.
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
2
|
+
.panel
|
3
|
+
.panel-content
|
4
|
+
- url ||= site_path(site)
|
5
|
+
= form_for site, :url => url do |f|
|
6
|
+
.row
|
7
|
+
.col-lg-6
|
8
|
+
= f.label :domain
|
9
|
+
= f.text_field :domain, :disabled => true
|
10
|
+
.col-lg-6
|
11
|
+
= f.label :lang
|
12
|
+
= f.text_field :lang, :disabled => true
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
.row
|
22
|
-
.large-6.columns
|
23
|
-
= f.label :homepage_layout
|
24
|
-
= f.text_field :homepage_layout
|
25
|
-
.large-6.columns
|
26
|
-
= f.label :layout
|
27
|
-
= f.text_field :layout
|
14
|
+
.row
|
15
|
+
.col-lg-6
|
16
|
+
= f.label :title
|
17
|
+
= f.text_field :title
|
18
|
+
.col-lg-6
|
19
|
+
= f.label :subhead
|
20
|
+
= f.text_area :subhead
|
28
21
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
22
|
+
.row
|
23
|
+
.col-lg-6
|
24
|
+
= f.label :homepage_layout
|
25
|
+
= f.select :homepage_layout, [ 'show' ]
|
26
|
+
.col-lg-6
|
27
|
+
= f.label :layout
|
28
|
+
= f.select :layout, [ 'application' ]
|
36
29
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
30
|
+
.row
|
31
|
+
.col-lg-4
|
32
|
+
= f.label :n_features
|
33
|
+
= f.text_field :n_features
|
34
|
+
.col-lg-4
|
35
|
+
= f.label :n_newsitems
|
36
|
+
= f.text_field :n_newsitems
|
37
|
+
.col-lg-4
|
38
|
+
= f.check_box :is_trash
|
39
|
+
= f.label :is_trash
|
40
|
+
%br
|
41
|
+
= f.check_box :is_private
|
42
|
+
= f.label :is_private
|
43
|
+
%br
|
44
|
+
= f.check_box :is_ads_enabled
|
45
|
+
= f.label :is_ads_enabled
|
53
46
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
47
|
+
.row
|
48
|
+
.col-lg-12
|
49
|
+
= f.submit 'Submit', :class => :btn
|
50
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ish_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.8.
|
4
|
+
version: 0.1.8.39
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|