some work on poke template
This commit is contained in:
parent
64a5b33e77
commit
8f92b6eea4
12 changed files with 206 additions and 51 deletions
|
@ -3,31 +3,33 @@
|
|||
|
||||
<div id="poke-desc">{{$desc}}</div>
|
||||
|
||||
<form action="poke" method="get">
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<div id="poke-recip-label">{{$clabel}}</div>
|
||||
<br />
|
||||
<input id="poke-recip" type="text" size="64" maxlength="255" value="{{$name|escape:'html'}}" name="pokename" autocomplete="off" />
|
||||
<input id="poke-recip-complete" type="hidden" value="{{$id}}" name="cid" />
|
||||
<input id="poke-parent" type="hidden" value="{{$parent}}" name="parent" />
|
||||
<br />
|
||||
<br />
|
||||
<div id="poke-action-label">{{$choice}}</div>
|
||||
<br />
|
||||
<br />
|
||||
<select name="verb" id="poke-verb-select" >
|
||||
{{foreach $verbs as $v}}
|
||||
<option value="{{$v.0}}">{{$v.1}}</option>
|
||||
{{/foreach}}
|
||||
</select>
|
||||
<br />
|
||||
<br />
|
||||
<div id="poke-private-desc">{{$prv_desc}}</div>
|
||||
<input type="checkbox" name="private" {{if $parent}}disabled="disabled"{{/if}} value="1" />
|
||||
<br />
|
||||
<br />
|
||||
<input type="submit" name="submit" value="{{$submit|escape:'html'}}" />
|
||||
</form>
|
||||
<div id="poke-wrapper">
|
||||
<form action="poke" method="get">
|
||||
|
||||
<div id="poke-recipient">
|
||||
<div id="poke-recip-label">{{$clabel}}</div>
|
||||
<input id="poke-recip" type="text" size="64" maxlength="255" value="{{$name|escape:'html'}}" name="pokename" autocomplete="off" />
|
||||
<input id="poke-recip-complete" type="hidden" value="{{$id}}" name="cid" />
|
||||
<input id="poke-parent" type="hidden" value="{{$parent}}" name="parent" />
|
||||
</div>
|
||||
|
||||
<div id="poke-action">
|
||||
<div id="poke-action-label">{{$choice}}</div>
|
||||
<select name="verb" id="poke-verb-select" >
|
||||
{{foreach $verbs as $v}}
|
||||
<option value="{{$v.0}}">{{$v.1}}</option>
|
||||
{{/foreach}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div id="poke-privacy-settings">
|
||||
<div id="poke-private-desc">{{$prv_desc}}</div>
|
||||
<input type="checkbox" name="private" {{if $parent}}disabled="disabled"{{/if}} value="1" />
|
||||
</div>
|
||||
|
||||
<input type="submit" name="submit" value="{{$submit|escape:'html'}}" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
|
18
view/templates/poke_head.tpl
Normal file
18
view/templates/poke_head.tpl
Normal file
|
@ -0,0 +1,18 @@
|
|||
<script src="{{$baseurl}}/library/jquery_ac/friendica.complete.js" ></script>
|
||||
|
||||
<script>$(document).ready(function() {
|
||||
var a;
|
||||
a = $("#poke-recip").autocomplete({
|
||||
serviceUrl: '{{$base}}/acl',
|
||||
minChars: 2,
|
||||
width: 350,
|
||||
onSelect: function(value,data) {
|
||||
$("#poke-recip-complete").val(data);
|
||||
}
|
||||
});
|
||||
a.setOptions({ params: { type: 'a' }});
|
||||
|
||||
|
||||
});
|
||||
|
||||
</script>
|
|
@ -2022,6 +2022,21 @@ a.mail-list-link {
|
|||
.message-links-end {
|
||||
clear: both;
|
||||
}
|
||||
#poke-desc {
|
||||
margin: 5px 0 10px;
|
||||
}
|
||||
|
||||
#poke-wrapper {
|
||||
padding: 10px 0 20px;
|
||||
}
|
||||
|
||||
#poke-recipient, #poke-action, #poke-privacy-settings {
|
||||
margin: 10px 0 30px;
|
||||
}
|
||||
|
||||
#poke-recip-label, #poke-action-label, #prvmail-message-label {
|
||||
margin: 10px 0 10px;
|
||||
}
|
||||
|
||||
#sidebar-group-list ul {
|
||||
list-style-type: none;
|
||||
|
|
|
@ -2500,6 +2500,22 @@ a.mail-list-link {
|
|||
clear: both;
|
||||
}
|
||||
|
||||
#poke-desc {
|
||||
margin: 5px 0 10px;
|
||||
}
|
||||
|
||||
#poke-wrapper {
|
||||
padding: 10px 0 0px;
|
||||
}
|
||||
|
||||
#poke-recipient, #poke-action, #poke-privacy-settings {
|
||||
margin: 10px 0 30px;
|
||||
}
|
||||
|
||||
#poke-recip-label, #poke-action-label, #prvmail-message-label {
|
||||
margin: 10px 0 10px;
|
||||
}
|
||||
|
||||
#sidebar-group-list ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
|
|
@ -2315,6 +2315,22 @@ a.mail-list-link {
|
|||
clear: both;
|
||||
}
|
||||
|
||||
#poke-desc {
|
||||
margin: 5px 0 10px;
|
||||
}
|
||||
|
||||
#poke-wrapper {
|
||||
padding: 10px 0 20px;
|
||||
}
|
||||
|
||||
#poke-recipient, #poke-action, #poke-privacy-settings {
|
||||
margin: 10px 0 30px;
|
||||
}
|
||||
|
||||
#poke-recip-label, #poke-action-label, #prvmail-message-label {
|
||||
margin: 10px 0 10px;
|
||||
}
|
||||
|
||||
#sidebar-group-list ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
|
|
@ -2267,6 +2267,20 @@ ul.tabs li .active {
|
|||
-ms-transition: all 0.2s ease-in-out;
|
||||
transition: all 0.2s ease-in-out;
|
||||
}
|
||||
/* poke */
|
||||
#poke-desc {
|
||||
margin: 5px 0 25px;
|
||||
}
|
||||
#poke-recipient,
|
||||
#poke-action,
|
||||
#poke-privacy-settings {
|
||||
margin: 10px 0 30px;
|
||||
}
|
||||
#poke-recip-label,
|
||||
#poke-action-label,
|
||||
#prvmail-message-label {
|
||||
margin: 10px 0 10px;
|
||||
}
|
||||
/* theme screenshot */
|
||||
.screenshot,
|
||||
#theme-preview {
|
||||
|
|
|
@ -2267,6 +2267,20 @@ ul.tabs li .active {
|
|||
-ms-transition: all 0.2s ease-in-out;
|
||||
transition: all 0.2s ease-in-out;
|
||||
}
|
||||
/* poke */
|
||||
#poke-desc {
|
||||
margin: 5px 0 25px;
|
||||
}
|
||||
#poke-recipient,
|
||||
#poke-action,
|
||||
#poke-privacy-settings {
|
||||
margin: 10px 0 30px;
|
||||
}
|
||||
#poke-recip-label,
|
||||
#poke-action-label,
|
||||
#prvmail-message-label {
|
||||
margin: 10px 0 10px;
|
||||
}
|
||||
/* theme screenshot */
|
||||
.screenshot,
|
||||
#theme-preview {
|
||||
|
|
|
@ -2267,6 +2267,20 @@ ul.tabs li .active {
|
|||
-ms-transition: all 0.2s ease-in-out;
|
||||
transition: all 0.2s ease-in-out;
|
||||
}
|
||||
/* poke */
|
||||
#poke-desc {
|
||||
margin: 5px 0 25px;
|
||||
}
|
||||
#poke-recipient,
|
||||
#poke-action,
|
||||
#poke-privacy-settings {
|
||||
margin: 10px 0 30px;
|
||||
}
|
||||
#poke-recip-label,
|
||||
#poke-action-label,
|
||||
#prvmail-message-label {
|
||||
margin: 10px 0 10px;
|
||||
}
|
||||
/* theme screenshot */
|
||||
.screenshot,
|
||||
#theme-preview {
|
||||
|
|
|
@ -1525,6 +1525,18 @@ ul.tabs {
|
|||
&:hover .mail-delete { .opaque(1); }
|
||||
|
||||
}
|
||||
/* poke */
|
||||
#poke-desc {
|
||||
margin: 5px 0 25px;
|
||||
}
|
||||
|
||||
#poke-recipient, #poke-action, #poke-privacy-settings {
|
||||
margin: 10px 0 30px;
|
||||
}
|
||||
|
||||
#poke-recip-label, #poke-action-label, #prvmail-message-label {
|
||||
margin: 10px 0 10px;
|
||||
}
|
||||
|
||||
/* theme screenshot */
|
||||
.screenshot, #theme-preview {
|
||||
|
|
|
@ -2693,6 +2693,25 @@ margin-left: 0px;
|
|||
border: 1px solid #7C7D7B;
|
||||
}
|
||||
|
||||
/* ========== */
|
||||
/* = Poke = */
|
||||
/* ========== */
|
||||
#poke-desc {
|
||||
margin: 5px 0 20px;
|
||||
}
|
||||
#poke-wrapper {
|
||||
margin: 40px 0 20px;
|
||||
}
|
||||
#poke-recipient, #poke-action, #poke-privacy-settings {
|
||||
margin: 10px 0 30px;
|
||||
}
|
||||
#poke-recip-label, #poke-action-label, #prvmail-message-label {
|
||||
margin: 10px 0 20px;
|
||||
}
|
||||
#poke-recip {
|
||||
float: none;
|
||||
}
|
||||
|
||||
/* ================= */
|
||||
/* = Notifications = */
|
||||
/* ================= */
|
||||
|
|
|
@ -2496,6 +2496,22 @@ a.mail-list-link {
|
|||
border: none;
|
||||
}
|
||||
|
||||
/* ========== */
|
||||
/* = Poke = */
|
||||
/* ========== */
|
||||
#poke-desc {
|
||||
margin: 10px 0 20px;
|
||||
}
|
||||
#poke-wrapper {
|
||||
margin: 40px 0 20px;
|
||||
}
|
||||
#poke-recipient, #poke-action, #poke-privacy-settings {
|
||||
margin: 10px 0 30px;
|
||||
}
|
||||
#poke-recip-label, #poke-action-label, #prvmail-message-label {
|
||||
margin: 10px 0 20px;
|
||||
}
|
||||
|
||||
/* ========== */
|
||||
/* = Events = */
|
||||
/* ========== */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue