Browse Source

add tpl edit-profile form user BT#9901 #TMI

aragonc 9 years ago
parent
commit
6f9071acd3

+ 4 - 0
app/Resources/public/css/base.css

@@ -98,6 +98,10 @@ select {
 .carousel-indicators{
   bottom: 0px !important;
 }
+.form-group .freeze{
+  display: inline-block;
+  padding-top: 8px;
+}
 #updatemp3 .footer-audio{
   padding-bottom: 10px;
   padding-top: 10px;

+ 2 - 3
main/auth/profile.php

@@ -112,8 +112,7 @@ $form = new FormValidator(
     'profile',
     'post',
     api_get_self()."?".str_replace('&fe=1', '', Security::remove_XSS($_SERVER['QUERY_STRING'])),
-    null,
-    array('style' => 'width: 70%; float: '.($text_dir == 'rtl' ? 'right;' : 'left;'))
+    null
 );
 
 if (api_is_western_name_order()) {
@@ -749,7 +748,7 @@ if (api_get_setting('allow_social_tool') == 'true') {
 
     $tpl->assign('social_menu_block', $menu);
     $tpl->assign('social_right_content', $form->returnForm());
-    $social_layout = $tpl->get_template('social/inbox.tpl');
+    $social_layout = $tpl->get_template('social/edit_profile.tpl');
     $tpl->display($social_layout);
 } else {
     $bigImage = Usermanager::getUserPicture(api_get_user_id(), USER_IMAGE_SIZE_BIG);

+ 15 - 0
main/template/default/social/edit_profile.tpl

@@ -0,0 +1,15 @@
+{% extends template ~ "/layout/layout_1_col.tpl" %}
+
+{% block content %}
+<div class="row">
+    <div class="col-md-3">
+        <div class="social-menu">
+            {{ social_avatar_block }}
+            {{ social_menu_block }}
+        </div>
+    </div>
+    <div class="col-md-9">
+        {{ social_right_content}}
+    </div>
+</div>
+{% endblock %}