-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocument-edit.html
More file actions
134 lines (102 loc) · 6.68 KB
/
document-edit.html
File metadata and controls
134 lines (102 loc) · 6.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{extends file="admin-layout.tpl"}
{block name="page-title"}{intl l='Edit a document'}{/block}
{block name="check-access"}update{/block}
{block name="main-content"}
<div class="documents edit-document">
<div id="wrapper" class="container">
{loop type="document" name="document_edit" source="{$documentType}" id="{$documentId}" backend_context="1" lang="$edit_language_id" visible="*"}
<ul class="breadcrumb">
{foreach $breadcrumb as $label=>$link}
<li><a href="{$link}">{$label}</a></li>
{/foreach}
<li>{intl l='Editing document "%name"' name="{$TITLE}"}</li>
</ul>
{hook name="document-edit.top" document_id=$documentId}
<div class="row">
<div class="col-md-12 general-block-decorator">
<div class="row">
<div class="col-md-12 title title-without-tabs">
{intl l='Edit document "%name"' name="{$TITLE}"}
</div>
<div class="form-container">
<div class="col-md-12">
{form name="$formId"}
<form method="POST" action="{url path="/admin/document/type/%document/%id/update" document=$documentType id=$ID}" enctype="multipart/form-data" class="clearfix">
{include
file = "includes/inner-form-toolbar.html"
hide_submit_buttons = false
page_url = "{url path="/admin/document/type/%document/%id/update" document=$documentType id=$ID}"
close_url = "{url path="{$redirectUrl}" current_tab="documents" noamp=1}"
}
{form_hidden_fields}
{render_form_field field="success_url" value="{url path="/admin/document/type/%document/%id/update" document=$documentType id=$ID}"}
{render_form_field field="locale" value="$edit_language_locale"}
{if $form_error}<div class="alert alert-danger">{$form_error_message}</div>{/if}
<p class="title title-without-tabs">{intl l="Document informations"}</p>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="control-label">{intl l="File"} : </label>
<p><a href="{$DOCUMENT_PATH}" title="{$TITLE}" target="_blank">{$TITLE}</a>
</div>
</div>
<div class="col-md-6">
{render_form_field field="file"}
{form_field field='visible'}
<div class="form-group {if $error}has-error{/if}">
<label for="{$label_attr.for}" class="control-label">{intl l='Visibility'}</label>
<div class="checkbox">
<label>
<input type="checkbox" id="{$label_attr.for}" name="{$name}" value="1" {if $VISIBLE != 0}checked="checked"{/if}>
{$label}
</label>
</div>
</div>
{/form_field}
{render_form_field field="title" value=$TITLE}
{render_form_field field="chapo" value=$CHAPO}
{render_form_field field="postscriptum" value=$POSTSCRIPTUM}
</div>
</div>
<div class="row">
<div class="col-md-12">
{render_form_field field="description" value=$DESCRIPTION extra_class="wysiwyg"}
</div>
</div>
{include
file = "includes/inner-form-toolbar.html"
hide_submit_buttons = false
hide_flags = true
page_url = "{url path="/admin/document/type/%document/%id/update" document=$documentType id=$ID}"
close_url = "{url path="{$redirectUrl}" current_tab="documents"}"
}
</form>
{/form}
</div>
</div>
</div>
</div>
</div>
{hook name="document-edit.bottom" document_id=$documentId}
{/loop}
{elseloop rel="document_edit"}
<div class="row">
<div class="col-md-12">
<div class="row inner-toolbar clearfix">
<div class="col-md-6 inner-actions pull-right">
<a href="{url path="{$redirectUrl}" current_tab="documents"}" class="btn btn-default btn-info">{intl l='Back'} <span class="glyphicon glyphicon-remove"></span></a>
</div>
</div>
<div class="alert alert-error">
{intl l="Sorry, document ID=%id was not found." id={$documentId}}
</div>
</div>
</div>
{/elseloop}
</div>
</div>
{/block}
{block name="javascript-last-call"}
{hook name="document.edit-js" location="document-edit-js" document_id={$documentId} }
{hook name="wysiwyg.js" location="wysiwyg-document-edit-js" }
{/block}