2013-07-17 19:29:51 +03:00
|
|
|
<script type="text/javascript"
|
|
|
|
src="<?php echo $base_url; ?>assets/js/backend_services.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
var GlobalVariables = {
|
|
|
|
'baseUrl': <?php echo '"' . $base_url . '"'; ?>,
|
|
|
|
'services': <?php echo json_encode($services); ?>,
|
|
|
|
'categories': <?php echo json_encode($categories); ?>
|
|
|
|
};
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
BackendServices.initialize(true);
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div id="services-page" class="row-fluid">
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li class="services-tab tab active"><a>Services</a></li>
|
|
|
|
<li class="categories-tab tab"><a>Categories</a></li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<?php // SERVICES TAB ++++++++++++++++++++++++++++++++ ?>
|
|
|
|
<div id="services" class="tab-content">
|
|
|
|
<?php // FILTER SERVICES ?>
|
|
|
|
<div class="filter span4">
|
|
|
|
<div class="input-append">
|
|
|
|
<input class="filter-key span12" type="text" />
|
|
|
|
<button class="filter-services btn" type="button">Filter</button>
|
|
|
|
</div>
|
|
|
|
<h2>Services</h2>
|
|
|
|
<div class="filter-results"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="details span7">
|
|
|
|
<div class="btn-toolbar">
|
|
|
|
<div class="add-edit-delete-group btn-group">
|
|
|
|
<button id="add-service" class="btn">
|
|
|
|
<i class="icon-plus"></i>
|
|
|
|
Add</button>
|
|
|
|
<button id="edit-service" class="btn" disabled="disabled">
|
|
|
|
<i class="icon-pencil"></i>
|
|
|
|
Edit</button>
|
|
|
|
<button id="delete-service" class="btn" disabled="disabled">
|
|
|
|
<i class="icon-remove"></i>
|
|
|
|
Delete</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="save-cancel-group btn-group" style="display:none;">
|
|
|
|
<button id="save-service" class="btn">
|
|
|
|
<i class="icon-ok"></i>
|
|
|
|
Save</button>
|
|
|
|
<button id="cancel-service" class="btn">
|
|
|
|
<i class="icon-ban-circle"></i>
|
|
|
|
Cancel</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h2>Details</h2>
|
|
|
|
<div class="form-message alert" style="display:none;"></div>
|
|
|
|
|
|
|
|
<input type="hidden" id="service-id" />
|
|
|
|
|
|
|
|
<label for="service-name">Name *</label>
|
|
|
|
<input type="text" id="service-name" class="span7 required" />
|
|
|
|
|
2013-07-18 00:10:42 +03:00
|
|
|
<label for="service-duration">Duration *</label>
|
|
|
|
<input type="text" id="service-duration" />
|
2013-07-17 19:29:51 +03:00
|
|
|
|
2013-07-18 00:10:42 +03:00
|
|
|
<label for="service-price">Price *</label>
|
2013-07-17 19:29:51 +03:00
|
|
|
<input type="text" id="service-price" class="span7" />
|
|
|
|
|
|
|
|
<label for="service-currency">Currency</label>
|
|
|
|
<input type="text" id="service-currency" class="span7" />
|
|
|
|
|
|
|
|
<label for="service-description">Description</label>
|
|
|
|
<textarea id="service-description" rows="4" class="span7"></textarea>
|
|
|
|
|
|
|
|
<label for="service-category">Category</label>
|
|
|
|
<select id="service-category" class="span7"></select>
|
2013-07-18 00:10:42 +03:00
|
|
|
|
|
|
|
<br/><br/>
|
|
|
|
<em id="form-message" class="text-error">Fields with * are required!</em>
|
2013-07-17 19:29:51 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php // CATEGORIES TAB ++++++++++++++++++++++++++++++++ ?>
|
|
|
|
<div id="categories" class="tab-content" style="display:none;">
|
|
|
|
<div class="filter span4">
|
|
|
|
<div class="input-append">
|
|
|
|
<input class="span12" type="text" class="filter-key" />
|
2013-07-18 00:10:42 +03:00
|
|
|
<button type="button" class="btn" class="filter-categories">Filter</button>
|
2013-07-17 19:29:51 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<h2>Categories</h2>
|
|
|
|
<div class="filter-results"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="details span7">
|
|
|
|
<div class="btn-toolbar">
|
|
|
|
<div class="add-edit-delete-group btn-group">
|
|
|
|
<button id="add-category" class="btn">
|
|
|
|
<i class="icon-plus"></i>
|
|
|
|
Add</button>
|
|
|
|
<button id="edit-category" class="btn" disabled="disabled">
|
|
|
|
<i class="icon-pencil"></i>
|
|
|
|
Edit</button>
|
|
|
|
<button id="delete-category" class="btn" disabled="disabled">
|
|
|
|
<i class="icon-remove"></i>
|
|
|
|
Delete</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="save-cancel-group btn-group" style="display:none;">
|
|
|
|
<button id="save-category" class="btn">
|
|
|
|
<i class="icon-ok"></i>
|
|
|
|
Save</button>
|
|
|
|
<button id="cancel-category" class="btn">
|
|
|
|
<i class="icon-ban-circle"></i>
|
|
|
|
Cancel</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h2>Details</h2>
|
|
|
|
<div class="form-message alert" style="display:none;"></div>
|
|
|
|
|
|
|
|
<label for="category-name">Name *</label>
|
|
|
|
<input type="text" id="category-name" class="span7 required" />
|
|
|
|
|
|
|
|
<label for="category-description">Description</label>
|
|
|
|
<textarea id="category-description" rows="4" class="span7"></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|