2016-06-10 09:24:38 +00:00
|
|
|
<div class="generic-page-wrapper">
|
|
|
|
{{include file="section_title.tpl" title=$banner}}
|
|
|
|
|
|
|
|
{{* The actions dropdown which can performed to the current profile *}}
|
|
|
|
<div id="profile-edit-links">
|
|
|
|
<ul class="nav nav-pills preferences">
|
|
|
|
<li class="dropdown pull-right">
|
2017-10-20 13:21:42 +00:00
|
|
|
<button type="button" class="btn btn-link btn-sm dropdown-toggle" id="profile-edit-links-dropdown" data-toggle="dropdown" aria-expanded="false">
|
2019-10-27 14:08:14 +00:00
|
|
|
<i class="fa fa-angle-down" aria-hidden="true"></i> {{$profile_action}}
|
2017-03-15 03:47:02 +00:00
|
|
|
</button>
|
2016-06-10 09:24:38 +00:00
|
|
|
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="profile-edit-links-dropdown">
|
2018-12-14 03:28:12 +00:00
|
|
|
<li role="presentation"><a role="menuitem" href="{{$profpiclink}}" id="profile-photo_upload-link" title="{{$profpic}}"><i class="fa fa-user" aria-hidden="true"></i> {{$profpic}}</a></li>
|
|
|
|
<li role="presentation"><button role="menuitem" type="button" class="btn-link" id="profile-photo_upload-link-new" title="{{$lbl_profile_photo}}" onclick="openClose('profile-photo-upload-section');"><i class="fa fa-user" aria-hidden="true"></i> {{$lbl_profile_photo}}</button></li>
|
2017-10-20 13:21:42 +00:00
|
|
|
<li role="presentation" class="divider"></li>
|
2019-10-27 14:08:14 +00:00
|
|
|
<li role="presentation"><a role="menuitem" href="profile/{{$nickname}}" id="profile-edit-view-link" title="{{$viewprof}}">{{$viewprof}}</a></li>
|
2016-06-10 09:24:38 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="profile-edit-links-end"></div>
|
|
|
|
|
2019-10-27 14:08:14 +00:00
|
|
|
<form enctype="multipart/form-data" action="settings/profile/photo" method="post">
|
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token_photo}}">
|
2016-06-10 09:24:38 +00:00
|
|
|
|
|
|
|
<div id="profile-photo-upload-section" class="panel">
|
|
|
|
<a id="profile-photo-upload-close" class="close pull-right" onclick="openClose('profile-photo-upload-section');"><i class="fa fa-times" aria-hidden="true"></i></a>
|
|
|
|
<div id="profile-photo-upload-wrapper">
|
|
|
|
<label id="profile-photo-upload-label" for="profile-photo-upload">{{$lbl_profile_photo}}:</label>
|
|
|
|
<input name="userfile" type="file" id="profile-photo-upload" size="48" />
|
|
|
|
</div>
|
|
|
|
|
2019-10-27 14:08:14 +00:00
|
|
|
<div class="profile-edit-submit-wrapper pull-right">
|
|
|
|
<button type="submit" name="submit" class="profile-edit-submit-button btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
2016-06-10 09:24:38 +00:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{{* Most of the Variables used below are arrays in the following style
|
|
|
|
0 => Some kind of identifier (e.g. for the ID)
|
|
|
|
1 => The label description
|
|
|
|
2 => The input values
|
|
|
|
3 => The additional help text (if available)
|
|
|
|
*}}
|
|
|
|
|
2019-10-27 14:08:14 +00:00
|
|
|
<form id="profile-edit-form" name="form1" action="" method="post">
|
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
2016-06-10 09:24:38 +00:00
|
|
|
|
2016-06-12 17:59:27 +00:00
|
|
|
<div class="panel-group panel-group-settings" id="profile-edit-wrapper" role="tablist" aria-multiselectable="true">
|
2016-06-10 09:24:38 +00:00
|
|
|
{{* The personal settings *}}
|
|
|
|
<div class="panel">
|
|
|
|
<div class="section-subtitle-wrapper" role="tab" id="personal">
|
|
|
|
<h4>
|
2019-10-27 14:08:14 +00:00
|
|
|
<a class="accordion-toggle" data-toggle="collapse" data-parent="#profile-edit-wrapper" href="#personal-collapse" aria-expanded="true" aria-controls="personal-collapse">
|
2016-06-10 09:24:38 +00:00
|
|
|
{{$lbl_personal_section}}
|
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
2019-10-27 14:08:14 +00:00
|
|
|
{{* for the $detailed_profile we use bootstraps collapsable panel-groups to have expandable groups *}}
|
|
|
|
<div id="personal-collapse" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="personal">
|
2016-06-10 09:24:38 +00:00
|
|
|
<div class="section-content-tools-wrapper">
|
|
|
|
{{include file="field_input.tpl" field=$name}}
|
|
|
|
|
|
|
|
{{include file="field_input.tpl" field=$pdesc}}
|
|
|
|
|
2018-12-14 03:35:51 +00:00
|
|
|
{{$dob nofilter}}
|
2016-06-10 09:24:38 +00:00
|
|
|
|
2018-12-14 03:35:51 +00:00
|
|
|
{{$hide_friends nofilter}}
|
2016-06-10 09:24:38 +00:00
|
|
|
|
2019-10-27 14:08:14 +00:00
|
|
|
<div class="form-group pull-right">
|
2016-06-10 09:24:38 +00:00
|
|
|
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{* The location settings *}}
|
|
|
|
<div class="panel">
|
|
|
|
<div class="section-subtitle-wrapper" role="tab" id="location">
|
|
|
|
<h4>
|
2017-10-20 13:21:42 +00:00
|
|
|
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#profile-edit-wrapper" href="#location-collapse" aria-expanded="false" aria-controls="location-collapse">
|
2016-06-10 09:24:38 +00:00
|
|
|
{{$lbl_location_section}}
|
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
|
|
|
<div id="location-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="location">
|
|
|
|
<div class="section-content-tools-wrapper">
|
|
|
|
{{include file="field_input.tpl" field=$address}}
|
|
|
|
|
|
|
|
{{include file="field_input.tpl" field=$locality}}
|
|
|
|
|
|
|
|
{{include file="field_input.tpl" field=$postal_code}}
|
|
|
|
|
|
|
|
<div id="profile-edit-country-name-wrapper" class="form-group field select">
|
2019-10-27 14:08:14 +00:00
|
|
|
<label id="profile-edit-country-name-label" for="profile-edit-country-name">{{$country_name.1}} </label>
|
2016-06-10 09:24:38 +00:00
|
|
|
<select name="country_name" id="profile-edit-country-name" class="form-control" onChange="Fill_States('{{$region.2}}');">
|
2019-10-27 14:08:14 +00:00
|
|
|
<option selected="selected">{{$country_name.2}}</option>
|
2016-06-10 09:24:38 +00:00
|
|
|
<option>temp</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
|
|
|
|
<div id="profile-edit-region-wrapper" class="form-group field select">
|
2019-10-27 14:08:14 +00:00
|
|
|
<label id="profile-edit-region-label" for="profile-edit-region">{{$region.1}} </label>
|
|
|
|
<select name="region" id="profile-edit-region" class="form-control" onChange="Update_Globals();">
|
|
|
|
<option selected="selected">{{$region.2}}</option>
|
2016-06-10 09:24:38 +00:00
|
|
|
<option>temp</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
|
2019-10-27 14:08:14 +00:00
|
|
|
<div class="form-group pull-right">
|
2016-06-10 09:24:38 +00:00
|
|
|
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-01-14 03:22:50 +00:00
|
|
|
{{* The miscellanous other settings *}}
|
2016-06-10 09:24:38 +00:00
|
|
|
<div class="panel">
|
2020-01-14 03:22:50 +00:00
|
|
|
<div class="section-subtitle-wrapper" role="tab" id="miscellaneous">
|
2016-06-10 09:24:38 +00:00
|
|
|
<h4>
|
2020-01-14 03:22:50 +00:00
|
|
|
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#profile-edit-wrapper" href="#miscellaneous-collapse" aria-expanded="false" aria-controls="miscellaneous-collapse">
|
|
|
|
{{$lbl_miscellaneous_section}}
|
2016-06-10 09:24:38 +00:00
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
2020-01-14 03:22:50 +00:00
|
|
|
<div id="miscellaneous-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="miscellaneous">
|
2016-06-10 09:24:38 +00:00
|
|
|
<div class="section-content-tools-wrapper">
|
2020-01-14 03:22:50 +00:00
|
|
|
{{include file="field_input.tpl" field=$homepage}}
|
2016-06-10 09:24:38 +00:00
|
|
|
|
2020-01-14 03:22:50 +00:00
|
|
|
{{include file="field_input.tpl" field=$xmpp}}
|
2016-06-10 09:24:38 +00:00
|
|
|
|
2020-01-14 03:22:50 +00:00
|
|
|
{{include file="field_input.tpl" field=$pub_keywords}}
|
2016-06-10 09:24:38 +00:00
|
|
|
|
2020-01-14 03:22:50 +00:00
|
|
|
{{include file="field_input.tpl" field=$prv_keywords}}
|
2016-06-10 09:24:38 +00:00
|
|
|
|
2019-10-27 14:08:14 +00:00
|
|
|
<div class="form-group pull-right">
|
2016-06-10 09:24:38 +00:00
|
|
|
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{* The miscellanous other settings *}}
|
|
|
|
<div class="panel">
|
2020-01-14 03:22:50 +00:00
|
|
|
<div class="section-subtitle-wrapper" role="tab" id="custom-fields">
|
2016-06-10 09:24:38 +00:00
|
|
|
<h4>
|
2020-01-14 03:22:50 +00:00
|
|
|
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#profile-edit-wrapper" href="#custom-fields-collapse" aria-expanded="false" aria-controls="custom-fields-collapse">
|
|
|
|
{{$lbl_custom_fields_section}}
|
2016-06-10 09:24:38 +00:00
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
2020-01-14 03:22:50 +00:00
|
|
|
<div id="custom-fields-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="custom-fields">
|
2016-06-10 09:24:38 +00:00
|
|
|
<div class="section-content-tools-wrapper">
|
2020-01-14 03:22:50 +00:00
|
|
|
{{foreach $custom_fields as $custom_field}}
|
|
|
|
{{include file="settings/profile/field/edit.tpl" profile_field=$custom_field}}
|
|
|
|
{{/foreach}}
|
2016-06-10 09:24:38 +00:00
|
|
|
|
2019-10-27 14:08:14 +00:00
|
|
|
<div class="form-group pull-right">
|
2016-06-10 09:24:38 +00:00
|
|
|
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2017-10-20 13:21:42 +00:00
|
|
|
<script type="text/javascript">
|
2016-08-23 14:48:13 +00:00
|
|
|
Fill_Country('{{$country_name.2}}');
|
|
|
|
Fill_States('{{$region.2}}');
|
|
|
|
|
|
|
|
// initiale autosize for the textareas
|
|
|
|
autosize($("textarea.text-autosize"));
|
|
|
|
</script>
|