Inital commit

This commit is contained in:
2020-11-19 15:36:28 +01:00
parent 71f32f83d3
commit 66ce4ee218
18077 changed files with 2166122 additions and 35184 deletions

View File

@@ -9,7 +9,7 @@
<div id="wrapper" class="container">
{loop type="image" name="image_edit" source="{$imageType}" id="{$imageId}" width="580" backend_context="1" lang="$edit_language_id"}
{loop type="image" name="image_edit" source="{$imageType}" id="{$imageId}" width="580" backend_context="1" lang="$edit_language_id" visible="*"}
<ul class="breadcrumb">
{foreach $breadcrumb as $label=>$link}
<li><a href="{$link}">{$label}</a></li>
@@ -17,6 +17,8 @@
<li>{intl l='Editing image "%name"' name={$TITLE}}</li>
</ul>
{hook name="image-edit.top" image_id=$imageId}
<div class="row">
<div class="col-md-12 general-block-decorator">
<div class="row">
@@ -29,7 +31,7 @@
<div class="col-md-12">
{form name="$formId"}
<form method="POST" action="{url path="/admin/image/type/{$imageType}/{$ID}/update"}" {form_enctype form=$form} class="clearfix">
<form method="POST" action="{url path="/admin/image/type/%image/%id/update" image=$imageType id=$ID}" {form_enctype} class="clearfix">
{include
file = "includes/inner-form-toolbar.html"
hide_submit_buttons = false
@@ -38,10 +40,10 @@
close_url = "{url path="{$redirectUrl}" current_tab="images" noamp=1}"
}
{form_hidden_fields form=$form}
{form_hidden_fields}
{render_form_field form=$form field="success_url" value="{url path="/admin/image/type/{$imageType}/{$ID}/update"}"}
{render_form_field form=$form field="locale" value="$edit_language_locale"}
{render_form_field field="success_url" value="{url path="/admin/image/type/%image/%id/update" image=$imageType id=$ID}"}
{render_form_field field="locale" value="$edit_language_locale"}
{if $form_error}<div class="alert alert-danger">{$form_error_message}</div>{/if}
@@ -52,23 +54,41 @@
<div class="form-group">
<label class="control-label">{intl l="Preview"} : </label>
<p>
<a href="{$ORIGINAL_IMAGE_URL}" alt="{$TITLE}" target="_blank">
<img src="{$IMAGE_URL}" alt="{$TITLE}" class="img-thumbnail">
<a href="{$ORIGINAL_IMAGE_URL nofilter}" alt="{$TITLE}" target="_blank">
{if $PROCESSING_ERROR}
<img src="//placehold.it/580x580&text={intl l='Image+file+not+found'}" alt="{$TITLE}" class="img-thumbnail">
{else}
<img src="{$IMAGE_URL nofilter}" alt="{$TITLE}" class="img-thumbnail">
{/if}
</a>
</p>
</div>
</div>
<div class="col-md-6">
{render_form_field form=$form field="file"}
{render_form_field form=$form field="title" value=$TITLE}
{render_form_field form=$form field="chapo" value=$CHAPO}
{render_form_field form=$form field="postscriptum" value=$POSTSCRIPTUM}
{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 form=$form field="description" value=$DESCRIPTION extra_class="wysiwyg"}
{render_form_field field="description" value=$DESCRIPTION extra_class="wysiwyg"}
</div>
</div>
@@ -77,7 +97,7 @@
hide_submit_buttons = false
hide_flags = true
page_url = "{url path="/admin/image/type/{$imageType}/{$ID}/update"}"
page_url = "{url path="/admin/image/type/%image/%id/update" image=$imageType id=$ID}"
close_url = "{url path="{$redirectUrl}" current_tab="images"}"
}
</form>
@@ -91,6 +111,8 @@
</div>
{hook name="image-edit.bottom" image_id=$imageId}
{/loop}
{elseloop rel="image_edit"}
@@ -112,13 +134,8 @@
</div>
{/block}
{block name="javascript-initialization"}
{javascripts file='assets/js/main.js'}
<script src="{$asset_url}"></script>
{/javascripts}
{/block}
{block name="javascript-last-call"}
{module_include location='image-edit-js'}
{hook name="image.edit-js" location="image-edit-js" source="{$imageType}" image_id="{$imageId}" }
{hook name="wysiwyg.js" location="wysiwyg-image-edit-js" }
{/block}