2016-06-10 11:24:38 +02:00
|
|
|
<div class="generic-page-wrapper">
|
2020-04-02 01:14:37 +02:00
|
|
|
<h1>{{$banner}}</h1>
|
2016-06-10 11:24:38 +02:00
|
|
|
|
|
|
|
{{* 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">
|
2023-01-18 18:08:49 +01:00
|
|
|
<button type="button" class="btn btn-link dropdown-toggle" id="profile-edit-links-dropdown" data-toggle="dropdown" aria-expanded="false">
|
2019-10-27 15:08:14 +01:00
|
|
|
<i class="fa fa-angle-down" aria-hidden="true"></i> {{$profile_action}}
|
2017-03-15 04:47:02 +01:00
|
|
|
</button>
|
2016-06-10 11:24:38 +02:00
|
|
|
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="profile-edit-links-dropdown">
|
2018-12-14 04:28:12 +01: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 15:21:42 +02:00
|
|
|
<li role="presentation" class="divider"></li>
|
2020-02-17 20:18:01 +01:00
|
|
|
<li role="presentation"><a role="menuitem" href="profile/{{$nickname}}/profile" id="profile-edit-view-link" title="{{$viewprof}}">{{$viewprof}}</a></li>
|
2016-06-10 11:24:38 +02:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="profile-edit-links-end"></div>
|
|
|
|
|
2019-10-27 15:08:14 +01: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 11:24:38 +02: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 15:08:14 +01: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 11:24:38 +02: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 15:08:14 +01: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 11:24:38 +02:00
|
|
|
|
2016-06-12 19:59:27 +02:00
|
|
|
<div class="panel-group panel-group-settings" id="profile-edit-wrapper" role="tablist" aria-multiselectable="true">
|
2016-06-10 11:24:38 +02:00
|
|
|
{{* The personal settings *}}
|
|
|
|
<div class="panel">
|
2020-04-02 01:14:37 +02:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="personal">
|
|
|
|
<h2>
|
2021-11-20 08:16:30 +01:00
|
|
|
<button class="btn-link accordion-toggle" data-toggle="collapse" data-parent="#profile-edit-wrapper" href="#personal-collapse" aria-expanded="true" aria-controls="personal-collapse">
|
2016-06-10 11:24:38 +02:00
|
|
|
{{$lbl_personal_section}}
|
2021-11-20 08:16:30 +01:00
|
|
|
</button>
|
2020-04-02 01:14:37 +02:00
|
|
|
</h2>
|
2016-06-10 11:24:38 +02:00
|
|
|
</div>
|
2019-10-27 15:08:14 +01: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">
|
2020-04-02 01:14:37 +02:00
|
|
|
<div class="panel-body">
|
2016-06-10 11:24:38 +02:00
|
|
|
{{include file="field_input.tpl" field=$name}}
|
|
|
|
|
2020-02-09 08:36:19 +01:00
|
|
|
{{include file="field_textarea.tpl" field=$about}}
|
2016-06-10 11:24:38 +02:00
|
|
|
|
2018-12-14 04:35:51 +01:00
|
|
|
{{$dob nofilter}}
|
2016-06-10 11:24:38 +02:00
|
|
|
|
2018-12-14 04:35:51 +01:00
|
|
|
{{$hide_friends nofilter}}
|
2020-04-02 01:14:37 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
|
|
|
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
2016-06-10 11:24:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{* The location settings *}}
|
|
|
|
<div class="panel">
|
2020-04-02 01:14:37 +02:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="location">
|
|
|
|
<h2>
|
2021-11-20 08:16:30 +01:00
|
|
|
<button class="btn-link accordion-toggle collapsed" data-toggle="collapse" data-parent="#profile-edit-wrapper" href="#location-collapse" aria-expanded="false" aria-controls="location-collapse">
|
2016-06-10 11:24:38 +02:00
|
|
|
{{$lbl_location_section}}
|
2021-11-20 08:16:30 +01:00
|
|
|
</button>
|
2020-04-02 01:14:37 +02:00
|
|
|
</h2>
|
2016-06-10 11:24:38 +02:00
|
|
|
</div>
|
|
|
|
<div id="location-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="location">
|
2020-04-02 01:14:37 +02:00
|
|
|
<div class="panel-body">
|
2016-06-10 11:24:38 +02:00
|
|
|
{{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 15:08:14 +01:00
|
|
|
<label id="profile-edit-country-name-label" for="profile-edit-country-name">{{$country_name.1}} </label>
|
2016-06-10 11:24:38 +02:00
|
|
|
<select name="country_name" id="profile-edit-country-name" class="form-control" onChange="Fill_States('{{$region.2}}');">
|
2019-10-27 15:08:14 +01:00
|
|
|
<option selected="selected">{{$country_name.2}}</option>
|
2016-06-10 11:24:38 +02:00
|
|
|
<option>temp</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
|
|
|
|
<div id="profile-edit-region-wrapper" class="form-group field select">
|
2019-10-27 15:08:14 +01: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 11:24:38 +02:00
|
|
|
<option>temp</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2020-04-02 01:14:37 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
|
|
|
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
2016-06-10 11:24:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-03-22 05:07:42 +01:00
|
|
|
{{* The miscellaneous other settings *}}
|
2016-06-10 11:24:38 +02:00
|
|
|
<div class="panel">
|
2020-04-02 01:14:37 +02:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="miscellaneous">
|
|
|
|
<h2>
|
2021-11-20 08:16:30 +01:00
|
|
|
<button class="btn-link accordion-toggle collapsed" data-toggle="collapse" data-parent="#profile-edit-wrapper" href="#miscellaneous-collapse" aria-expanded="false" aria-controls="miscellaneous-collapse">
|
2020-01-14 04:22:50 +01:00
|
|
|
{{$lbl_miscellaneous_section}}
|
2021-11-20 08:16:30 +01:00
|
|
|
</button>
|
2020-04-02 01:14:37 +02:00
|
|
|
</h2>
|
2016-06-10 11:24:38 +02:00
|
|
|
</div>
|
2020-01-14 04:22:50 +01:00
|
|
|
<div id="miscellaneous-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="miscellaneous">
|
2020-04-02 01:14:37 +02:00
|
|
|
<div class="panel-body">
|
2020-01-14 04:22:50 +01:00
|
|
|
{{include file="field_input.tpl" field=$homepage}}
|
2016-06-10 11:24:38 +02:00
|
|
|
|
2020-01-14 04:22:50 +01:00
|
|
|
{{include file="field_input.tpl" field=$xmpp}}
|
2016-06-10 11:24:38 +02:00
|
|
|
|
2021-08-09 03:39:09 +02:00
|
|
|
{{include file="field_input.tpl" field=$matrix}}
|
|
|
|
|
2020-01-14 04:22:50 +01:00
|
|
|
{{include file="field_input.tpl" field=$pub_keywords}}
|
2016-06-10 11:24:38 +02:00
|
|
|
|
2020-01-14 04:22:50 +01:00
|
|
|
{{include file="field_input.tpl" field=$prv_keywords}}
|
2020-04-02 01:14:37 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
|
|
|
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
2016-06-10 11:24:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-03-22 05:07:42 +01:00
|
|
|
{{* The miscellaneous other settings *}}
|
2016-06-10 11:24:38 +02:00
|
|
|
<div class="panel">
|
2020-04-02 01:14:37 +02:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="custom-fields">
|
|
|
|
<h2>
|
2021-11-20 08:16:30 +01:00
|
|
|
<button class="btn-link accordion-toggle collapsed" data-toggle="collapse" data-parent="#profile-edit-wrapper" href="#custom-fields-collapse" aria-expanded="false" aria-controls="custom-fields-collapse">
|
2020-01-14 04:22:50 +01:00
|
|
|
{{$lbl_custom_fields_section}}
|
2021-11-20 08:16:30 +01:00
|
|
|
</button>
|
2020-04-02 01:14:37 +02:00
|
|
|
</h2>
|
2016-06-10 11:24:38 +02:00
|
|
|
</div>
|
2020-01-14 04:22:50 +01:00
|
|
|
<div id="custom-fields-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="custom-fields">
|
2020-04-02 01:14:37 +02:00
|
|
|
<div class="panel-body">
|
2020-01-18 20:12:43 +01:00
|
|
|
{{$custom_fields_description nofilter}}
|
2020-01-18 16:43:28 +01:00
|
|
|
<div id="profile-custom-fields">
|
2020-01-14 04:22:50 +01:00
|
|
|
{{foreach $custom_fields as $custom_field}}
|
|
|
|
{{include file="settings/profile/field/edit.tpl" profile_field=$custom_field}}
|
|
|
|
{{/foreach}}
|
2020-01-18 16:43:28 +01:00
|
|
|
</div>
|
2020-04-02 01:14:37 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
|
|
|
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
2016-06-10 11:24:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2017-10-20 15:21:42 +02:00
|
|
|
<script type="text/javascript">
|
2016-08-23 16:48:13 +02:00
|
|
|
Fill_Country('{{$country_name.2}}');
|
|
|
|
Fill_States('{{$region.2}}');
|
|
|
|
|
|
|
|
// initiale autosize for the textareas
|
|
|
|
autosize($("textarea.text-autosize"));
|
|
|
|
</script>
|