<ui:composition
template="/WEB-INF/templates/admin/admin_base.tpl"
xmlns="http://www.w3.org/1999/xhtml"
- xmlns:links="http://mxchange.org/jsf/core/links"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
layout="grid"
styleClass="ui-noborder"
>
- <p:outputLabel for="globalFilter" value="#{msg.SEARCH_ALL_FIELDS}" style="float: right" />
- <p:inputText id="globalFilter" onkeyup="PF('countryList').filter()" placeholder="#{msg.ENTER_KEYWORD}"/>
+ <p:outputLabel
+ for="globalFilter"
+ value="#{msg.SEARCH_ALL_FIELDS}"
+ style="float: right"
+ />
+
+ <p:inputText
+ id="globalFilter"
+ onkeyup="PF('countryList').filter()"
+ placeholder="#{msg.ENTER_KEYWORD}"
+ />
</p:panelGrid>
<p:outputPanel>
<p:ajax
event="rowSelect"
- update=":master:form-list-countries:country-details"
+ update="form-list-countries:country-details"
oncomplete="PF('countryDialog').show()"
/>
filterable="false"
sortable="false"
>
- <links:outputCountryAdminDropdownMenu country="#{country}" />
+ <p:menuButton value="#{msg.OPTIONS}">
+ <p:menuitem
+ outcome="admin_show_country"
+ value="#{msg.ADMIN_LINK_SHOW_SHORT}"
+ title="#{msg.ADMIN_LINK_SHOW_COUNTRY_TITLE}"
+ >
+ <f:param name="countryId" value="#{country.countryId}" />
+ </p:menuitem>
+
+ <p:menuitem
+ outcome="admin_edit_country"
+ value="#{msg.ADMIN_LINK_EDIT_SHORT}"
+ title="#{msg.ADMIN_LINK_EDIT_COUNTRY_TITLE}"
+ >
+ <f:param name="countryId" value="#{country.countryId}" />
+ </p:menuitem>
+
+ <p:menuitem outcome="admin_delete_country">
+ <h:outputText
+ styleClass="link-danger"
+ value="#{msg.ADMIN_LINK_DELETE_SHORT}"
+ title="#{msg.ADMIN_LINK_DELETE_COUNTRY_TITLE}"
+ />
+ <f:param name="countryId" value="#{country.countryId}" />
+ </p:menuitem>
+ </p:menuButton>
</p:column>
</p:dataTable>
type="submit"
value="#{msg.BUTTON_ADMIN_ADD_COUNTRY}"
action="#{adminCountryController.addCountry()}"
- update=":master:form-list-countries:countryList"
+ update="form-list-countries:countryList"
/>
</p:panelGrid>
</h:panelGroup>