2024-08-24 18:23:27 +00:00
|
|
|
{{*
|
|
|
|
* Copyright (C) 2010-2024, the Friendica project
|
|
|
|
* SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
*}}
|
2016-06-10 09:24:38 +00:00
|
|
|
<div class="generic-page-wrapper">
|
2023-08-10 22:46:27 +00:00
|
|
|
<h2>{{$l10n.banner}}</h2>
|
2016-06-10 09:24:38 +00: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 17:08:49 +00:00
|
|
|
<button type="button" class="btn btn-link dropdown-toggle" id="profile-edit-links-dropdown" data-toggle="dropdown" aria-expanded="false">
|
2023-08-10 22:46:27 +00:00
|
|
|
<i class="fa fa-angle-down" aria-hidden="true"></i> {{$l10n.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">
|
2023-08-10 22:46:27 +00:00
|
|
|
<li role="presentation"><a role="menuitem" href="{{$profpiclink}}" id="profile-photo_upload-link"><i class="fa fa-user" aria-hidden="true"></i> {{$l10n.profpic}}</a></li>
|
|
|
|
<li role="presentation"><button role="menuitem" type="button" class="btn-link" id="profile-photo_upload-link-new" onclick="openClose('profile-photo-upload-section');"><i class="fa fa-user" aria-hidden="true"></i> {{$l10n.profile_photo}}</button></li>
|
2017-10-20 13:21:42 +00:00
|
|
|
<li role="presentation" class="divider"></li>
|
2023-08-10 22:46:27 +00:00
|
|
|
<li role="presentation"><a role="menuitem" href="profile/{{$nickname}}/profile" id="profile-edit-view-link">{{$l10n.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">
|
2023-08-10 22:46:27 +00:00
|
|
|
<label id="profile-photo-upload-label" for="profile-photo-upload">{{$l10n.profile_photo}}:</label>
|
2016-06-10 09:24:38 +00:00
|
|
|
<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">
|
2023-08-10 22:46:27 +00:00
|
|
|
<button type="submit" name="submit" class="profile-edit-submit-button btn btn-primary">{{$l10n.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">
|
2020-04-01 23:14:37 +00:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="personal">
|
|
|
|
<h2>
|
2021-11-20 07:16:30 +00: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">
|
2023-08-10 22:46:27 +00:00
|
|
|
{{$l10n.personal_section}}
|
2021-11-20 07:16:30 +00:00
|
|
|
</button>
|
2020-04-01 23:14:37 +00:00
|
|
|
</h2>
|
2016-06-10 09:24:38 +00:00
|
|
|
</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">
|
2020-04-01 23:14:37 +00:00
|
|
|
<div class="panel-body">
|
2023-08-10 23:05:02 +00:00
|
|
|
{{include file="field_input.tpl" field=$username}}
|
2016-06-10 09:24:38 +00:00
|
|
|
|
2020-02-09 07:36:19 +00:00
|
|
|
{{include file="field_textarea.tpl" field=$about}}
|
2016-06-10 09:24:38 +00:00
|
|
|
|
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}}
|
2020-04-01 23:14:37 +00:00
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
2023-08-10 22:46:27 +00:00
|
|
|
<button type="submit" name="submit" class="btn btn-primary">{{$l10n.submit}}</button>
|
2016-06-10 09:24:38 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{* The location settings *}}
|
|
|
|
<div class="panel">
|
2020-04-01 23:14:37 +00:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="location">
|
|
|
|
<h2>
|
2021-11-20 07:16:30 +00: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">
|
2023-08-10 22:46:27 +00:00
|
|
|
{{$l10n.location_section}}
|
2021-11-20 07:16:30 +00:00
|
|
|
</button>
|
2020-04-01 23:14:37 +00:00
|
|
|
</h2>
|
2016-06-10 09:24:38 +00:00
|
|
|
</div>
|
|
|
|
<div id="location-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="location">
|
2020-04-01 23:14:37 +00:00
|
|
|
<div class="panel-body">
|
2016-06-10 09:24:38 +00: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 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>
|
2020-04-01 23:14:37 +00:00
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
2023-08-10 22:46:27 +00:00
|
|
|
<button type="submit" name="submit" class="btn btn-primary">{{$l10n.submit}}</button>
|
2016-06-10 09:24:38 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-03-22 04:07:42 +00:00
|
|
|
{{* The miscellaneous other settings *}}
|
2016-06-10 09:24:38 +00:00
|
|
|
<div class="panel">
|
2020-04-01 23:14:37 +00:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="miscellaneous">
|
|
|
|
<h2>
|
2021-11-20 07:16:30 +00: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">
|
2023-08-10 22:46:27 +00:00
|
|
|
{{$l10n.miscellaneous_section}}
|
2021-11-20 07:16:30 +00:00
|
|
|
</button>
|
2020-04-01 23:14:37 +00:00
|
|
|
</h2>
|
2016-06-10 09:24:38 +00:00
|
|
|
</div>
|
2020-01-14 03:22:50 +00:00
|
|
|
<div id="miscellaneous-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="miscellaneous">
|
2020-04-01 23:14:37 +00:00
|
|
|
<div class="panel-body">
|
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
|
|
|
|
2021-08-09 01:39:09 +00:00
|
|
|
{{include file="field_input.tpl" field=$matrix}}
|
|
|
|
|
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}}
|
2020-04-01 23:14:37 +00:00
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
2023-08-10 22:46:27 +00:00
|
|
|
<button type="submit" name="submit" class="btn btn-primary">{{$l10n.submit}}</button>
|
2016-06-10 09:24:38 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-03-22 04:07:42 +00:00
|
|
|
{{* The miscellaneous other settings *}}
|
2016-06-10 09:24:38 +00:00
|
|
|
<div class="panel">
|
2020-04-01 23:14:37 +00:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="custom-fields">
|
|
|
|
<h2>
|
2021-11-20 07:16:30 +00: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">
|
2023-08-10 22:46:27 +00:00
|
|
|
{{$l10n.custom_fields_section}}
|
2021-11-20 07:16:30 +00:00
|
|
|
</button>
|
2020-04-01 23:14:37 +00:00
|
|
|
</h2>
|
2016-06-10 09:24:38 +00:00
|
|
|
</div>
|
2020-01-14 03:22:50 +00:00
|
|
|
<div id="custom-fields-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="custom-fields">
|
2020-04-01 23:14:37 +00:00
|
|
|
<div class="panel-body">
|
2020-01-18 19:12:43 +00:00
|
|
|
{{$custom_fields_description nofilter}}
|
2020-01-18 15:43:28 +00:00
|
|
|
<div id="profile-custom-fields">
|
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}}
|
2020-01-18 15:43:28 +00:00
|
|
|
</div>
|
2020-04-01 23:14:37 +00:00
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
2023-08-10 22:46:27 +00:00
|
|
|
<button type="submit" name="submit" class="btn btn-primary">{{$l10n.submit}}</button>
|
2016-06-10 09:24:38 +00:00
|
|
|
</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>
|