forked from Public/pics
EditAssetForm: replace widget class with generic content box
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* Kabuki CMS (C) 2013-2015, Aaron van Geffen
|
||||
*****************************************************************************/
|
||||
|
||||
class EditAssetForm extends SubTemplate
|
||||
class EditAssetForm extends Template
|
||||
{
|
||||
private $asset;
|
||||
private $thumbs;
|
||||
@@ -17,14 +17,14 @@ class EditAssetForm extends SubTemplate
|
||||
$this->thumbs = $thumbs;
|
||||
}
|
||||
|
||||
protected function html_content()
|
||||
public function html_main()
|
||||
{
|
||||
echo '
|
||||
<form id="asset_form" action="" method="post" enctype="multipart/form-data">
|
||||
<div class="boxed_content" style="margin-bottom: 2%">
|
||||
<div class="content-box">
|
||||
<div style="float: right">
|
||||
<a class="btn btn-red" href="', BASEURL, '/', $this->asset->getSlug(), '?delete_confirmed">Delete asset</a>
|
||||
<input type="submit" value="Save asset data">
|
||||
<a class="btn btn-danger" href="', BASEURL, '/', $this->asset->getSlug(), '?delete_confirmed">Delete asset</a>
|
||||
<input class="btn btn-primary" type="submit" value="Save asset data">
|
||||
</div>
|
||||
<h2>Edit asset \'', $this->asset->getTitle(), '\' (', $this->asset->getFilename(), ')</h2>
|
||||
</div>';
|
||||
@@ -32,14 +32,15 @@ class EditAssetForm extends SubTemplate
|
||||
$this->section_replace();
|
||||
|
||||
echo '
|
||||
<div style="float: left; width: 60%; margin-right: 2%">';
|
||||
<div class="row">
|
||||
<div class="col-md-8">';
|
||||
|
||||
$this->section_key_info();
|
||||
$this->section_asset_meta();
|
||||
|
||||
echo '
|
||||
</div>
|
||||
<div style="float: left; width: 38%;">';
|
||||
</div>
|
||||
<div class="col-md-4">';
|
||||
|
||||
if (!empty($this->thumbs))
|
||||
$this->section_thumbnails();
|
||||
@@ -47,11 +48,12 @@ class EditAssetForm extends SubTemplate
|
||||
$this->section_linked_tags();
|
||||
|
||||
echo '
|
||||
</div>';
|
||||
</div>';
|
||||
|
||||
$this->section_crop_editor();
|
||||
|
||||
echo '
|
||||
</div>
|
||||
</form>';
|
||||
}
|
||||
|
||||
@@ -59,7 +61,7 @@ class EditAssetForm extends SubTemplate
|
||||
{
|
||||
$date_captured = $this->asset->getDateCaptured();
|
||||
echo '
|
||||
<div class="widget key_info">
|
||||
<div class="content-box key_info">
|
||||
<h3>Key info</h3>
|
||||
<dl>
|
||||
<dt>Title</dt>
|
||||
@@ -81,7 +83,7 @@ class EditAssetForm extends SubTemplate
|
||||
protected function section_linked_tags()
|
||||
{
|
||||
echo '
|
||||
<div class="widget linked_tags" style="margin-top: 2%">
|
||||
<div class="content-box linked_tags">
|
||||
<h3>Linked tags</h3>
|
||||
<ul id="tag_list">';
|
||||
|
||||
@@ -134,7 +136,7 @@ class EditAssetForm extends SubTemplate
|
||||
protected function section_thumbnails()
|
||||
{
|
||||
echo '
|
||||
<div class="widget linked_thumbs">
|
||||
<div class="content-box linked_thumbs">
|
||||
<h3>Thumbnails</h3>
|
||||
View: <select id="thumbnail_src">';
|
||||
|
||||
@@ -218,7 +220,7 @@ class EditAssetForm extends SubTemplate
|
||||
protected function section_asset_meta()
|
||||
{
|
||||
echo '
|
||||
<div class="widget asset_meta" style="margin-top: 2%">
|
||||
<div class="content-box asset_meta" style="margin-top: 2%">
|
||||
<h3>Asset meta data</h3>
|
||||
<ul>';
|
||||
|
||||
@@ -246,7 +248,7 @@ class EditAssetForm extends SubTemplate
|
||||
protected function section_replace()
|
||||
{
|
||||
echo '
|
||||
<div class="widget replace_asset" style="margin-bottom: 2%; display: block">
|
||||
<div class="content-box replace_asset" style="margin-bottom: 2%; display: block">
|
||||
<h3>Replace asset</h3>
|
||||
File: <input type="file" name="replacement">
|
||||
Target: <select name="replacement_target">
|
||||
|
||||
Reference in New Issue
Block a user