-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexport-page.html
More file actions
117 lines (96 loc) · 3.96 KB
/
Copy pathexport-page.html
File metadata and controls
117 lines (96 loc) · 3.96 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
{extends file="admin-layout.tpl"}
{block name="no-return-functions"}
{$admin_current_location = 'tools'}
{/block}
{block name="page-title"}{intl l='Export'}: {$TITLE}{/block}
{block name="check-resource"}admin.export{/block}
{block name="check-access"}view{/block}
{block name="main-content"}
{loop type="export" name="export" id=$exportId}
<div id="wrapper" class="container">
<nav>
<ul class="breadcrumb">
<li>
<a href="{url path='admin/home'}">{intl l='Home'}</a>
</li>
<li>
<a href="{url path='admin/tools'}">{intl l='Tools'}</a>
</li>
<li>
<a href="{url path='admin/export'}">{intl l="Exports"}</a>
</li>
<li>
{intl l="Export"} : {$TITLE}
</li>
</ul>
</nav>
{if $general_error}
<div class="row">
<div class="col-md-12">
<div class="alert alert-danger">{$general_error}</div>
</div>
</div>
{/if}
{form name="thelia.export"}
<form action="{$URL nofilter}" method="post" {form_enctype}>
{form_hidden_fields}
<div class="row">
<div class="col-md-12">
<div class="general-block-decorator">
<div class="title title-without-tabs">
{intl l='Export'}: {$TITLE}
</div>
{if $form_error}
<div class="row">
<div class="col-md-12">
<div class="alert alert-danger">{$form_error_message}</div>
</div>
</div>
{/if}
{hook name="export.top" type="page" id=$ID}
{include 'includes/export-form-body.html'}
{hook name="export.bottom" type="page" id=$ID}
{ifloop rel="serializer"}
<div>
<button class="btn btn-primary" type="submit">{intl l="Do this export"}</button>
</div>
{/ifloop}
</div>
</div>
</div>
</form>
{/form}
</div>
{/loop}
{/block}
{block name="javascript-initialization"}
{javascripts file='assets/js/bootstrap-switch/bootstrap-switch.js'}
<script type="text/javascript" src="{$asset_url}"></script>
{/javascripts}
{/block}
{block name="javascript-last-call"}
{literal}
<script type="text/javascript">
$(document).ready(function() {
var compression_switch = $("#export-compression-switch");
var compression_row = $(".export-compression-selection-row");
compression_switch.on("switch-change", function(e, data) {
var is_checked = data.value;
if (is_checked) {
compression_row.show("slow");
} else {
compression_row.hide("slow");
}
});
if ($("input[type=checkbox]", compression_switch).is(":checked")) {
compression_row.show();
} else {
compression_row.hide();
}
$(".make-switch", export_modal).bootstrapSwitch();
$("#real-export-modal").modal();
});
</script>
{hook name="export.js" location="export-js" }
{/literal}
{/block}