manage_attributes.html

 1   <#include "../managemylutece_tabs.html" />
 2   <@tabs2 tab="manageAttributes" />
 3   <@row>
 4   	<@columns>
 5   		<@box>
 6   			<@boxHeader title='#i18n{mylutece.manage_attributes.pageTitle}'>
 7   				<@tform type='inline' method='post' action='jsp/admin/plugins/mylutece/attribute/CreateAttribute.jsp'>
 8   					<@formGroup formStyle='inline' labelFor='attribute_type_class_name' labelKey='#i18n{mylutece.manage_attributes.addNewAttributes}'>
 9   						<@inputGroup>
 10   							<@select id='attribute_type_class_name' name='attribute_type_class_name' size='sm'>
 11   								<#list attribute_types_list as attribute_type>
 12   									<option value="${attribute_type.className}">${attribute_type.name}</option>
 13   								</#list>
 14   							</@select>
 15   							<@inputGroupItem>
 16   								<@button type='submit' buttonIcon='plus' title='#i18n{mylutece.manage_attributes.buttonAdd}' hideTitle=['all'] size='sm' />
 17   							</@inputGroupItem>
 18   						</@inputGroup>
 19   					</@formGroup>
 20   				</@tform>
 21   			</@boxHeader>
 22   			<@boxBody>
 23   				<a name="list" id="list"></a>
 24   				<@table>
 25   					<@tr>
 26   						<@th>#i18n{mylutece.manage_attributes.columnTitle}</@th>
 27   						<@th>#i18n{mylutece.manage_attributes.columnType}</@th>
 28   						<@th>#i18n{mylutece.manage_attributes.columnOriginalComponent}</@th>
 29   						<@th>#i18n{mylutece.manage_attributes.columnTitleActions}</@th>
 30   					</@tr>
 31   					<#assign cpt = 0>
 32   					<#list attributes_list as attribute >
 33   					<#assign cpt = cpt + 1>
 34   						<@tr>
 35   							<@td>${attribute.title}</@td>
 36   							<@td>${attribute.attributeType.name}</@td>
 37   							<@td>
 38   								<#if attribute.plugin?exists && attribute.plugin.name?has_content>
 39   									${attribute.plugin.name}
 40   								<#else>
 41   									#i18n{mylutece.manage_attributes.labelMyLutece}
 42   								</#if>
 43   							</@td>
 44   							<@td>
 45   								<#if attribute.plugin?exists && attribute.plugin.name != "">
 46   									<#if cpt != 1>
 47   										<@aButton href='jsp/admin/plugins/mylutece/attribute/DoMoveUpAttribute.jsp?id_attribute=${attribute.idAttribute}#list' title='#i18n{mylutece.modify_attribute.buttonLabelMoveUp}' hideTitle=['all'] buttonIcon='arrow-up' size='sm' />
 48   									</#if>
 49   									<#if attribute_has_next>
 50   										<@aButton href='jsp/admin/plugins/mylutece/attribute/DoMoveDownAttribute.jsp?id_attribute=${attribute.idAttribute}#list' title='#i18n{mylutece.modify_attribute.buttonLabelMoveDown}' hideTitle=['all'] buttonIcon='arrow-down' size='sm' />
 51   									</#if>
 52   								<#else>
 53   									<@aButton href='jsp/admin/plugins/mylutece/attribute/ModifyAttribute.jsp?id_attribute=${attribute.idAttribute}' title='#i18n{mylutece.manage_attributes.buttonLabelModify}' hideTitle=['all'] buttonIcon='edit' size='sm' />
 54   									<#if cpt != 1>
 55   										<@aButton href='jsp/admin/plugins/mylutece/attribute/DoMoveUpAttribute.jsp?id_attribute=${attribute.idAttribute}#list' title='#i18n{mylutece.modify_attribute.buttonLabelMoveUp}' hideTitle=['all'] buttonIcon='arrow-up' size='sm' />
 56   									</#if>
 57   								   <#if attribute_has_next>
 58   									 <@aButton href='jsp/admin/plugins/mylutece/attribute/DoMoveDownAttribute.jsp?id_attribute=${attribute.idAttribute}#list' title='#i18n{mylutece.modify_attribute.buttonLabelMoveDown}' hideTitle=['all'] buttonIcon='arrow-down' size='sm' />
 59   								   </#if>
 60   									<@aButton href='jsp/admin/plugins/mylutece/attribute/RemoveAttribute.jsp?id_attribute=${attribute.idAttribute}' title='#i18n{mylutece.manage_attributes.buttonLabelDelete}' hideTitle=['all'] buttonIcon='trash' color='danger' size='sm' />
 61   								</#if>
 62   							</@td>
 63   						</@tr>
 64   					</#list>
 65   				</@table>
 66   			</@boxBody>
 67   		</@box>
 68   	</@columns>
 69   </@row>