@@ -72,21 +72,21 @@ <h3 class="mb-0">Basic Information</h3>
72
72
th:value ="${viewUser.profile.lastName} " disabled ="disabled "/>
73
73
</ td >
74
74
</ tr >
75
- < tr class ="edit-container ">
75
+ < tr th:unless =" ${#strings.isEmpty(viewUser.profile.organization)} " class ="edit-container ">
76
76
< td class ="align-middle "> < span class ="text-muted align-middle "> Organization</ span > </ td >
77
77
< td >
78
78
< input class ="data-edit " type ="text " name ="organization "
79
79
th:value ="${viewUser.profile.organization} " disabled ="disabled "/>
80
80
</ td >
81
81
</ tr >
82
- < tr class ="edit-container ">
82
+ < tr th:unless =" ${#strings.isEmpty(viewUser.profile.department)} " class ="edit-container ">
83
83
< td class ="align-middle "> < span class ="text-muted align-middle "> Department</ span > </ td >
84
84
< td >
85
85
< input class ="data-edit " type ="text " name ="department "
86
86
th:value ="${viewUser.profile.department} " disabled ="disabled "/>
87
87
</ td >
88
88
</ tr >
89
- < tr class ="edit-container ">
89
+ < tr th:unless =" ${#strings.isEmpty(viewUser.profile.website)} " class ="edit-container ">
90
90
< td class ="align-middle "> < span class ="text-muted align-middle "> Website</ span > </ td >
91
91
< td >
92
92
< input class ="data-edit " type ="text " name ="website "
@@ -126,17 +126,16 @@ <h3 class="mb-0">Basic Information</h3>
126
126
< div class ="card-header ">
127
127
< h3 class ="mb-0 "> Contact Information</ h3 >
128
128
</ div >
129
- < table class ="table mb-0 ">
130
- < tr th:unless =" ${viewUser.origin} " >
129
+ < table th:if =" ${viewUser.verifiedContactEmail.isPresent()} " class ="table mb-0 ">
130
+ < tr >
131
131
< td class ="align-middle " style ="width: 120px; "> < span
132
132
class ="text-muted align-middle "> Email</ span > </ td >
133
133
< td >
134
- < a th:if ="${viewUser.verifiedContactEmail.isPresent()} "
135
- th:href ="${'mailto:' + viewUser.verifiedContactEmail.get().address} "
134
+ < a th:href ="${'mailto:' + viewUser.verifiedContactEmail.get().address} "
136
135
th:text ="${viewUser.verifiedContactEmail.get().address} "> </ a >
137
136
</ td >
138
137
</ tr >
139
- < tr class ="edit-container ">
138
+ < tr th:unless =" ${#strings.isEmpty(viewUser.profile.phone)} " class ="edit-container ">
140
139
< td class ="align-middle "> < span class ="text-muted align-middle "> Phone</ span > </ td >
141
140
< td >
142
141
< input class ="data-edit " type ="text " name ="phone " th:value ="${viewUser.profile.phone} "
0 commit comments