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>
|
|
|
|
|
2013-09-13 16:21:03 +03:00
|
|
|
<?php
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// SERVICES TAB
|
|
|
|
//
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
?>
|
2013-07-17 19:29:51 +03:00
|
|
|
<div id="services" class="tab-content">
|
|
|
|
<?php // FILTER SERVICES ?>
|
2013-09-25 18:43:17 +03:00
|
|
|
<div id="filter-services" class="filter-records column span4">
|
|
|
|
<form class="input-append">
|
|
|
|
<input class="key span8" type="text" />
|
|
|
|
<button class="filter btn" type="submit">
|
|
|
|
<i class="icon-filter"></i>
|
|
|
|
Filter
|
|
|
|
</button>
|
|
|
|
<button class="clear btn" type="button">
|
|
|
|
<i class="icon-remove-circle"></i>
|
|
|
|
Clear
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
|
2013-07-17 19:29:51 +03:00
|
|
|
<h2>Services</h2>
|
2013-09-25 18:43:17 +03:00
|
|
|
<div class="results"></div>
|
2013-07-17 19:29:51 +03:00
|
|
|
</div>
|
|
|
|
|
2013-09-25 18:43:17 +03:00
|
|
|
<div class="details column span7">
|
2013-07-17 19:29:51 +03:00
|
|
|
<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>
|
2013-07-19 18:29:59 +03:00
|
|
|
<input type="text" id="service-duration" class="required" />
|
2013-07-17 19:29:51 +03:00
|
|
|
|
2013-07-18 00:10:42 +03:00
|
|
|
<label for="service-price">Price *</label>
|
2013-07-19 18:29:59 +03:00
|
|
|
<input type="text" id="service-price" class="span7 required" />
|
2013-07-17 19:29:51 +03:00
|
|
|
|
|
|
|
<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>
|
|
|
|
|
2013-09-13 16:21:03 +03:00
|
|
|
<?php
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// CATEGORIES TAB
|
|
|
|
//
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
?>
|
2013-07-17 19:29:51 +03:00
|
|
|
<div id="categories" class="tab-content" style="display:none;">
|
2013-09-25 18:43:17 +03:00
|
|
|
<div id="filter-categories" class="filter-records column span4">
|
|
|
|
<form class="input-append">
|
|
|
|
<input class="key span8" type="text" class="" />
|
|
|
|
<button class="filter btn" type="submit">
|
|
|
|
<i class="icon-filter"></i>
|
|
|
|
Filter
|
|
|
|
</button>
|
|
|
|
<button class="clear btn" type="button">
|
|
|
|
<i class="icon-remove-circle"></i>
|
|
|
|
Clear
|
|
|
|
</button>
|
|
|
|
</form>
|
2013-07-17 19:29:51 +03:00
|
|
|
|
|
|
|
<h2>Categories</h2>
|
2013-09-25 18:43:17 +03:00
|
|
|
<div class="results"></div>
|
2013-07-17 19:29:51 +03:00
|
|
|
</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>
|
|
|
|
|
2013-07-19 18:29:59 +03:00
|
|
|
<input type="hidden" id="category-id" />
|
|
|
|
|
2013-07-17 19:29:51 +03:00
|
|
|
<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>
|