aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/abook_edit.tpl8
-rw-r--r--view/tpl/rating_slider.tpl2
2 files changed, 9 insertions, 1 deletions
diff --git a/view/tpl/abook_edit.tpl b/view/tpl/abook_edit.tpl
index c38cc8ffb..3709944e9 100755
--- a/view/tpl/abook_edit.tpl
+++ b/view/tpl/abook_edit.tpl
@@ -49,6 +49,7 @@
{{$rating}}
+
{{/if}}
{{/if}}
@@ -65,6 +66,7 @@
<input type="hidden" name="contact_id" value="{{$contact_id}}">
<input id="contact-closeness-mirror" type="hidden" name="closeness" value="{{$close}}" />
+<input id="contact-rating-mirror" type="hidden" name="rating" value="{{$rating_val}}" />
@@ -74,6 +76,12 @@
</div>
{{/if}}
+{{if $notself}}
+<h3 class="abook-rating-text-desc">{{$lbl_rating_txt}}</h3>
+<textarea name="rating_text" id="rating-text" >{{$rating_txt}}</textarea>
+{{/if}}
+
+
{{if $multiprofs }}
<div>
<h3>{{$lbl_vis1}}</h3>
diff --git a/view/tpl/rating_slider.tpl b/view/tpl/rating_slider.tpl
index 6bdb57cd1..4702fc65b 100644
--- a/view/tpl/rating_slider.tpl
+++ b/view/tpl/rating_slider.tpl
@@ -1,4 +1,4 @@
<div id="rating-slider" class="slider" style="height: 32px; position: relative; left: 5%; width: 90%;"><input id="rating-range" type="text" name="fake-rating" value="{{$val}}" /></div>
<script>
- $("#rating-range").jRange({ from: {{$min|default:'-10'}}, to: 10, step: 1, width:'100%', showLabels: false, onstatechange: function(v) { $("#contact-rating-mirror").val(v); } });
+ $("#rating-range").jRange({ from: -10, to: 10, step: 1, width:'100%', showLabels: false, showScale: true, scale : [ '-10','-8','-6','-4','-2','0','2','4','6','8','10' ], onstatechange: function(v) { $("#contact-rating-mirror").val(v); } });
</script>