kuppayam 0.1.25 → 0.1.26

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
  SHA1:
3
- metadata.gz: d64e98c40c85ceee6518683f475f8d29b8859928
4
- data.tar.gz: 06b94fc7200efec5bad9c2fa3bf56d5458acf2de
3
+ metadata.gz: eb414c7c99df903120fad10d06be42c44ad2337b
4
+ data.tar.gz: ba68a8ba7288989987f2ff887223ee70cf64a745
5
5
  SHA512:
6
- metadata.gz: 425ec91f94321d85caa7ea46accb208647275af3a55b5a384837dcc13c5e84523f843d7cc1c75c1b5bdcfc9294662677dbbabb02c37b961a3da8b4189dc591db
7
- data.tar.gz: f1ce690ff6232950dd2711aa4f05d5559879c751bf83b8ddda8e0c1513838b41551ba86afe09d9122fe8cf56ce4941577a87ec10fa2c01e95c3d34927bfbce17
6
+ metadata.gz: 6a06923404b2f121eebdb3ecde363dc679ff7674188ee593e35eebcb6cfd747832c38ac3fdfe2f8b78c34ccc1ae9db0442cea44c39e91fa486b914256ab4df2f
7
+ data.tar.gz: 9932153c8270ad014b14894b9934b2bddee091dabd148a79d830fd06507c8e7c871441e75231b2d8e103807d7753ac186c30e88a66b974bfc9f4cff56ee36572
@@ -93,9 +93,8 @@ function showMessageModal(heading, message, modalId){
93
93
  }, 1000);
94
94
  }
95
95
 
96
- function closeImageUploadModal(modalId){
97
- $('#' + imageUploadModalId).modal('hide');
98
-
96
+ function closeImageUploadModal(){
97
+ $('#' + imageUploadModalId).modal('hide');
99
98
  showAndHideModals();
100
99
  }
101
100
 
@@ -64,3 +64,8 @@
64
64
  .word-break {
65
65
  word-break: break-all !important;
66
66
  }
67
+
68
+ // Modal Form CSS Tweaks
69
+ .form-horizontal .form-inputs label.kuppayam-label {padding-top: 0px; font-size: 12px; color: #a2a2a2;}
70
+ .modal .modal-dialog .modal-content {padding:20px; border: 4px solid darkgray;}
71
+ .modal .modal-dialog .modal-content .modal-header { padding-bottom: 5px; border-bottom-width: 1px; margin-bottom:10px;}
@@ -39,7 +39,10 @@
39
39
 
40
40
  <div class="modal-footer">
41
41
  <div class="pull-right">
42
- <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
42
+
43
+ <!-- <button type="button" class="btn btn-default">Cancel</button> -->
44
+
45
+ <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "closeImageUploadModal();", class: "ml-10 btn btn-default" %>
43
46
 
44
47
  <%= submit_tag "Upload", "data-reset-text"=>"Upload", "data-loading-text"=>"Uploading ...", :class=>"btn btn-primary ml-10" %>
45
48
  </div>
@@ -8,3 +8,6 @@ $(".wysihtml5").wysihtml5(
8
8
  {"stylesheets": '/assets/wysiwyg-color.css'}
9
9
  );
10
10
 
11
+ // Initialize WYSIHTML Editor
12
+ $('input.kuppayam-tagsinput').tagsinput();
13
+
@@ -6,4 +6,7 @@ showLargeModal(heading, bodyContent, true);
6
6
  // Initialize WYSIHTML Editor
7
7
  $(".wysihtml5").wysihtml5(
8
8
  {"stylesheets": '/assets/wysiwyg-color.css'}
9
- );
9
+ );
10
+
11
+ // Initialize WYSIHTML Editor
12
+ $('input.kuppayam-tagsinput').tagsinput();
@@ -86,7 +86,7 @@
86
86
  <div class="modal-dialog">
87
87
  <div class="modal-content">
88
88
  <div class="modal-header">
89
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
89
+ <button type="button" class="close" aria-hidden="true" onclick="closeImageUploadModal();" >&times;</button>
90
90
  <h3 class="modal-title">Modal title</h3>
91
91
  </div>
92
92
  <div class="modal-body-main"></div>
@@ -11,7 +11,7 @@ module Kuppayam
11
11
  # is equivalent to:
12
12
  #
13
13
  # <div class="form-group ">
14
- # <label for="inp_name" class="col-md-4 control-label">Student Name
14
+ # <label for="inp_name" class="col-md-4 control-label kuppayam-label">Student Name
15
15
  # <span class="text-color-red ml-10 mr-5 pull-right">*</span>
16
16
  # </label>
17
17
  # <div class="col-md-8">
@@ -30,7 +30,7 @@ module Kuppayam
30
30
  # is equivalent to:
31
31
  #
32
32
  # <div class="form-group ">
33
- # <label for="inp_movie_id" class="col-md-4 control-label">
33
+ # <label for="inp_movie_id" class="col-md-4 control-label kuppayam-label">
34
34
  # Please select a Movie
35
35
  # </label>
36
36
  # <div class="col-md-8">
@@ -76,14 +76,14 @@ module Kuppayam
76
76
  error_class: "",
77
77
  param_name: label.gsub(" ", "_").underscore,
78
78
  required: true,
79
- label_col_class: "col-md-12 text-align-left pb-10",
79
+ label_col_class: "col-md-12 text-align-left pb-2",
80
80
  field_col_class: "col-md-12"
81
81
  )
82
82
  end
83
83
 
84
84
 
85
85
  content_tag(:div, class: "form-group #{options[:error_class]}") do
86
- content_tag(:label, class: "#{options[:label_col_class]} control-label") do
86
+ content_tag(:label, class: "#{options[:label_col_class]} control-label kuppayam-label") do
87
87
  star_content = options[:required] ? "*" : raw("&nbsp;&nbsp;")
88
88
  raw(label + content_tag(:span, star_content, class: "text-color-red ml-10 mr-5"))
89
89
  end +
@@ -103,7 +103,7 @@ module Kuppayam
103
103
  # theme_form_field(@project, :name)
104
104
  #
105
105
  # <div class="form-group ">
106
- # <label class="col-md-4 control-label" for="inp_name">
106
+ # <label class="col-md-4 control-label kuppayam-label" for="inp_name">
107
107
  # Name
108
108
  # <span class="text-color-red ml-10 mr-5 pull-right">*</span>
109
109
  # </label>
@@ -153,7 +153,7 @@ module Kuppayam
153
153
  options[:html_options].reverse_merge!(value: date_value)
154
154
  text_field_tag(options[:param_name], object.send(field_name.to_s), **options[:html_options])
155
155
  when :textarea
156
- options[:html_options].reverse_merge!(style: "height: 140px;")
156
+ options[:html_options].reverse_merge!(style: "height: 100px;")
157
157
  text_area_tag(options[:param_name], object.send(field_name.to_s), **options[:html_options])
158
158
  when :file
159
159
  file_field_tag(options[:param_name], **options[:html_options])
@@ -174,7 +174,7 @@ module Kuppayam
174
174
  # ---------------------------
175
175
  # <% Choose Customer - Drop Down %>
176
176
  # <div class="form-group ">
177
- # <label for="inp_name" class="col-md-4 control-label">
177
+ # <label for="inp_name" class="col-md-4 control-label kuppayam-label">
178
178
  # Customer
179
179
  # <span class="text-color-red ml-10 mr-5 pull-right">*</span>
180
180
  # </label>
@@ -239,7 +239,7 @@ module Kuppayam
239
239
  # is equivalent to:
240
240
  # ---------------------------
241
241
  # <div class="form-group ">
242
- # <label for="inp_name" class="col-md-4 control-label">Choose Plan
242
+ # <label for="inp_name" class="col-md-4 control-label kuppayam-label">Choose Plan
243
243
  # <span class="text-color-red ml-10 mr-5 pull-right">*</span>
244
244
  # </label>
245
245
  # <div class="col-md-8">
@@ -1,3 +1,3 @@
1
1
  module Kuppayam
2
- VERSION = '0.1.25'
2
+ VERSION = '0.1.26'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuppayam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.25
4
+ version: 0.1.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - kpvarma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-16 00:00:00.000000000 Z
11
+ date: 2017-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails