Skip to content

Commit

Permalink
поправил интерфейс
Browse files Browse the repository at this point in the history
  • Loading branch information
freekode committed Sep 16, 2013
1 parent ed20c9f commit be1244a
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 12 deletions.
8 changes: 8 additions & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ module.exports= (grunt) ->
dest: '<%= pkg.config.build.app.node %>/db/sql'
}]

watch:
scripts:
files: '<%= pkg.config.build.src.node %>/views/assets/**/*'
tasks: ['jade', 'less', 'copy:views']
options:
event: ['added', 'deleted', 'changed']

#coffeelint:
# app:
# options:
Expand Down Expand Up @@ -106,6 +113,7 @@ module.exports= (grunt) ->
grunt.loadNpmTasks 'grunt-contrib-jade'
grunt.loadNpmTasks 'grunt-contrib-less'
grunt.loadNpmTasks 'grunt-yaml'
grunt.loadNpmTasks 'grunt-contrib-watch'
#grunt.loadNpmTasks 'grunt-coffeelint'
#grunt.loadNpmTasks 'grunt-docco'

Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "apiserver.builder",
"repository": { "type": "git", "url": "https://github.com/okdas/apiserver.git" },
"repository": {
"type": "git",
"url": "https://github.com/okdas/apiserver.git"
},
"private": true,
"config": {
"build": {
Expand Down Expand Up @@ -28,7 +31,8 @@
"grunt-contrib-less": "0.6.4",
"grunt-yaml": "0.2.1",
"grunt-cli": "0.1.9",
"coffee-script": "1.6.3"
"coffee-script": "1.6.3",
"grunt-contrib-watch": "0.5.3"
},
"engines": {
"node": "0.10.17"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ block section-body
.row
.col-10
select.input(ng-model='tag')
option(ng-repeat='tag in tags | filter:filterTag:tag', value='{{tag}}') {{tag.name}}
option(ng-repeat='tag in tags | filter:filterTag:tag', value='{{tag}}') {{tag.name}} ({{tag.titleRuSingular}})
.col-1
button.btn(ng-click='addTag(tag)',ng-disabled='!tag')
i.icon-plus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ block section-body
.row
.col-10
select.input(ng-model='tag')
option(ng-repeat='tag in tags | filter:filterTag:tag', value='{{tag}}') {{tag.name}}
option(ng-repeat='tag in tags | filter:filterTag:tag', value='{{tag}}') {{tag.name}} ({{tag.titleRuSingular}})
.col-1
button.btn(ng-click='addTag(tag)',ng-disabled='!tag')
i.icon-plus

.row(ng-repeat='itemTag in item.tags')
.col-3 {{itemTag.name}}
.col-3 {{itemTag.name}} ({{itemTag.titleRuSingular}})
.col-1
button.btn(ng-click='removeTag(itemTag)')
i.icon-minus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ block section-body
tr
th #
th.col-flex: .table-col: .table-col-sortable Тег
th Name
th Название
th Родительские
th
button.btn.btn-info(ng-click='reload()')
Expand All @@ -17,8 +17,8 @@ block section-body
tbody
tr(ng-repeat='tag in tags | filter:tagSearch')
td {{tag.id}}
td {{tag.titleRuPlural}} ({{tag.name}})
td {{tag.name}}
td {{tag.titleRuPlural}}
td
span(ng-repeat='parent in tag.parentTags')= '{{parent.name}} '
td
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ block section-body

fieldset: .row
.col-6
input.input(placeholder='В единственном числе', type='text', required, ng-maxlength='50', ng-model='tag.titleRuSingular')
input.input(placeholder='В единственном числе', type='text', ng-maxlength='50', ng-model='tag.titleRuSingular')
.col-6
input.input(placeholder='Во множественном', type='text', required, ng-maxlength='50', ng-model='tag.titleRuPlural')
input.input(placeholder='Во множественном', type='text', ng-maxlength='50', ng-model='tag.titleRuPlural')


fieldset: .row
.col-6
input.input(placeholder='Singular', type='text', required, ng-maxlength='50', ng-model='tag.titleEnSingular')
input.input(placeholder='Singular', type='text', ng-maxlength='50', ng-model='tag.titleEnSingular')
.col-6
input.input(placeholder='Plural', type='text', required, ng-maxlength='50', ng-model='tag.titleEnPlural')
input.input(placeholder='Plural', type='text', ng-maxlength='50', ng-model='tag.titleEnPlural')


fieldset
.row
.col-10
select.input(ng-model='parentTag')
option(ng-repeat='parentTag in tags | filter:filterTag: parentTag', value='{{parentTag}}') {{parentTag.titleRuSingular}} ({{parentTag.name}})
option(ng-repeat='parentTag in tags | filter:filterTag: parentTag', value='{{parentTag}}') {{parentTag.name}} ({{parentTag.titleRuSingular}})
.col-1
button.btn(ng-click='addTag(parentTag)',ng-disabled='!parentTag')
i.icon-plus
Expand Down

0 comments on commit be1244a

Please sign in to comment.