document_selector.html
1 <div class="insert-service" >
2 <@row>
3 <@columns>
4 <ol class="breadcrumb">
5 <li><@link href='jsp/admin/insert/GetAvailableInsertServices.jsp?input=${input}&selected_text='><@icon style='home' /></@link></li>
6 <li><@link href='javascript:history.go(-1);'> Page </@link></li>
7 <li><@link href='javascript:history.go(-1);'> Rubrique </@link></li>
8 <li>#i18n{document.selector.document.documentChoiceTitle}</li>
9 </ol>
10 <#if documents_list?size = 0>
11 <@alert color='danger'>#i18n{document.selector.document.noDocument}</@alert>
12 <p>
13 <@button type='button' params='onclick="javascript:history.go(-1);"' title='#i18n{portal.util.labelBack}' buttonIcon='times' color='default' />
14 </p>
15 <#else>
16 <@tform method='post' name='fsubmit' action='jsp/admin/plugins/document/DoInsertDocumentLink.jsp'>
17 <@row>
18 <@columns sm=4>
19 <@input type='hidden' name='input' value='${input}' />
20 <@input type='hidden' name='portlet_id' value='${portlet_id}' />
21 <@input type='hidden' name='subcategory' value='${type_filter}' />
22
23 <@fieldSet legend='#i18n{document.selector.document.insertListTitle}'>
24 <@formGroup labelFor='name' labelKey='#i18n{document.selector.document.linkName}'>
25 <@input type='text' name='name' id='name' value='' maxlength=50 />
26 </@formGroup>
27 <@formGroup labelFor='alt' labelKey='#i18n{document.selector.document.captionTitle}'>
28 <@input type='text' name='alt' id='alt' value='' maxlength=50 />
29 </@formGroup>
30 <@formGroup labelFor='target' labelKey='#i18n{document.selector.document.captionTarget}'>
31 <@select name='target' id='target>
32 <option value="_self">#i18n{document.selector.document.target.self}</option>
33 <option value="_blank">#i18n{document.selector.document.target.blank}</option>
34 <option value="_parent">#i18n{document.selector.document.target.parent}</option>
35 <option value="_top">#i18n{document.selector.document.target.top}</option>
36 </@select>
37 </@formGroup>
38 </@fieldSet>
39 </@columns>
40 <@columns sm=8>
41 <@formGroup params='style="overflow:auto;height:360px;"'>
42 <@table>
43 <@tr>
44 <@th></@th>
45 <@th>#i18n{document.selector.document.colTitle}</@th>
46 <@th>#i18n{document.selector.document.colSummary}</@th>
47 </@tr>
48 <#list documents_list as document>
49 <@tr>
50 <@td>
51 <input class="radio" type="radio" id="document_id_${document.id}" name="document_id" value="${document.id}">
52 </@td>
53 <@td>${document.title?if_exists}</@td>
54 <@td>${document.summary?if_exists}</@td>
55 </@tr>
56 </#list>
57 </@table>
58 </@formGroup>
59 </@columns>
60 </@row>
61 <@formGroup>
62 <@button type='button' params='onclick="javascript:history.go(-1);"' title='#i18n{portal.util.labelBack}' buttonIcon='chevron-left' />
63 <@button type='submit' title='#i18n{portal.util.labelValidate}' buttonIcon='check' />
64 </@formGroup>
65 </@tform>
66 </#if>
67 </@columns>
68 </@row>
69 </div>