+
<div id="contact-edit-wrapper">
{{* Insert Tab-Nav *}}
{{* This is the Action menu where contact related actions like 'ignore', 'hide' can be performed *}}
<div id="contact-edit-actions">
- <a class="btn" rel="#contact-actions-menu" href="#" id="contact-edit-actions-button">{{$contact_action_button}}</a>
+ <button class="btn" id="contact-edit-actions-button">{{$contact_action_button}}</button>
<ul role="menu" aria-haspopup="true" id="contact-actions-menu" class="menu-popup">
+ {{if $contact_actions.follow}}<li role="menuitem"><a href="{{$contact_actions.follow.url}}" title="{{$contact_actions.follow.title}}">{{$contact_actions.follow.label}}</a></li>{{/if}}
+ {{if $contact_actions.unfollow}}<li role="menuitem"><a href="{{$contact_actions.unfollow.url}}" title="{{$contact_actions.unfollow.title}}">{{$contact_actions.unfollow.label}}</a></li>{{/if}}
{{if $lblsuggest}}<li role="menuitem"><a href="{{$contact_actions.suggest.url}}" title="{{$contact_actions.suggest.title}}">{{$contact_actions.suggest.label}}</a></li>{{/if}}
{{if $poll_enabled}}<li role="menuitem"><a href="{{$contact_actions.update.url}}" title="{{$contact_actions.update.title}}">{{$contact_actions.update.label}}</a></li>{{/if}}
{{if $contact_actions.updateprofile}}<li role="menuitem"><a href="{{$contact_actions.updateprofile.url}}" title="{{$contact_actions.updateprofile.title}}">{{$contact_actions.updateprofile.label}}</a></li>{{/if}}
{{if $poll_enabled}}
<li><div id="contact-edit-last-update-text">{{$lastupdtext}} <span id="contact-edit-last-updated">{{$last_update}}</span></div>
- {{if $poll_interval}}
- <span id="contact-edit-poll-text">{{$updpub}}</span> {{$poll_interval nofilter}}
- {{/if}}
+ {{if $poll_interval}}
+ <span id="contact-edit-poll-text">{{$updpub}}</span> {{$poll_interval nofilter}}
+ {{/if}}
</li>
{{/if}}
</div> {{* End of contact-edit-status-wrapper *}}
{{* Some information about the contact from the profile *}}
- <dl><dt>{{$profileurllabel}}</dt><dd><a target="blank" href="{{$url}}">{{$profileurl}}</a></dd></dl>
+ <dl><dt>{{$profileurllabel}}</dt><dd><a target="blank" href="{{$profileurl}}">{{$profileurl}}</a></dd></dl>
{{if $location}}<dl><dt>{{$location_label}}</dt><dd>{{$location nofilter}}</dd></dl>{{/if}}
{{if $xmpp}}<dl><dt>{{$xmpp_label}}</dt><dd>{{$xmpp}}</dd></dl>{{/if}}
{{if $matrix}}<dl><dt>{{$matrix_label}}</dt><dd>{{$matrix}}</dd></dl>{{/if}}
<hr />
- {{if $contact_settings_label}}
+ {{if $contact_settings_label}}
<h4 id="contact-edit-settings-label" class="fakelink" onclick="openClose('contact-edit-settings')">{{$contact_settings_label}}</h4>
<div id="contact-edit-settings">
<input type="hidden" name="contact_id" value="{{$contact_id}}">
- <div id="contact-edit-end"></div>
- {{include file="field_checkbox.tpl" field=$notify_new_posts}}
- {{if $fetch_further_information}}
- {{include file="field_select.tpl" field=$fetch_further_information}}
- {{if $fetch_further_information.2 == 2 || $fetch_further_information.2 == 3}} {{include file="field_textarea.tpl" field=$ffi_keyword_denylist}} {{/if}}
- {{/if}}
- {{if $allow_remote_self}}
- {{include file="field_select.tpl" field=$remote_self}}
- {{/if}}
-
- {{include file="field_checkbox.tpl" field=$hidden}}
-
- <div id="contact-edit-info-wrapper">
- <h4>{{$lbl_info1}}</h4>
- <textarea id="contact-edit-info" rows="8" cols="60" name="info">{{$info}}</textarea>
- </div>
- <div id="contact-edit-info-end"></div>
+ <div id="contact-edit-end"></div>
+
+ {{include file="field_checkbox.tpl" field=$notify_new_posts}}
+
+ {{if $fetch_further_information}}
+ {{include file="field_select.tpl" field=$fetch_further_information}}
+ {{if $fetch_further_information.2 == 2 || $fetch_further_information.2 == 3}} {{include file="field_textarea.tpl" field=$ffi_keyword_denylist}} {{/if}}
+ {{/if}}
+
+ {{if $allow_remote_self}}
+ {{include file="field_select.tpl" field=$remote_self}}
+ {{/if}}
+
+ {{include file="field_checkbox.tpl" field=$hidden}}
- {{if $reason}}
+ {{include file="field_textarea.tpl" field=$cinfo}}
+
+ {{if $reason}}
<div id="contact-info-wrapper">
<h4>{{$lbl_info2}}</h4>
<p>{{$reason}}</p>
</div>
<div id="contact-info-end"></div>
- {{/if}}
- </div>
+ {{/if}}
+ {{if $channel_settings_label}}
+ <h4>{{$channel_settings_label}}</h4>
+ <label>{{$frequency_label}}</label>
+ {{include file="field_radio.tpl" field=$frequency_default}}
+ {{include file="field_radio.tpl" field=$frequency_always}}
+ {{include file="field_radio.tpl" field=$frequency_reduced}}
+ {{include file="field_radio.tpl" field=$frequency_never}}
+ <p>{{$frequency_description}}</p>
+ {{/if}}
+ </div>
<input class="contact-edit-submit" type="submit" name="submit" value="{{$submit}}" />
- {{/if}}
+ {{/if}}
+
<div class="contact-edit-submit-end clearfix"></div>
</form>{{* End of the form *}}