|
|
|
@ -1,21 +1,22 @@
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-9">
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
|
<div class="panel-heading"><i class="fa fa-folder"></i> Categories</div>
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<div class="pull-right text-right">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="dropdown">
|
|
|
|
|
<button type="button" class="btn btn-default" data-toggle="dropdown"><i class="fa fa-cogs"></i> Options</button>
|
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
|
|
|
|
<li class="permissions"><a href="#"><i class="fa fa-ban"></i> Access Control</a></li>
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
<form role="form" class="category" data-cid="{category.cid}">
|
|
|
|
|
<div class="col-md-9">
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
|
<div class="panel-heading"><i class="fa fa-folder"></i> Categories</div>
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<div class="pull-right text-right">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="dropdown">
|
|
|
|
|
<button type="button" class="btn btn-default" data-toggle="dropdown"><i class="fa fa-cogs"></i> Options</button>
|
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
|
|
|
|
<li class="permissions"><a href="#"><i class="fa fa-ban"></i> Access Control</a></li>
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<form role="form" class="category" data-cid="{category.cid}">
|
|
|
|
|
|
|
|
|
|
<h3 data-edit-target="#cid-{category.cid}-name"><span>{category.name}</span> <small><i class="fa fa-edit"></i></small></h3>
|
|
|
|
|
<input id="cid-{category.cid}-name" type="text" class="form-control hide" placeholder="Category Name" data-name="name" value="{category.name}" />
|
|
|
|
|
<h4 data-edit-target="#cid-{category.cid}-description"><span>{category.description}</span> <small><i class="fa fa-edit"></i></small></h4>
|
|
|
|
@ -78,54 +79,54 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</fieldset>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- IMPORT admin/partials/categories/permissions.tpl -->
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-md-3 options">
|
|
|
|
|
<div class="panel panel-default hidden-sm">
|
|
|
|
|
<div class="panel-heading">Preview</div>
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<div class="category-preview" style="
|
|
|
|
|
<!-- IF category.backgroundImage -->background-image: url({category.backgroundImage});<!-- ENDIF category.backgroundImage -->
|
|
|
|
|
<!-- IF category.bgColor -->background-color: {category.bgColor};<!-- ENDIF category.bgColor -->
|
|
|
|
|
color: {category.color};
|
|
|
|
|
background-size:cover;
|
|
|
|
|
">
|
|
|
|
|
<div class="icon">
|
|
|
|
|
<i data-name="icon" value="{category.icon}" class="fa {category.icon} fa-2x"></i>
|
|
|
|
|
<div class="col-md-3 options">
|
|
|
|
|
<div class="panel panel-default hidden-sm">
|
|
|
|
|
<div class="panel-heading">Preview</div>
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<div class="category-preview" style="
|
|
|
|
|
<!-- IF category.backgroundImage -->background-image: url({category.backgroundImage});<!-- ENDIF category.backgroundImage -->
|
|
|
|
|
<!-- IF category.bgColor -->background-color: {category.bgColor};<!-- ENDIF category.bgColor -->
|
|
|
|
|
color: {category.color};
|
|
|
|
|
background-size:cover;
|
|
|
|
|
">
|
|
|
|
|
<div class="icon">
|
|
|
|
|
<i data-name="icon" value="{category.icon}" class="fa {category.icon} fa-2x"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-group-vertical">
|
|
|
|
|
<button type="button" data-cid="{category.cid}" data-name="image" data-value="{category.image}" class="btn btn-default upload-button"><i class="fa fa-upload"></i> Upload Image</button>
|
|
|
|
|
<!-- IF category.image -->
|
|
|
|
|
<button class="btn btn-warning delete-image"><i data-name="icon" value="fa-times" class="fa fa-times"></i> Remove Image</button>
|
|
|
|
|
<!-- ENDIF category.image -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<button type="button" data-cid="{category.cid}" data-name="image" data-value="{categories.image}" class="btn btn-default upload-button"><i class="fa fa-upload"></i> Upload Image</button>
|
|
|
|
|
<!-- IF categories.image -->
|
|
|
|
|
<small class="pointer delete-image"><i data-name="icon" value="fa-times" class="fa fa-times"></i></small>
|
|
|
|
|
<!-- ENDIF categories.image -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
|
<div class="panel-heading">Categories Control Panel</div>
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<div class="btn-group">
|
|
|
|
|
<button class="btn btn-primary save">Save Changes</button>
|
|
|
|
|
<button class="btn btn-default revert">Revert</button>
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
|
<div class="panel-heading">Categories Control Panel</div>
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<div class="btn-group">
|
|
|
|
|
<button class="btn btn-primary save">Save Changes</button>
|
|
|
|
|
<button class="btn btn-default revert">Revert</button>
|
|
|
|
|
</div>
|
|
|
|
|
<hr />
|
|
|
|
|
<button class="btn btn-danger purge"><i class="fa fa-eraser"></i> Purge Category</button>
|
|
|
|
|
</div>
|
|
|
|
|
<hr />
|
|
|
|
|
<button class="btn btn-danger purge"><i class="fa fa-eraser"></i> Purge Category</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- IMPORT admin/partials/categories/setParent.tpl -->
|
|
|
|
|
<div id="icons" style="display:none;">
|
|
|
|
|
<div class="icon-container">
|
|
|
|
|
<div class="row fa-icons">
|
|
|
|
|
<i class="fa fa-doesnt-exist"></i>
|
|
|
|
|
<!-- IMPORT admin/partials/fontawesome.tpl -->
|
|
|
|
|
<!-- IMPORT admin/partials/categories/setParent.tpl -->
|
|
|
|
|
<div id="icons" style="display:none;">
|
|
|
|
|
<div class="icon-container">
|
|
|
|
|
<div class="row fa-icons">
|
|
|
|
|
<i class="fa fa-doesnt-exist"></i>
|
|
|
|
|
<!-- IMPORT admin/partials/fontawesome.tpl -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|