cewebs-aman 2.0.1 → 2.0.3
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/cewebs-aman.gemspec +1 -1
- data/lib/cewebs-aman/helpers/relaxngui_1_2.rb +9 -9
- data/server/data/strings.xml +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d5feec3d848aa04668167e90c799fa3d060664f6ef99182a4c58ce5750d1e7cc
|
|
4
|
+
data.tar.gz: efbbe8291da148ef5829227e8a1731cdb2c1f704afb160893f4be03942e82c85
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10dc7975cc4610e5d9b740b23bb0745e6a67221898907bf86e18377b7ff813fa6df94a914c49ad3ac7847079b42132ef0d81e337ad1531388bd46175886fa768
|
|
7
|
+
data.tar.gz: fbf714ad29f05851d503d598806ca0769cc9ea9912d611f62135330ddef4c739cd1e9249b32f1c16e5ff5231a5c34a5f67baaec39f82f571344c7b5a4805281b
|
data/cewebs-aman.gemspec
CHANGED
|
@@ -104,7 +104,7 @@ class RelaxNGUI_1_2 < CEWebS::View
|
|
|
104
104
|
end
|
|
105
105
|
end
|
|
106
106
|
end
|
|
107
|
-
input_ :type => 'text', :name => "CEWebS_svalue_#{i}", :value =>
|
|
107
|
+
input_ :type => 'text', :name => "CEWebS_svalue_#{i}", :value => h_!(value)
|
|
108
108
|
end
|
|
109
109
|
i += 1
|
|
110
110
|
end
|
|
@@ -243,7 +243,7 @@ class RelaxNGUI_1_2 < CEWebS::View
|
|
|
243
243
|
checkform = formatform = ""
|
|
244
244
|
data = sp.find("r:data").first
|
|
245
245
|
value = @file.sfind(@path + @id + set)
|
|
246
|
-
out =
|
|
246
|
+
out = capture_! { checkform, formatform = set_form_fields(sp,data,set,value) }
|
|
247
247
|
if out != ''
|
|
248
248
|
form_(:id => "CEWebS_#{path_to_id(set)}", :onsubmit => "#{checkform != "" ? "if (!#{checkform}){ return false; }; " : ""}setPath('#{set}',true,'#{operation}');#{formatform != "" ? "#{formatform};" : ""}return false;") do
|
|
249
249
|
text_ out
|
|
@@ -294,7 +294,7 @@ class RelaxNGUI_1_2 < CEWebS::View
|
|
|
294
294
|
if cchoice.empty? # when no cewebs:choice
|
|
295
295
|
if !data.find("c:link").empty? # when cewebs:link
|
|
296
296
|
# the administration of the engine shows the links
|
|
297
|
-
input_(:type => "text", :class => "size-xxl", :name => 'CEWebS_value', :value =>
|
|
297
|
+
input_(:type => "text", :class => "size-xxl", :name => 'CEWebS_value', :value => h_!(value), :placeholder => 'CEWebS://')
|
|
298
298
|
else
|
|
299
299
|
if para.empty? # when no parameters
|
|
300
300
|
textarea_(value, :name => 'CEWebS_value', :class => 'size-max', :cols => '30', :rows => '3', :style => 'overflow:hidden', :onfocus => 'resize_textarea(this)', :onkeyup => 'resize_textarea(this)')
|
|
@@ -303,9 +303,9 @@ class RelaxNGUI_1_2 < CEWebS::View
|
|
|
303
303
|
checkform = "val_string_regex('#{path_to_id(set)}',new RegExp(/^#{data.find("string(r:param[@name='pattern'])")}$/),'#{@strings.sfind('nomatch')}')"
|
|
304
304
|
end
|
|
305
305
|
if data.find("r:param[@name='maxLength']").empty? # when no maxlenght
|
|
306
|
-
input_(:type => "text", :class => "size-xxl", :name => 'CEWebS_value', :value =>
|
|
306
|
+
input_(:type => "text", :class => "size-xxl", :name => 'CEWebS_value', :value => h_!(value))
|
|
307
307
|
else # when maxlength
|
|
308
|
-
input_(:maxlength => "#{data.find("string(r:param[@name='maxLength'])")}", :type => "text", :class => "size-xxl", :name => 'CEWebS_value', :value =>
|
|
308
|
+
input_(:maxlength => "#{data.find("string(r:param[@name='maxLength'])")}", :type => "text", :class => "size-xxl", :name => 'CEWebS_value', :value => h_!(value))
|
|
309
309
|
end
|
|
310
310
|
end
|
|
311
311
|
end
|
|
@@ -762,7 +762,7 @@ class RelaxNGUI_1_2 < CEWebS::View
|
|
|
762
762
|
tnode, upath, retdata = rl
|
|
763
763
|
if maxc == max and max != 0
|
|
764
764
|
tr_ do
|
|
765
|
-
td_(:colspan => '2', :class => 'margin-right-big') {
|
|
765
|
+
td_(:colspan => '2', :class => 'margin-right-big') { space_ }
|
|
766
766
|
td_ :colspan => '5', :class => 'margin-left-big margin-right-big' do
|
|
767
767
|
a_ @strings.sfind("more"), :onclick => "change_location('more_list',\"#{exp_to_javascript(path)}\",'')", :class => 'click link'
|
|
768
768
|
end
|
|
@@ -793,7 +793,7 @@ class RelaxNGUI_1_2 < CEWebS::View
|
|
|
793
793
|
spath = path_to_schema_path(tnode.path)
|
|
794
794
|
sui = @schema.lfind("#{spath}/c:ui",@language)
|
|
795
795
|
td_ :class => "margin-left-big margin-right-big" do
|
|
796
|
-
text_
|
|
796
|
+
text_ h_!(sui.sfind("c:row"))
|
|
797
797
|
end
|
|
798
798
|
end
|
|
799
799
|
retdata.each_with_index do |colcontent,j|
|
|
@@ -926,12 +926,12 @@ class RelaxNGUI_1_2 < CEWebS::View
|
|
|
926
926
|
def print_content(type,cont,cut=nil)
|
|
927
927
|
#{{{
|
|
928
928
|
cont = cont.to_s
|
|
929
|
-
short = cut.nil? || cont.length < cut.to_i ?
|
|
929
|
+
short = cut.nil? || cont.length < cut.to_i ? h_!(cont).gsub(/\n/,"<br/>") : h_!(cont[0,cut.to_i]) + (cut.to_i == 0 ? "" : "...")
|
|
930
930
|
format = { 'dateTime' => 'datetimeformat', 'time' => 'timeformat', 'date' => 'dateformat' }[type]
|
|
931
931
|
if format && cont != ''
|
|
932
932
|
text_ Time.parse(cont).strftime(@strings.sfind(format))
|
|
933
933
|
elsif type == 'anyURI'
|
|
934
|
-
a_(:href =>
|
|
934
|
+
a_(:href => h_!(cont)) { short }
|
|
935
935
|
else
|
|
936
936
|
text_ short
|
|
937
937
|
end
|
data/server/data/strings.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<strings xml:lang="en">
|
|
3
3
|
<back>Back</back>
|
|
4
4
|
<newentry>New entry</newentry>
|
|
5
|
-
<source
|
|
5
|
+
<source>π</source>
|
|
6
6
|
<source_edit>Edit the XML source of this part of the configuration.</source_edit>
|
|
7
7
|
<source_error_meanwhile>The configuration has been changed in the meantime. Nothing has been saved.</source_error_meanwhile>
|
|
8
8
|
<source_error_wellformed>The source is not well-formed. Nothing has been saved.</source_error_wellformed>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<strings xml:lang="de">
|
|
35
35
|
<back>Zurück</back>
|
|
36
36
|
<newentry>Neuer Eintrag</newentry>
|
|
37
|
-
<source
|
|
37
|
+
<source>π</source>
|
|
38
38
|
<source_edit>XML Quelltext dieses Teils der Konfiguration bearbeiten.</source_edit>
|
|
39
39
|
<source_error_meanwhile>Die Konfiguration wurde in der Zwischenzeit geändert. Es wurde nichts gespeichert.</source_error_meanwhile>
|
|
40
40
|
<source_error_wellformed>Der Quelltext ist nicht wohlgeformt. Es wurde nichts gespeichert.</source_error_wellformed>
|