some template work on follow widget

This commit is contained in:
Mario Vavti 2016-01-14 10:36:45 +01:00
parent e500a08f15
commit 69573c6afe
4 changed files with 11 additions and 17 deletions

View File

@ -170,8 +170,8 @@ function widget_follow($args) {
}
return replace_macros(get_markup_template('follow.tpl'),array(
'$connect' => t('Add New Connection'),
'$desc' => t('Enter the channel address'),
'$hint' => t('Example: bob@example.com, http://example.com/barbara'),
'$desc' => t('Enter channel address'),
'$hint' => t('Examples: bob@example.com, https://example.com/channel/barbara'),
'$follow' => t('Connect'),
'$abook_usage_message' => $abook_usage_message
));

View File

@ -23,17 +23,6 @@
margin-top: 10px;
}
/* follow */
#side-follow-url {
margin-top: 5px;
width: 100%;
}
#side-follow-submit {
margin-top: 15px;
}
/* notes */
#note-text {

View File

@ -1,9 +1,14 @@
<div id="follow-sidebar" class="widget">
<h3>{{$connect}}</h3>
<div id="connect-desc">{{$desc}}</div>
<form action="follow" method="post" />
<input id="side-follow-url" type="text" name="url" title="{{$hint}}" />
<input id="side-follow-submit" type="submit" name="submit" class="btn btn-default" value="{{$follow}}" />
<div class="form-group">
<div class="input-group">
<input class="widget-input" type="text" name="url" title="{{$hint}}" placeholder="{{$desc}}" />
<div class="input-group-btn">
<button class="btn btn-default btn-sm" type="submit" name="submit" value="{{$follow}}"><i class="icon-plus"></i></button>
</div>
</div>
</div>
</form>
{{if $abook_usage_message}}
<div class="usage-message" id="abook-usage-message">{{$abook_usage_message}}</div>