Commit 63b82974 authored by michael.simon's avatar michael.simon
Browse files

make admin account editable

parent d99e0bfc
......@@ -139,6 +139,11 @@ public class ShowAdminUserBean implements Serializable {
}
}
public void handleSave() {
entity = adminUserService.save(entity);
entity = adminUserService.findByIdWithAttrs(id, "roles");
}
public AdminUserEntity getEntity() {
return entity;
}
......
......@@ -333,4 +333,6 @@ lost_access=Zugang verloren
deleted=Gel\u00F6scht
deregistered=Deregistriert
other=Andere
admin_users=Adminbenutzer
hooks=Hooks
......@@ -333,3 +333,5 @@ lost_access=Zugang verloren
deleted=Gel\u00F6scht
deregistered=Deregistriert
other=Andere
admin_users=Adminusers
hooks=Hooks
......@@ -36,7 +36,10 @@
<h:outputText value="#{showAdminUserBean.entity.id}"/>
<h:outputText value="#{messages.name}:"/>
<h:outputText value="#{showAdminUserBean.entity.username}"/>
<p:inplace id="ajax" editor="true">
<p:ajax event="save" listener="#{showAdminUserBean.handleSave}" update=":form:baseData" />
<p:inputText value="#{showAdminUserBean.entity.username}" required="true" label="#{messages.name}" />
</p:inplace>
<h:outputText value="#{messages.created_at}:"/>
<h:outputText value="#{of:formatDate(showAdminUserBean.entity.createdAt, 'dd.MM.yyyy HH:mm')}"/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment