-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathadmin.php
41 lines (26 loc) · 1.01 KB
/
admin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/** @var \Tarosky\TSCF\Bootstrap $this */
defined( 'ABSPATH' ) || die( 'Do not load directly!' );
?>
<div class="wrap" ng-app="tscf" id="tscf-editor">
<div class="tscfe" ng-controller="tscfEditor" ng-cloak>
<h2>
<span class="dashicons dashicons-hammer"></span>
<?php esc_html_e( 'Tarosky Custom Field config file editor', 'tscf' ) ?>
</h2>
<hr/>
<div class="tscfe-main">
<div class=fscfe-field-list>
<div class="tscfe-field" ng-repeat="(i, setting) in settings" ng-hide="i !== index">
<tscf-field groups="settings" i="i" current-index="index"></tscf-field>
</div>
</div>
</div>
<div class="tscfe-side">
<tscf-alert errors="errors"></tscf-alert>
<button class="button" ng-click="addGroup()"><?php esc_html_e( 'Add Field Group', 'tscf' ) ?></button>
<button class="button-primary" ng-click="saveFields()"><?php esc_html_e( 'Save', 'tscf' ) ?></button>
<tscf-nav settings="settings" index="index"></tscf-nav>
</div>
</div><!-- tscfe -->
</div><!-- //.wrap -->