https://src.bluestatic.org
/
bugdar.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Change the yesno directive to settingType and support text rows.
[bugdar.git]
/
static
/
admin.js
1
angular
.
module
(
'bugdar.admin.settings'
, [])
2
.
directive
(
'settingType'
, [
'$templateCache'
,
function
($
templateCache
) {
3
return
{
4
restrict
:
'A'
,
5
replace
:
false
,
6
template
: $
templateCache
.
get
(
'-/admin/settings/row.tpl'
),
7
scope
: {
8
title
:
'@'
,
9
description
:
'@'
,
10
settingType
:
'@'
,
11
name
:
'@'
,
12
value
:
'@'
13
}
14
};
15
}]);