ItEr40S22CUAsignarUsuarioAProxectoTraballo: skeleton for the interface to add/remove authorizations to an Order
This commit is contained in:
parent
a2341a0dcb
commit
1d0cb399d0
3 changed files with 123 additions and 0 deletions
|
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* This file is part of ###PROJECT_NAME###
|
||||
*
|
||||
* Copyright (C) 2009 Fundación para o Fomento da Calidade Industrial e
|
||||
* Desenvolvemento Tecnolóxico de Galicia
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.navalplanner.web.users;
|
||||
|
||||
import org.zkoss.zk.ui.util.GenericForwardComposer;
|
||||
|
||||
/**
|
||||
* Controller for CRUD actions over an {@link OrderAuthorization}
|
||||
*
|
||||
* @author Jacobo Aragunde Perez <jaragunde@igalia.com>
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class OrderAuthorizationController extends GenericForwardComposer{
|
||||
|
||||
}
|
||||
|
|
@ -25,6 +25,7 @@
|
|||
<?component name="listOrderElementCriterionRequirements" inline="true" macroURI="_listOrderElementCriterionRequirements.zul"?>
|
||||
<?component name="listOrderElementMaterials" inline="true" macroURI="_listOrderElementMaterials.zul"?>
|
||||
<?component name="listOrderElementTaskQualityForms" inline="true" macroURI="_listOrderElementTaskQualityForms.zul"?>
|
||||
<?component name="listOrderElementAuthorizations" inline="true" macroURI="_listOrderElementAuthorizations.zul"?>
|
||||
|
||||
<window id="${arg.top_id}">
|
||||
<tabbox>
|
||||
|
|
@ -38,6 +39,7 @@
|
|||
onClick = "controller.reloadHoursGroupOrder();"/>
|
||||
<tab label="${i18n:_('Materials')}" />
|
||||
<tab id="tabTaskQualityForm" label="${i18n:_('Task quality forms')}" />
|
||||
<tab label="${i18n:_('Authorizations')}" />
|
||||
</tabs>
|
||||
<tabpanels>
|
||||
<tabpanel>
|
||||
|
|
@ -122,6 +124,9 @@
|
|||
<tabpanel>
|
||||
<listOrderElementTaskQualityForms id="orderElementTaskQualityForms" />
|
||||
</tabpanel>
|
||||
<tabpanel>
|
||||
<listOrderElementAuthorizations id="orderElementAuthorizations"/>
|
||||
</tabpanel>
|
||||
</tabpanels>
|
||||
</tabbox>
|
||||
<hbox>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,85 @@
|
|||
<!--
|
||||
This file is part of ###PROJECT_NAME###
|
||||
|
||||
Copyright (C) 2009 Fundación para o Fomento da Calidade Industrial e
|
||||
Desenvolvemento Tecnolóxico de Galicia
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<vbox id="${arg.id}"
|
||||
apply="org.navalplanner.web.users.OrderAuthorizationController" >
|
||||
|
||||
<!-- Profiles -->
|
||||
<panel title="${i18n:_('Profiles authorization')}" border="normal">
|
||||
<panelchildren>
|
||||
<hbox align="center">
|
||||
<autocomplete id="profileAutocomplete" constraint=""
|
||||
autodrop="true" finder="ProfileFinder" />
|
||||
<checkbox id="profileReadAuthCheckbox" label="${i18n:_('Read')}" />
|
||||
<checkbox id="profileWriteAuthCheckbox" label="${i18n:_('Write')}" />
|
||||
<button label="${i18n:_('Authorize')}" />
|
||||
</hbox>
|
||||
<grid id="profilesAuthListing">
|
||||
<columns sizable="true">
|
||||
<column label="${i18n:_('Profile name')}" />
|
||||
<column label="${i18n:_('Permissions')}" />
|
||||
<column label="${i18n:_('Actions')}" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label/>
|
||||
<label/>
|
||||
<hbox>
|
||||
<button sclass="icono" image="/common/img/ico_borrar1.png"
|
||||
hoverImage="/common/img/ico_borrar.png"
|
||||
tooltiptext="${i18n:_('Delete')}" />
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</panelchildren>
|
||||
</panel>
|
||||
|
||||
<!-- Users -->
|
||||
<panel title="${i18n:_('Users authorization')}" border="normal">
|
||||
<panelchildren>
|
||||
<hbox align="center">
|
||||
<autocomplete id="usersAutocomplete" constraint=""
|
||||
autodrop="true" finder="UserFinder" />
|
||||
<checkbox id="userReadAuthCheckbox" label="${i18n:_('Read')}" />
|
||||
<checkbox id="userWriteAuthCheckbox" label="${i18n:_('Write')}" />
|
||||
<button label="${i18n:_('Authorize')}" />
|
||||
</hbox>
|
||||
<grid id="usersAuthListing">
|
||||
<columns sizable="true">
|
||||
<column label="${i18n:_('Profile name')}" />
|
||||
<column label="${i18n:_('Permissions')}" />
|
||||
<column label="${i18n:_('Actions')}" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label/>
|
||||
<label/>
|
||||
<hbox>
|
||||
<button sclass="icono" image="/common/img/ico_borrar1.png"
|
||||
hoverImage="/common/img/ico_borrar.png"
|
||||
tooltiptext="${i18n:_('Delete')}" />
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</panelchildren>
|
||||
</panel>
|
||||
</vbox>
|
||||
Loading…
Add table
Reference in a new issue