Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

444 lines
20 KiB

  1. <script>
  2. $(document).ready(function() {
  3. $('.toggle-section-content').hide();
  4. $('.js-section-toggler').click(function(){
  5. $('.toggle-section-content').hide();
  6. $(this).next('.toggle-section-content').toggle();
  7. });
  8. });
  9. </script>
  10. <h1>{{$banner}}</h1>
  11. <div id="profile-edit-links">
  12. <ul>
  13. <li><a class="btn" href="profile/{{$profile_id}}/view?tab=profile" id="profile-edit-view-link" title="{{$viewprof}}">{{$viewprof}}</a></li>
  14. {{if $multi_profiles}}
  15. <li><a class="btn" href="{{$profile_clone_link}}" id="profile-edit-clone-link" title="{{$cr_prof}}">{{$cl_prof}}</a></li>
  16. <li><a class="btn" href="{{$profile_drop_link}}" id="profile-edit-drop-link" title="{{$del_prof}}" {{$disabled}} >{{$del_prof}}</a></li>
  17. {{/if}}
  18. </ul>
  19. </div>
  20. <div id="profile-edit-links-end"></div>
  21. {{$default}}
  22. <div id="profile-edit-wrapper" >
  23. <form enctype="multipart/form-data" action="profile_photo" method="post">
  24. <input type='hidden' name='form_security_token' value='{{$form_security_token_photo}}'>
  25. <input type="hidden" name="profile" value="{{$profile_name}}" />
  26. <!-- Profile picture -->
  27. {{if $detailled_profile}}
  28. <div class="toggle-section js-toggle-section">
  29. <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_picture_section}} &raquo;</a>
  30. <div class="js-section toggle-section-content hidden">
  31. {{/if}}
  32. <div id="profile-photo-upload-wrapper">
  33. <label id="profile-photo-upload-label" for="profile-photo-upload">{{$lbl_profile_photo}}:</label>
  34. <input name="userfile" type="file" id="profile-photo-upload" size="48" />
  35. </div>
  36. <div class="profile-edit-submit-wrapper" >
  37. <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
  38. </div>
  39. <div class="profile-edit-submit-end"></div>
  40. {{if $detailled_profile}}
  41. </div>
  42. </div>
  43. {{/if}}
  44. </form>
  45. <form id="profile-edit-form" name="form1" action="profiles/{{$profile_id}}" method="post" >
  46. <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
  47. {{if $detailled_profile}}
  48. <!-- Basic information -->
  49. <div class="toggle-section js-toggle-section">
  50. <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_basic_section}} &raquo;</a>
  51. <div class="js-section toggle-section-content hidden">
  52. {{include file="field_yesno.tpl" field=$details}}
  53. {{if $multi_profiles}}
  54. <div id="profile-edit-profile-name-wrapper" >
  55. <label id="profile-edit-profile-name-label" for="profile-edit-profile-name" >{{$lbl_profname}} </label>
  56. <input type="text" size="32" name="profile_name" id="profile-edit-profile-name" value="{{$profile_name}}" /><div class="required">*</div>
  57. </div>
  58. <div id="profile-edit-profile-name-end"></div>
  59. {{else}}
  60. <input type="hidden" name="profile_name" id="profile-edit-profile-name" value="{{$profile_name}}" />
  61. {{/if}}
  62. <div id="profile-edit-name-wrapper" >
  63. <label id="profile-edit-name-label" for="profile-edit-name" >{{$lbl_fullname}} </label>
  64. <input type="text" size="32" name="name" id="profile-edit-name" value="{{$name}}" />
  65. </div>
  66. <div id="profile-edit-name-end"></div>
  67. <div id="profile-edit-gender-wrapper" >
  68. <label id="profile-edit-gender-label" for="gender-select" >{{$lbl_gender}} </label>
  69. {{$gender}}
  70. </div>
  71. <div id="profile-edit-gender-end"></div>
  72. <div id="profile-edit-pdesc-wrapper" >
  73. <label id="profile-edit-pdesc-label" for="profile-edit-pdesc" >{{$lbl_title}} </label>
  74. <input type="text" size="32" name="pdesc" id="profile-edit-pdesc" value="{{$pdesc}}" />
  75. </div>
  76. <div id="profile-edit-pdesc-end"></div>
  77. <div id="profile-edit-homepage-wrapper" >
  78. <label id="profile-edit-homepage-label" for="profile-edit-homepage" >{{$lbl_homepage}} </label>
  79. <input type="text" size="32" name="homepage" id="profile-edit-homepage" value="{{$homepage}}" />
  80. </div>
  81. <div id="profile-edit-homepage-end"></div>
  82. <div id="profile-edit-dob-wrapper" >
  83. <label id="profile-edit-dob-label" for="dob-select" >{{$lbl_bd}}</label>
  84. <div id="profile-edit-dob" >
  85. {{$dob}} {{$age}}
  86. </div>
  87. </div>
  88. <div id="profile-edit-dob-end"></div>
  89. {{$hide_friends}}
  90. <div id="about-jot-wrapper">
  91. <div id="about-jot-desc">{{$lbl_about}}</div>
  92. <textarea rows="10" cols="72" id="profile-about-text" name="about" style="width:599px;">{{$about}}</textarea>
  93. </div>
  94. <div id="about-jot-end"></div>
  95. <div id="contact-jot-wrapper" >
  96. <div id="contact-jot-desc">{{$lbl_social}}</div>
  97. <textarea rows="10" cols="72" id="contact-jot-text" name="contact" style="width:599px;">{{$contact}}</textarea>
  98. </div>
  99. <div id="contact-jot-end"></div>
  100. <div id="profile-edit-pubkeywords-wrapper" >
  101. <label id="profile-edit-pubkeywords-label" for="profile-edit-pubkeywords" >{{$lbl_pubkey}} </label>
  102. <input type="text" size="32" name="pub_keywords" id="profile-edit-pubkeywords" title="{{$lbl_ex2}}" value="{{$pub_keywords}}" />
  103. </div>
  104. <div id="profile-edit-pubkeywords-desc">{{$lbl_pubdsc}}</div>
  105. <div id="profile-edit-pubkeywords-end"></div>
  106. <div id="profile-edit-prvkeywords-wrapper" >
  107. <label id="profile-edit-prvkeywords-label" for="profile-edit-prvkeywords" >{{$lbl_prvkey}} </label>
  108. <input type="text" size="32" name="prv_keywords" id="profile-edit-prvkeywords" title="{{$lbl_ex2}}" value="{{$prv_keywords}}" />
  109. </div>
  110. <div id="profile-edit-prvkeywords-desc">{{$lbl_prvdsc}}</div>
  111. <div id="profile-edit-prvkeywords-end"></div>
  112. <div class="profile-edit-submit-wrapper" >
  113. <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
  114. </div>
  115. <div class="profile-edit-submit-end"></div>
  116. </div>
  117. </div>
  118. <!-- About you -->
  119. <div class="toggle-section js-toggle-section">
  120. <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_about_section}} &raquo;</a>
  121. <div class="js-section toggle-section-content hidden">
  122. <div><b>{{$lbl_location_section}}</b></div>
  123. <div id="profile-edit-address-wrapper" >
  124. <label id="profile-edit-address-label" for="profile-edit-address" >{{$lbl_address}} </label>
  125. <input type="text" size="32" name="address" id="profile-edit-address" value="{{$address}}" />
  126. </div>
  127. <div id="profile-edit-address-end"></div>
  128. <div id="profile-edit-locality-wrapper" >
  129. <label id="profile-edit-locality-label" for="profile-edit-locality" >{{$lbl_city}} </label>
  130. <input type="text" size="32" name="locality" id="profile-edit-locality" value="{{$locality}}" />
  131. </div>
  132. <div id="profile-edit-locality-end"></div>
  133. <div id="profile-edit-postal-code-wrapper" >
  134. <label id="profile-edit-postal-code-label" for="profile-edit-postal-code" >{{$lbl_zip}} </label>
  135. <input type="text" size="32" name="postal_code" id="profile-edit-postal-code" value="{{$postal_code}}" />
  136. </div>
  137. <div id="profile-edit-postal-code-end"></div>
  138. <div id="profile-edit-country-name-wrapper" >
  139. <label id="profile-edit-country-name-label" for="profile-edit-country-name" >{{$lbl_country}} </label>
  140. <select name="country_name" id="profile-edit-country-name" onChange="Fill_States('{{$region}}');">
  141. <option selected="selected" >{{$country_name}}</option>
  142. </select>
  143. </div>
  144. <div id="profile-edit-country-name-end"></div>
  145. <div id="profile-edit-region-wrapper" >
  146. <label id="profile-edit-region-label" for="profile-edit-region" >{{$lbl_region}} </label>
  147. <select name="region" id="profile-edit-region" onChange="Update_Globals();" >
  148. <option selected="selected" >{{$region}}</option>
  149. </select>
  150. </div>
  151. <div id="profile-edit-region-end"></div>
  152. <div id="profile-edit-hometown-wrapper" >
  153. <label id="profile-edit-hometown-label" for="profile-edit-hometown" >{{$lbl_hometown}} </label>
  154. <input type="text" size="32" name="hometown" id="profile-edit-hometown" value="{{$hometown}}" />
  155. </div>
  156. <div id="profile-edit-hometown-end"></div>
  157. <br>
  158. <div><b>{{$lbl_preferences_section}}</b></div>
  159. <div id="profile-edit-sexual-wrapper" >
  160. <label id="profile-edit-sexual-label" for="sexual-select" >{{$lbl_sexual}} </label>
  161. {{$sexual}}
  162. </div>
  163. <div id="profile-edit-sexual-end"></div>
  164. <div id="profile-edit-politic-wrapper" >
  165. <label id="profile-edit-politic-label" for="profile-edit-politic" >{{$lbl_politic}} </label>
  166. <input type="text" size="32" name="politic" id="profile-edit-politic" value="{{$politic}}" />
  167. </div>
  168. <div id="profile-edit-politic-end"></div>
  169. <div id="profile-edit-religion-wrapper" >
  170. <label id="profile-edit-religion-label" for="profile-edit-religion" >{{$lbl_religion}} </label>
  171. <input type="text" size="32" name="religion" id="profile-edit-religion" value="{{$religion}}" />
  172. </div>
  173. <div id="profile-edit-religion-end"></div>
  174. <div id="likes-jot-wrapper">
  175. <div id="likes-jot-desc">{{$lbl_likes}}</div>
  176. <textarea rows="10" cols="72" id="likes-jot-text" name="likes" style="width:599px;">{{$likes}}</textarea>
  177. </div>
  178. <div id="likes-jot-end"></div>
  179. <div id="dislikes-jot-wrapper">
  180. <div id="dislikes-jot-desc">{{$lbl_dislikes}}</div>
  181. <textarea rows="10" cols="72" id="dislikes-jot-text" name="dislikes" style="width:599px;">{{$dislikes}}</textarea>
  182. </div>
  183. <div id="dislikes-jot-end"></div>
  184. <div class="profile-edit-submit-wrapper" >
  185. <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
  186. </div>
  187. <div class="profile-edit-submit-end"></div>
  188. </div>
  189. </div>
  190. <!-- Status -->
  191. <div class="toggle-section js-toggle-section">
  192. <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_status_section}} &raquo;</a>
  193. <div class="js-section toggle-section-content hidden">
  194. <div id="profile-edit-marital-wrapper" >
  195. <label id="profile-edit-marital-label" for="profile-edit-marital" >{{$lbl_marital}} </label>
  196. {{$marital}}
  197. </div>
  198. <label id="profile-edit-with-label" for="profile-edit-with" > {{$lbl_with}} </label>
  199. <input type="text" size="32" name="with" id="profile-edit-with" title="{{$lbl_ex1}}" value="{{$with}}" />
  200. <label id="profile-edit-howlong-label" for="profile-edit-howlong" > {{$lbl_howlong}} </label>
  201. <input type="text" size="32" name="howlong" id="profile-edit-howlong" title="{{$lbl_howlong}}" value="{{$howlong}}" />
  202. <div id="profile-edit-marital-end"></div>
  203. <div id="romance-jot-wrapper" >
  204. <div id="romance-jot-desc">{{$lbl_love}}</div>
  205. <textarea rows="10" cols="72" id="romance-jot-text" name="romance" style="width:599px;">{{$romance}}</textarea>
  206. </div>
  207. <div id="romance-jot-end"></div>
  208. <div id="work-jot-wrapper">
  209. <div id="work-jot-desc">{{$lbl_work}}</div>
  210. <textarea rows="10" cols="72" id="work-jot-text" name="work" style="width:599px;">{{$work}}</textarea>
  211. </div>
  212. <div id="work-jot-end"></div>
  213. <div id="education-jot-wrapper" >
  214. <div id="education-jot-desc">{{$lbl_school}}</div>
  215. <textarea rows="10" cols="72" id="education-jot-text" name="education" style="width:599px;">{{$education}}</textarea>
  216. </div>
  217. <div id="education-jot-end"></div>
  218. <div class="profile-edit-submit-wrapper" >
  219. <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
  220. </div>
  221. <div class="profile-edit-submit-end"></div>
  222. </div>
  223. </div>
  224. <!-- Interests -->
  225. <div class="toggle-section js-toggle-section">
  226. <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_interests_section}} &raquo;</a>
  227. <div class="js-section toggle-section-content hidden">
  228. <div id="interest-jot-wrapper">
  229. <div id="interest-jot-desc">{{$lbl_hobbies}}</div>
  230. <textarea rows="10" cols="72" id="interest-jot-text" name="interest" style="width:599px;">{{$interest}}</textarea>
  231. </div>
  232. <div id="interest-jot-end"></div>
  233. <div id="music-jot-wrapper">
  234. <div id="music-jot-desc">{{$lbl_music}}</div>
  235. <textarea rows="10" cols="72" id="music-jot-text" name="music" style="width:599px;">{{$music}}</textarea>
  236. </div>
  237. <div id="music-jot-end"></div>
  238. <div id="book-jot-wrapper">
  239. <div id="book-jot-desc">{{$lbl_book}}</div>
  240. <textarea rows="10" cols="72" id="book-jot-text" name="book" style="width:599px;">{{$book}}</textarea>
  241. </div>
  242. <div id="book-jot-end"></div>
  243. <div id="tv-jot-wrapper">
  244. <div id="tv-jot-desc">{{$lbl_tv}}</div>
  245. <textarea rows="10" cols="72" id="tv-jot-text" name="tv" style="width:599px;">{{$tv}}</textarea>
  246. </div>
  247. <div id="tv-jot-end"></div>
  248. <div id="film-jot-wrapper">
  249. <div id="film-jot-desc">{{$lbl_film}}</div>
  250. <textarea rows="10" cols="72" id="film-jot-text" name="film" style="width:599px;">{{$film}}</textarea>
  251. </div>
  252. <div id="film-jot-end"></div>
  253. <div class="profile-edit-submit-wrapper" >
  254. <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
  255. </div>
  256. <div class="profile-edit-submit-end"></div>
  257. </div>
  258. </div>
  259. {{else}}
  260. {{if $personal_account}}
  261. {{include file="field_yesno.tpl" field=$details}}
  262. {{/if}}
  263. <div id="profile-edit-profile-name-wrapper" >
  264. <label id="profile-edit-profile-name-label" for="profile-edit-profile-name" >{{$lbl_profname}} </label>
  265. <input type="text" size="32" name="profile_name" id="profile-edit-profile-name" value="{{$profile_name|escape:'html'}}" /><div class="required">*</div>
  266. </div>
  267. <div id="profile-edit-profile-name-end"></div>
  268. <div id="profile-edit-name-wrapper" >
  269. <label id="profile-edit-name-label" for="profile-edit-name" >{{$lbl_fullname}} </label>
  270. <input type="text" size="32" name="name" id="profile-edit-name" value="{{$name|escape:'html'}}" />
  271. </div>
  272. <div id="profile-edit-name-end"></div>
  273. {{if $personal_account}}
  274. <div id="profile-edit-gender-wrapper" >
  275. <label id="profile-edit-gender-label" for="gender-select" >{{$lbl_gender}} </label>
  276. {{$gender}}
  277. </div>
  278. <div id="profile-edit-gender-end"></div>
  279. <div id="profile-edit-dob-wrapper" >
  280. <label id="profile-edit-dob-label" for="dob-select" >{{$lbl_bd}} </label>
  281. <div id="profile-edit-dob" >
  282. {{$dob}} {{$age}}
  283. </div>
  284. </div>
  285. <div id="profile-edit-dob-end"></div>
  286. {{/if}}
  287. <div id="profile-edit-homepage-wrapper" >
  288. <label id="profile-edit-homepage-label" for="profile-edit-homepage" >{{$lbl_homepage}} </label>
  289. <input type="text" size="32" name="homepage" id="profile-edit-homepage" value="{{$homepage}}" />
  290. </div>
  291. <div id="profile-edit-homepage-end"></div>
  292. {{$hide_friends}}
  293. <div id="profile-edit-address-wrapper" >
  294. <label id="profile-edit-address-label" for="profile-edit-address" >{{$lbl_address}} </label>
  295. <input type="text" size="32" name="address" id="profile-edit-address" value="{{$address|escape:'html'}}" />
  296. </div>
  297. <div id="profile-edit-address-end"></div>
  298. <div id="profile-edit-locality-wrapper" >
  299. <label id="profile-edit-locality-label" for="profile-edit-locality" >{{$lbl_city}} </label>
  300. <input type="text" size="32" name="locality" id="profile-edit-locality" value="{{$locality|escape:'html'}}" />
  301. </div>
  302. <div id="profile-edit-locality-end"></div>
  303. <div id="profile-edit-postal-code-wrapper" >
  304. <label id="profile-edit-postal-code-label" for="profile-edit-postal-code" >{{$lbl_zip}} </label>
  305. <input type="text" size="32" name="postal_code" id="profile-edit-postal-code" value="{{$postal_code|escape:'html'}}" />
  306. </div>
  307. <div id="profile-edit-postal-code-end"></div>
  308. <div id="profile-edit-country-name-wrapper" >
  309. <label id="profile-edit-country-name-label" for="profile-edit-country-name" >{{$lbl_country}} </label>
  310. <select name="country_name" id="profile-edit-country-name" onChange="Fill_States('{{$region}}');">
  311. <option selected="selected" >{{$country_name}}</option>
  312. <option>temp</option>
  313. </select>
  314. </div>
  315. <div id="profile-edit-country-name-end"></div>
  316. <div id="profile-edit-region-wrapper" >
  317. <label id="profile-edit-region-label" for="profile-edit-region" >{{$lbl_region}} </label>
  318. <select name="region" id="profile-edit-region" onChange="Update_Globals();" >
  319. <option selected="selected" >{{$region}}</option>
  320. <option>temp</option>
  321. </select>
  322. </div>
  323. <div id="profile-edit-region-end"></div>
  324. <div id="profile-edit-pubkeywords-wrapper" >
  325. <label id="profile-edit-pubkeywords-label" for="profile-edit-pubkeywords" >{{$lbl_pubkey}} </label>
  326. <input type="text" size="32" name="pub_keywords" id="profile-edit-pubkeywords" title="{{$lbl_ex2}}" value="{{$pub_keywords|escape:'html'}}" />
  327. </div><div id="profile-edit-pubkeywords-desc">{{$lbl_pubdsc}}</div>
  328. <div id="profile-edit-pubkeywords-end"></div>
  329. <div id="profile-edit-prvkeywords-wrapper" >
  330. <label id="profile-edit-prvkeywords-label" for="profile-edit-prvkeywords" >{{$lbl_prvkey}} </label>
  331. <input type="text" size="32" name="prv_keywords" id="profile-edit-prvkeywords" title="{{$lbl_ex2}}" value="{{$prv_keywords|escape:'html'}}" />
  332. </div><div id="profile-edit-prvkeywords-desc">{{$lbl_prvdsc}}</div>
  333. <div id="profile-edit-prvkeywords-end"></div>
  334. <div id="about-jot-wrapper" >
  335. <p id="about-jot-desc" >
  336. {{$lbl_about}}
  337. </p>
  338. <textarea rows="10" cols="72" id="profile-about-text" name="about" >{{$about}}</textarea>
  339. </div>
  340. <div id="about-jot-end"></div>
  341. <div class="profile-edit-submit-wrapper" >
  342. <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
  343. </div>
  344. <div class="profile-edit-submit-end"></div>
  345. <input type="hidden" name="pdesc" id="profile-edit-pdesc" value="{{$pdesc}}" />
  346. <input type="hidden" id="contact-jot-text" name="contact" value="{{$contact}}" />
  347. <input type="hidden" name="hometown" id="profile-edit-hometown" value="{{$hometown}}" />
  348. <input type="hidden" name="politic" id="profile-edit-politic" value="{{$politic}}" />
  349. <input type="hidden" name="religion" id="profile-edit-religion" value="{{$religion}}" />
  350. <input type="hidden" id="likes-jot-text" name="likes" value="{{$likes}}" />
  351. <input type="hidden" id="dislikes-jot-text" name="dislikes" value="{{$dislikes}}" />
  352. <input type="hidden" name="with" id="profile-edit-with" value="{{$with}}" />
  353. <input type="hidden" name="howlong" id="profile-edit-howlong" value="{{$howlong}}" />
  354. <input type="hidden" id="romance-jot-text" name="romance" value="{{$romance}}" />
  355. <input type="hidden" id="work-jot-text" name="work" value="{{$work}}" />
  356. <input type="hidden" id="education-jot-text" name="education" value="{{$education}}" />
  357. <input type="hidden" id="interest-jot-text" name="interest" value="{{$interest}}" />
  358. <input type="hidden" id="music-jot-text" name="music" value="{{$music}}" />
  359. <input type="hidden" id="book-jot-text" name="book" value="{{$book}}" />
  360. <input type="hidden" id="tv-jot-text" name="tv" value="{{$tv}}" />
  361. <input type="hidden" id="film-jot-text" name="film" value="{{$film}}" />
  362. {{/if}}
  363. </form>
  364. </div>
  365. <script type="text/javascript">Fill_Country('{{$country_name}}');Fill_States('{{$region}}');</script>