1
1
Fork 0

Reformat dfrn_request and auto_request templates

This commit is contained in:
Hypolite Petovan 2020-02-05 22:40:09 -05:00
parent 7f402da40f
commit 45f6707ff4
4 changed files with 254 additions and 232 deletions

View file

@ -1,60 +1,64 @@
<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>
<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>
{{$invite_desc nofilter}}
</p>
<p>
{{$desc nofilter}}
{{$desc nofilter}}
</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}}
<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}}" />
{{else}}
<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}}" />
{{/if}}
<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}}">
{{/if}}
{{if $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>
<div id="dfrn-request-submit-wrapper">
{{if $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}}" />
{{if $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}}">
</div>
</form>

View file

@ -1,90 +1,98 @@
<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>
<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>
{{$invite_desc nofilter}}
<p>
{{$invite_desc nofilter}}
</p>
<p>
{{$desc nofilter}}
{{$desc nofilter}}
</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}}
<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}}" />
{{else}}
<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}}" />
{{/if}}
<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}}">
{{/if}}
{{if $url}}
<input type="hidden" name="url" id="url" value="{{$url}}">
{{/if}}
<div id="dfrn-request-url-end"></div>
</div>
</div>
<p id="dfrn-request-options">
{{$pls_answer}}
</p>
<p id="dfrn-request-options">
{{$pls_answer}}
</p>
<div id="dfrn-request-info-wrapper" >
<div id="dfrn-request-info-wrapper">
{{include file="field_checkbox.tpl" field=$does_know_you}}
<!--
<p id="doiknowyou">
{{$does_know}}
</p>
{{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}}
</p>
<p id="dfrn-request-message-desc">
{{$add_note}}
</p>
<div id="dfrn-request-message-wrapper">
<textarea name="dfrn-request-message" rows="4" cols="64" ></textarea>
<textarea name="dfrn-request-message" rows="4" cols="64"></textarea>
</div>
</div>
</div>
<div id="dfrn-request-submit-wrapper">
{{if $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}}" />
{{if $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}}">
</div>
</form>

View file

@ -1,63 +1,66 @@
<div class="generic-page-wrapper">
<h1>{{$header}}</h1>
<h1>{{$header}}</h1>
{{if $myaddr == ""}}
<p id="dfrn-request-intro">
{{$page_desc}}<br />
<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>
<p>
{{$desc}}
</p>
{{if !$myaddr}}
<p id="dfrn-request-intro">
{{$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>
{{$desc}}
</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}}
<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>
{{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}}
<div id="dfrn-request-url-wrapper" >
<label id="dfrn-url-label" for="dfrn-url" >{{$your_address}}</label>
<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>
<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>
</form>
</div>

View file

@ -1,92 +1,99 @@
<div class="generic-page-wrapper">
<h1>{{$header}}</h1>
<h1>{{$header}}</h1>
{{if $myaddr}}
{{else}}
<p id="dfrn-request-intro">
{{$page_desc}}<br />
<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>
{{$invite_desc nofilter}}
</p>
<p>
{{$desc}}
</p>
{{if !$myaddr}}
<p id="dfrn-request-intro">
{{$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>
{{$desc}}
</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}}
<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>
{{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}}
<div id="dfrn-request-url-wrapper" >
<label id="dfrn-url-label" for="dfrn-url" >{{$your_address}}</label>
<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>
</div>
<p id="dfrn-request-options">
{{$pls_answer}}
</p>
<p id="dfrn-request-options">
{{$pls_answer}}
</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-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}}
</p>
<p id="dfrn-request-message-desc">
{{$add_note}}
</p>
<div id="dfrn-request-message-wrapper">
<textarea name="dfrn-request-message" rows="4" cols="64" ></textarea>
<textarea name="dfrn-request-message" rows="4" cols="64"></textarea>
</div>
</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}}" />
{{/if}}
<input class="btn btn-primary" type="submit" name="cancel" id="dfrn-request-cancel-button" value="{{$cancel}}" />
{{if $submit}}
<input class="btn btn-primary" type="submit" name="submit" id="dfrn-request-submit-button" value="{{$submit}}">
{{/if}}
<input class="btn btn-default" type="submit" name="cancel" id="dfrn-request-cancel-button" value="{{$cancel}}">
</div>
</form>
</form>
</div>