modify_attribute_combobox.html
1 <@row>
2 <@columns>
3 <@box>
4 <@boxHeader title='#i18n{mylutece.modify_attribute.pageTitleAttributeComboBox}' />
5 <@boxBody>
6 <@tform method='post' action='jsp/admin/plugins/mylutece/attribute/DoModifyAttribute.jsp'>
7 <fieldset>
8 <@formGroup labelFor='title' labelKey='#i18n{mylutece.modify_attribute.labelTitle}' helpKey='#i18n{mylutece.modify_attribute.labelTitleComment}' mandatory=true>
9 <@input type='text' name='title' id='title' inputSize=80 value='${attribute.title}' maxlength=255 />
10 </@formGroup>
11 <@formGroup labelFor='help_message' labelKey='#i18n{mylutece.modify_attribute.labelHelpMessage}' helpKey='#i18n{mylutece.modify_attribute.labelHelpMessageComment}'>
12 <@input type='textarea' name='help_message' id='help_message' cols=80 rows=5>${attribute.helpMessage}</@input>
13 </@formGroup>
14 <@formGroup labelFor='' labelKey='#i18n{mylutece.modify_attribute.labelType}'>
15 <@staticText><@tag color='info'>${attribute.attributeType.name}</@tag></@staticText>
16 </@formGroup>
17 <@formGroup labelKey='#i18n{mylutece.modify_attribute.labelIsShownInSearch}'>
18 <@checkBox labelFor='is_shown_in_search' name='is_shown_in_search' id='is_shown_in_search' value='1' checked=attribute.shownInSearch />
19 </@formGroup>
20 <@formGroup labelKey='#i18n{mylutece.modify_attribute.labelMandatory}'>
21 <@checkBox labelFor='mandatory' name='mandatory' id='mandatory' value='1' checked=attribute.mandatory />
22 </@formGroup>
23 <@formGroup labelKey='#i18n{mylutece.create_attribute.labelMultiple}' helpKey='#i18n{mylutece.create_attribute.labelMultipleComment}'>
24 <#list attribute_fields_list as attribute_field>
25 <@checkBox labelFor='multiple' name='multiple' id='multiple' value='1' checked=attribute_field.multiple />
26 </#list>
27 </@formGroup>
28
29 <@formGroup>
30 <@input type='hidden' name='id_attribute' value='${attribute.idAttribute}' />
31
32 <@button type='submit' name='validate' value='#i18n{mylutece.modify_attribute.buttonValidate}' title='#i18n{mylutece.modify_attribute.buttonValidate}' buttonIcon='check' />
33 <@button type='submit' name='apply' value='#i18n{mylutece.modify_attribute.buttonApply}' title='#i18n{mylutece.modify_attribute.buttonApply}' buttonIcon='check' />
34 <@button type='submit' name='cancel' value='#i18n{portal.admin.message.buttonCancel}' title='#i18n{portal.admin.message.buttonCancel}' buttonIcon='times' color='default' cancel=true />
35 </@formGroup>
36 </fieldset>
37 </@tform>
38 </@boxBody>
39 </@box>
40
41 <@box>
42 <@boxHeader title='#i18n{mylutece.modify_attribute.listAssociatedFields}'>
43 <@tform method='post' action='jsp/admin/plugins/mylutece/attribute/CreateAttributeField.jsp'>
44 <@input type='hidden' value='${attribute.idAttribute}' name='id_attribute' />
45 <@button type='submit' name='create' value='#i18n{mylutece.modify_attribute.buttonCreateField}' buttonIcon='plus' />
46 </@tform>
47 </@boxHeader>
48 <@boxBody>
49 <a name="list" id="list"></a>
50 <@table id='list'>
51 <tr>
52 <th>#i18n{mylutece.modify_attribute.columnLabelTitle}</th>
53 <th>#i18n{mylutece.modify_attribute.columnLabelValue}</th>
54 <th>#i18n{mylutece.modify_attribute.columnLabelDefaultValue}</th>
55 <th>#i18n{mylutece.modify_attribute.columnLabelId}</th>
56 <th>#i18n{mylutece.modify_attribute.columnLabelActions}</th>
57 </tr>
58 <#assign cpt = 0>
59 <#list attribute_fields_list as attribute_field>
60 <#if attribute_field.title?exists>
61 <#assign cpt = cpt + 1>
62 <tr>
63 <td>${attribute_field.title}</td>
64 <td>${attribute_field.value}</td>
65 <td>
66 <#if attribute_field.defaultValue>
67 <img src="images/admin/skin/enable.png" alt="#i18n{mylutece.modify_attribute.defaultValue}" title="#i18n{mylutece.modify_attribute.defaultValue}" />
68 </#if>
69 </td>
70 <td>${attribute_field.idField}</td>
71 <td>
72 <@aButton href='jsp/admin/plugins/mylutece/attribute/ModifyAttributeField.jsp?id_attribute=${attribute.idAttribute}&id_field=${attribute_field.idField}' title='#i18n{mylutece.modify_attribute.buttonLabelModify}' hideTitle=['all'] buttonIcon='edit' size='sm' />
73 <#if cpt != 1>
74 <@aButton href='jsp/admin/plugins/mylutece/attribute/DoMoveUpAttributeField.jsp?id_attribute=${attribute.idAttribute}&id_field=${attribute_field.idField}#list' title='#i18n{mylutece.modify_attribute.buttonLabelMoveUp}' hideTitle=['all'] buttonIcon='arrow-up' size='sm' />
75 </#if>
76 <#if attribute_field_has_next>
77 <@aButton href='jsp/admin/plugins/mylutece/attribute/DoMoveDownAttributeField.jsp?id_attribute=${attribute.idAttribute}&id_field=${attribute_field.idField}#list' title='#i18n{mylutece.modify_attribute.buttonLabelMoveDown}' hideTitle=['all'] buttonIcon='arrow-down' size='sm' />
78 </#if>
79 <@aButton href='jsp/admin/plugins/mylutece/attribute/RemoveAttributeField.jsp?id_attribute=${attribute.idAttribute}&id_field=${attribute_field.idField}' title='#i18n{mylutece.modify_attribute.buttonLabelDelete}' hideTitle=['all'] buttonIcon='trash' size='sm' color='danger' />
80 </td>
81 </tr>
82 </#if>
83 </#list>
84 </@table>
85 </@boxBody>
86 </@box>
87 </@columns>
88 </@row>