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( return replace_macros(get_markup_template('follow.tpl'),array(
'$connect' => t('Add New Connection'), '$connect' => t('Add New Connection'),
'$desc' => t('Enter the channel address'), '$desc' => t('Enter channel address'),
'$hint' => t('Example: bob@example.com, http://example.com/barbara'), '$hint' => t('Examples: bob@example.com, https://example.com/channel/barbara'),
'$follow' => t('Connect'), '$follow' => t('Connect'),
'$abook_usage_message' => $abook_usage_message '$abook_usage_message' => $abook_usage_message
)); ));

View File

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

View File

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

View File

@ -5,7 +5,7 @@
<div class="form-group"> <div class="form-group">
<div class="input-group"> <div class="input-group">
<input class="widget-input" type="text" name="search" title="{{$hint}}{{if $advanced_search}}{{$advanced_hint}}{{/if}}" placeholder="{{$desc}}" /> <input class="widget-input" type="text" name="search" title="{{$hint}}{{if $advanced_search}}{{$advanced_hint}}{{/if}}" placeholder="{{$desc}}" />
<div class="input-group-btn"> <div class="input-group-btn">
<button class="btn btn-default btn-sm" type="submit" name="submit"><i class="icon-search"></i></button> <button class="btn btn-default btn-sm" type="submit" name="submit"><i class="icon-search"></i></button>
</div> </div>
</div> </div>