aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-15 16:37:47 -0800
committerfriendica <info@friendica.com>2015-01-15 16:37:47 -0800
commite7932d97a25bf621082e93f47816a2a107a6d05f (patch)
tree3b94988ec1074e6c645e430da2c181dd9700f3bc /view
parent1c9299ed4224d37716079be173d75319d2501b71 (diff)
downloadvolse-hubzilla-e7932d97a25bf621082e93f47816a2a107a6d05f.tar.gz
volse-hubzilla-e7932d97a25bf621082e93f47816a2a107a6d05f.tar.bz2
volse-hubzilla-e7932d97a25bf621082e93f47816a2a107a6d05f.zip
editing stuff for poco reputation
Diffstat (limited to 'view')
-rw-r--r--view/css/mod_connedit.css9
-rwxr-xr-xview/tpl/abook_edit.tpl8
-rw-r--r--view/tpl/rating_slider.tpl2
3 files changed, 18 insertions, 1 deletions
diff --git a/view/css/mod_connedit.css b/view/css/mod_connedit.css
index 98c53602b..44a0a1abf 100644
--- a/view/css/mod_connedit.css
+++ b/view/css/mod_connedit.css
@@ -52,6 +52,15 @@
width: 600px !important;
}
+#rating-slider {
+ width: 600px !important;
+}
+
+#rating-text {
+ width: 400px;
+ height: 60px;
+}
+
.abook-edit-them, .abook-edit-me {
float: left;
margin-left: 10px;
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>