mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:00:15 +00:00
Reformat dfrn_request and auto_request templates
This commit is contained in:
parent
7f402da40f
commit
45f6707ff4
4 changed files with 254 additions and 232 deletions
|
@ -1,14 +1,14 @@
|
|||
<h1>{{$header}}</h1>
|
||||
|
||||
{{if $myaddr == ""}}
|
||||
{{if !$myaddr}}
|
||||
<p id="dfrn-request-intro">
|
||||
{{$page_desc}}<br />
|
||||
{{$page_desc}}
|
||||
</p>
|
||||
<ul id="dfrn-request-networks">
|
||||
<li><a href="http://friendi.ca" title="{{$friendica}}">{{$friendica}}</a></li>
|
||||
<li><a href="https://diasporafoundation.org" title="{{$diaspora}}">{{$diaspora}}</a> {{$diasnote}}</li>
|
||||
<li><a href="https://gnu.io/social/" title="{{$statusnet}}">{{$statusnet}}</a></li>
|
||||
</ul>
|
||||
</p>
|
||||
<p>
|
||||
{{$invite_desc nofilter}}
|
||||
</p>
|
||||
|
@ -17,44 +17,48 @@
|
|||
</p>
|
||||
{{/if}}
|
||||
|
||||
{{if $request}}
|
||||
<form action="{{$request}}" method="post" />
|
||||
{{else}}
|
||||
<form action="dfrn_request/{{$nickname}}" method="post" />
|
||||
{{/if}}
|
||||
|
||||
<form action="{{$request|default:"dfrn_request/$nickname"}}" method="post">
|
||||
{{if $photo}}
|
||||
<img src="{{$photo}}" alt="" id="dfrn-request-photo">
|
||||
{{/if}}
|
||||
|
||||
{{if $url}}<dl><dt>{{$url_label}}</dt><dd><a target="blank" href="{{$zrl}}">{{$url}}</a></dd></dl>{{/if}}
|
||||
{{if $location}}<dl><dt>{{$location_label}}</dt><dd>{{$location}}</dd></dl>{{/if}}
|
||||
{{if $keywords}}<dl><dt>{{$keywords_label}}</dt><dd>{{$keywords}}</dd></dl>{{/if}}
|
||||
{{if $about}}<dl><dt>{{$about_label}}</dt><dd>{{$about nofilter}}</dd></dl>{{/if}}
|
||||
<dl>
|
||||
{{if $url}}
|
||||
<dt>{{$url_label}}</dt>
|
||||
<dd><a target="blank" href="{{$zrl}}">{{$url}}</a></dd>
|
||||
{{/if}}
|
||||
{{if $location}}
|
||||
<dt>{{$location_label}}</dt>
|
||||
<dd>{{$location}}</dd>
|
||||
{{/if}}
|
||||
{{if $keywords}}
|
||||
<dt>{{$keywords_label}}</dt>
|
||||
<dd>{{$keywords}}</dd>
|
||||
{{/if}}
|
||||
{{if $about}}
|
||||
<dt>{{$about_label}}</dt>
|
||||
<dd>{{$about nofilter}}</dd>
|
||||
{{/if}}
|
||||
</dl>
|
||||
|
||||
<div id="dfrn-request-url-wrapper">
|
||||
<label id="dfrn-url-label" for="dfrn-url">{{$your_address}}</label>
|
||||
{{if $myaddr}}
|
||||
{{$myaddr}}
|
||||
<input type="hidden" name="dfrn_url" id="dfrn-url" value="{{$myaddr}}" />
|
||||
<input type="hidden" name="dfrn_url" id="dfrn-url" value="{{$myaddr}}">
|
||||
{{else}}
|
||||
<input type="text" name="dfrn_url" id="dfrn-url" size="32" value="{{$myaddr}}" />
|
||||
<input type="text" name="dfrn_url" id="dfrn-url" size="32" value="{{$myaddr}}">
|
||||
{{/if}}
|
||||
{{if $url}}
|
||||
<input type="hidden" name="url" id="url" value="{{$url}}" />
|
||||
<input type="hidden" name="url" id="url" value="{{$url}}">
|
||||
{{/if}}
|
||||
<div id="dfrn-request-url-end"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="dfrn-request-info-wrapper" >
|
||||
|
||||
</div>
|
||||
|
||||
<div id="dfrn-request-submit-wrapper">
|
||||
{{if $submit}}
|
||||
<input type="submit" name="submit" id="dfrn-request-submit-button" value="{{$submit}}" />
|
||||
<input type="submit" name="submit" id="dfrn-request-submit-button" value="{{$submit}}">
|
||||
{{/if}}
|
||||
<input type="submit" name="cancel" id="dfrn-request-cancel-button" value="{{$cancel}}" />
|
||||
<input type="submit" name="cancel" id="dfrn-request-cancel-button" value="{{$cancel}}">
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -1,14 +1,15 @@
|
|||
<h1>{{$header}}</h1>
|
||||
|
||||
{{if $myaddr}}
|
||||
{{else}}
|
||||
{{if !$myaddr}}
|
||||
<p id="dfrn-request-intro">
|
||||
{{$page_desc}}<br />
|
||||
{{$page_desc}}
|
||||
</p>
|
||||
<ul id="dfrn-request-networks">
|
||||
<li><a href="http://friendi.ca" title="{{$friendica}}">{{$friendica}}</a></li>
|
||||
<li><a href="https://diasporafoundation.org" title="{{$diaspora}}">{{$diaspora}}</a> {{$diasnote}}</li>
|
||||
<li><a href="https://gnu.io/social/" title="{{$statusnet}}">{{$statusnet}}</a></li>
|
||||
</ul>
|
||||
<p>
|
||||
{{$invite_desc nofilter}}
|
||||
</p>
|
||||
<p>
|
||||
|
@ -16,31 +17,40 @@
|
|||
</p>
|
||||
{{/if}}
|
||||
|
||||
{{if $request}}
|
||||
<form action="{{$request}}" method="post">
|
||||
{{else}}
|
||||
<form action="dfrn_request/{{$nickname}}" method="post">
|
||||
{{/if}}
|
||||
|
||||
<form action="{{$request|default:"dfrn_request/$nickname"}}" method="post">
|
||||
{{if $photo}}
|
||||
<img src="{{$photo}}" alt="" id="dfrn-request-photo" />
|
||||
<img src="{{$photo}}" alt="" id="dfrn-request-photo">
|
||||
{{/if}}
|
||||
|
||||
{{if $url}}<dl><dt>{{$url_label}}</dt><dd><a target="blank" href="{{$zrl}}">{{$url}}</a></dd></dl>{{/if}}
|
||||
{{if $location}}<dl><dt>{{$location_label}}</dt><dd>{{$location}}</dd></dl>{{/if}}
|
||||
{{if $keywords}}<dl><dt>{{$keywords_label}}</dt><dd>{{$keywords}}</dd></dl>{{/if}}
|
||||
{{if $about}}<dl><dt>{{$about_label}}</dt><dd>{{$about nofilter}}</dd></dl>{{/if}}
|
||||
<dl>
|
||||
{{if $url}}
|
||||
<dt>{{$url_label}}</dt>
|
||||
<dd><a target="blank" href="{{$zrl}}">{{$url}}</a></dd>
|
||||
{{/if}}
|
||||
{{if $location}}
|
||||
<dt>{{$location_label}}</dt>
|
||||
<dd>{{$location}}</dd>
|
||||
{{/if}}
|
||||
{{if $keywords}}
|
||||
<dt>{{$keywords_label}}</dt>
|
||||
<dd>{{$keywords}}</dd>
|
||||
{{/if}}
|
||||
{{if $about}}
|
||||
<dt>{{$about_label}}</dt>
|
||||
<dd>{{$about nofilter}}</dd>
|
||||
{{/if}}
|
||||
</dl>
|
||||
|
||||
<div id="dfrn-request-url-wrapper">
|
||||
<label id="dfrn-url-label" for="dfrn-url">{{$your_address}}</label>
|
||||
{{if $myaddr}}
|
||||
{{$myaddr}}
|
||||
<input type="hidden" name="dfrn_url" id="dfrn-url" size="32" value="{{$myaddr}}" />
|
||||
<input type="hidden" name="dfrn_url" id="dfrn-url" value="{{$myaddr}}">
|
||||
{{else}}
|
||||
<input type="text" name="dfrn_url" id="dfrn-url" size="32" value="{{$myaddr}}" />
|
||||
<input type="text" name="dfrn_url" id="dfrn-url" size="32" value="{{$myaddr}}">
|
||||
{{/if}}
|
||||
{{if $url}}
|
||||
<input type="hidden" name="url" id="url" value="{{$url}}" />
|
||||
<input type="hidden" name="url" id="url" value="{{$url}}">
|
||||
{{/if}}
|
||||
<div id="dfrn-request-url-end"></div>
|
||||
</div>
|
||||
|
@ -52,24 +62,24 @@
|
|||
<div id="dfrn-request-info-wrapper">
|
||||
|
||||
{{include file="field_checkbox.tpl" field=$does_know_you}}
|
||||
<!--
|
||||
{{*
|
||||
<p id="doiknowyou">
|
||||
{{$does_know}}
|
||||
</p>
|
||||
|
||||
<div id="dfrn-request-know-yes-wrapper">
|
||||
<label id="dfrn-request-knowyou-yes-label" for="dfrn-request-knowyouyes">{{$yes}}</label>
|
||||
<input type="radio" name="knowyou" id="knowyouyes" value="1" />
|
||||
<input type="radio" name="knowyou" id="knowyouyes" value="1" >
|
||||
|
||||
<div id="dfrn-request-knowyou-break" ></div>
|
||||
</div>
|
||||
<div id="dfrn-request-know-no-wrapper">
|
||||
<label id="dfrn-request-knowyou-no-label" for="dfrn-request-knowyouno">{{$no}}</label>
|
||||
<input type="radio" name="knowyou" id="knowyouno" value="0" checked="checked" />
|
||||
<input type="radio" name="knowyou" id="knowyouno" value="0" checked="checked" >
|
||||
|
||||
<div id="dfrn-request-knowyou-end"></div>
|
||||
</div>
|
||||
-->
|
||||
*}}
|
||||
|
||||
<p id="dfrn-request-message-desc">
|
||||
{{$add_note}}
|
||||
|
@ -77,14 +87,12 @@
|
|||
<div id="dfrn-request-message-wrapper">
|
||||
<textarea name="dfrn-request-message" rows="4" cols="64"></textarea>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="dfrn-request-submit-wrapper">
|
||||
{{if $submit}}
|
||||
<input type="submit" name="submit" id="dfrn-request-submit-button" value="{{$submit}}" />
|
||||
<input type="submit" name="submit" id="dfrn-request-submit-button" value="{{$submit}}">
|
||||
{{/if}}
|
||||
<input type="submit" name="cancel" id="dfrn-request-cancel-button" value="{{$cancel}}" />
|
||||
<input type="submit" name="cancel" id="dfrn-request-cancel-button" value="{{$cancel}}">
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
<div class="generic-page-wrapper">
|
||||
<h1>{{$header}}</h1>
|
||||
|
||||
{{if $myaddr == ""}}
|
||||
{{if !$myaddr}}
|
||||
<p id="dfrn-request-intro">
|
||||
{{$page_desc}}<br />
|
||||
{{$page_desc}}
|
||||
</p>
|
||||
<ul id="dfrn-request-networks">
|
||||
<li><a href="http://friendi.ca" title="{{$friendica}}">{{$friendica}}</a></li>
|
||||
<li><a href="https://diasporafoundation.org" title="{{$diaspora}}">{{$diaspora}}</a> {{$diasnote}}</li>
|
||||
<li><a href="https://gnu.io/social/" title="{{$statusnet}}">{{$statusnet}}</a></li>
|
||||
</ul>
|
||||
</p>
|
||||
<p>
|
||||
{{$invite_desc nofilter}}
|
||||
</p>
|
||||
|
@ -18,46 +18,49 @@
|
|||
</p>
|
||||
{{/if}}
|
||||
|
||||
{{if $request}}
|
||||
<form action="{{$request}}" method="post" />
|
||||
{{else}}
|
||||
<form action="dfrn_request/{{$nickname}}" method="post" />
|
||||
{{/if}}
|
||||
<form action="{{$request|default:"dfrn_request/$nickname"}}" method="post">
|
||||
|
||||
{{if $photo}}
|
||||
<img src="{{$photo}}" alt="" id="dfrn-request-photo">
|
||||
{{/if}}
|
||||
|
||||
{{if $url}}<dl><dt>{{$url_label}}</dt><dd><a target="blank" href="{{$zrl}}">{{$url}}</a></dd></dl>{{/if}}
|
||||
{{if $location}}<dl><dt>{{$location_label}}</dt><dd>{{$location}}</dd></dl>{{/if}}
|
||||
|
||||
{{if $keywords}}<dl><dt>{{$keywords_label}}</dt><dd>{{$keywords}}</dd></dl>{{/if}}
|
||||
{{if $about}}<dl><dt>{{$about_label}}</dt><dd>{{$about}}</dd></dl>{{/if}}
|
||||
<dl>
|
||||
{{if $url}}
|
||||
<dt>{{$url_label}}</dt>
|
||||
<dd><a target="blank" href="{{$zrl}}">{{$url}}</a></dd>
|
||||
{{/if}}
|
||||
{{if $location}}
|
||||
<dt>{{$location_label}}</dt>
|
||||
<dd>{{$location}}</dd>
|
||||
{{/if}}
|
||||
{{if $keywords}}
|
||||
<dt>{{$keywords_label}}</dt>
|
||||
<dd>{{$keywords}}</dd>
|
||||
{{/if}}
|
||||
{{if $about}}
|
||||
<dt>{{$about_label}}</dt>
|
||||
<dd>{{$about}}</dd>
|
||||
{{/if}}
|
||||
</dl>
|
||||
|
||||
<div id="dfrn-request-url-wrapper">
|
||||
<label id="dfrn-url-label" for="dfrn-url">{{$your_address}}</label>
|
||||
{{if $myaddr}}
|
||||
{{$myaddr}}
|
||||
<input type="hidden" name="dfrn_url" id="dfrn-url" value="{{$myaddr}}" />
|
||||
<input type="hidden" name="dfrn_url" id="dfrn-url" value="{{$myaddr}}">
|
||||
{{else}}
|
||||
<input type="text" name="dfrn_url" id="dfrn-url" size="32" value="{{$myaddr}}" />
|
||||
<input type="text" name="dfrn_url" id="dfrn-url" size="32" value="{{$myaddr}}">
|
||||
{{/if}}
|
||||
{{if $url}}
|
||||
<input type="hidden" name="url" id="url" value="{{$url}}" />
|
||||
<input type="hidden" name="url" id="url" value="{{$url}}">
|
||||
{{/if}}
|
||||
<div id="dfrn-request-url-end"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="dfrn-request-info-wrapper" >
|
||||
|
||||
</div>
|
||||
|
||||
<div id="dfrn-request-submit-wrapper">
|
||||
{{if $submit}}
|
||||
<input class="btn btn-primary" type="submit" name="submit" id="dfrn-request-submit-button" value="{{$submit}}" />
|
||||
<input class="btn btn-primary" type="submit" name="submit" id="dfrn-request-submit-button" value="{{$submit}}">
|
||||
{{/if}}
|
||||
<input class="btn btn-primary" type="submit" name="cancel" id="dfrn-request-cancel-button" value="{{$cancel}}" />
|
||||
<input class="btn btn-default" type="submit" name="cancel" id="dfrn-request-cancel-button" value="{{$cancel}}">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
<div class="generic-page-wrapper">
|
||||
<h1>{{$header}}</h1>
|
||||
|
||||
{{if $myaddr}}
|
||||
{{else}}
|
||||
{{if !$myaddr}}
|
||||
<p id="dfrn-request-intro">
|
||||
{{$page_desc}}<br />
|
||||
{{$page_desc}}
|
||||
</p>
|
||||
<ul id="dfrn-request-networks">
|
||||
<li><a href="http://friendi.ca" title="{{$friendica}}">{{$friendica}}</a></li>
|
||||
<li><a href="https://diasporafoundation.org" title="{{$diaspora}}">{{$diaspora}}</a> {{$diasnote}}</li>
|
||||
<li><a href="https://gnu.io/social/" title="{{$statusnet}}">{{$statusnet}}</a></li>
|
||||
</ul>
|
||||
<p>
|
||||
{{$invite_desc nofilter}}
|
||||
</p>
|
||||
<p>
|
||||
|
@ -17,31 +18,40 @@
|
|||
</p>
|
||||
{{/if}}
|
||||
|
||||
{{if $request}}
|
||||
<form action="{{$request}}" method="post">
|
||||
{{else}}
|
||||
<form action="dfrn_request/{{$nickname}}" method="post">
|
||||
{{/if}}
|
||||
<form action="{{$request|default:"dfrn_request/$nickname"}}" method="post">
|
||||
|
||||
{{if $photo}}
|
||||
<img src="{{$photo}}" alt="" id="dfrn-request-photo" />
|
||||
<img src="{{$photo}}" alt="" id="dfrn-request-photo">
|
||||
{{/if}}
|
||||
|
||||
{{if $url}}<dl><dt>{{$url_label}}</dt><dd><a target="blank" href="{{$zrl}}">{{$url}}</a></dd></dl>{{/if}}
|
||||
{{if $location}}<dl><dt>{{$location_label}}</dt><dd>{{$location}}</dd></dl>{{/if}}
|
||||
{{if $keywords}}<dl><dt>{{$keywords_label}}</dt><dd>{{$keywords}}</dd></dl>{{/if}}
|
||||
{{if $about}}<dl><dt>{{$about_label}}</dt><dd>{{$about}}</dd></dl>{{/if}}
|
||||
<dl>
|
||||
{{if $url}}
|
||||
<dt>{{$url_label}}</dt>
|
||||
<dd><a target="blank" href="{{$zrl}}">{{$url}}</a></dd>
|
||||
{{/if}}
|
||||
{{if $location}}
|
||||
<dt>{{$location_label}}</dt>
|
||||
<dd>{{$location}}</dd>
|
||||
{{/if}}
|
||||
{{if $keywords}}
|
||||
<dt>{{$keywords_label}}</dt>
|
||||
<dd>{{$keywords}}</dd>
|
||||
{{/if}}
|
||||
{{if $about}}
|
||||
<dt>{{$about_label}}</dt>
|
||||
<dd>{{$about}}</dd>
|
||||
{{/if}}
|
||||
</dl>
|
||||
|
||||
<div id="dfrn-request-url-wrapper">
|
||||
<label id="dfrn-url-label" for="dfrn-url">{{$your_address}}</label>
|
||||
{{if $myaddr}}
|
||||
{{$myaddr}}
|
||||
<input type="hidden" name="dfrn_url" id="dfrn-url" size="32" value="{{$myaddr}}" />
|
||||
<input type="hidden" name="dfrn_url" id="dfrn-url" value="{{$myaddr}}">
|
||||
{{else}}
|
||||
<input type="text" name="dfrn_url" id="dfrn-url" size="32" value="{{$myaddr}}" />
|
||||
<input type="text" name="dfrn_url" id="dfrn-url" size="32" value="{{$myaddr}}">
|
||||
{{/if}}
|
||||
{{if $url}}
|
||||
<input type="hidden" name="url" id="url" value="{{$url}}" />
|
||||
<input type="hidden" name="url" id="url" value="{{$url}}">
|
||||
{{/if}}
|
||||
<div id="dfrn-request-url-end"></div>
|
||||
</div>
|
||||
|
@ -51,26 +61,25 @@
|
|||
</p>
|
||||
|
||||
<div id="dfrn-request-info-wrapper">
|
||||
|
||||
{{include file="field_checkbox.tpl" field=$does_know_you}}
|
||||
<!--
|
||||
{{*
|
||||
<p id="doiknowyou">
|
||||
{{$does_know}}
|
||||
</p>
|
||||
|
||||
<div id="dfrn-request-know-yes-wrapper">
|
||||
<label id="dfrn-request-knowyou-yes-label" for="dfrn-request-knowyouyes">{{$yes}}</label>
|
||||
<input type="radio" name="knowyou" id="knowyouyes" value="1" />
|
||||
<input type="radio" name="knowyou" id="knowyouyes" value="1" >
|
||||
|
||||
<div id="dfrn-request-knowyou-break" ></div>
|
||||
</div>
|
||||
<div id="dfrn-request-know-no-wrapper">
|
||||
<label id="dfrn-request-knowyou-no-label" for="dfrn-request-knowyouno">{{$no}}</label>
|
||||
<input type="radio" name="knowyou" id="knowyouno" value="0" checked="checked" />
|
||||
<input type="radio" name="knowyou" id="knowyouno" value="0" checked="checked" >
|
||||
|
||||
<div id="dfrn-request-knowyou-end"></div>
|
||||
</div>
|
||||
-->
|
||||
*}}
|
||||
|
||||
<p id="dfrn-request-message-desc">
|
||||
{{$add_note}}
|
||||
|
@ -78,15 +87,13 @@
|
|||
<div id="dfrn-request-message-wrapper">
|
||||
<textarea name="dfrn-request-message" rows="4" cols="64"></textarea>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="dfrn-request-submit-wrapper">
|
||||
{{if $submit}}
|
||||
<input class="btn btn-primary" type="submit" name="submit" id="dfrn-request-submit-button" value="{{$submit}}" />
|
||||
<input class="btn btn-primary" type="submit" name="submit" id="dfrn-request-submit-button" value="{{$submit}}">
|
||||
{{/if}}
|
||||
<input class="btn btn-primary" type="submit" name="cancel" id="dfrn-request-cancel-button" value="{{$cancel}}" />
|
||||
<input class="btn btn-default" type="submit" name="cancel" id="dfrn-request-cancel-button" value="{{$cancel}}">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue