[Backport] repeat by div instead of form in the admin lists

stable
Juanfran 2015-06-22 14:59:21 +02:00 committed by David Barragán Merino
parent 94c8acc47a
commit 4c8cfca692
5 changed files with 128 additions and 125 deletions

View File

@ -14,7 +14,8 @@ section.custom-fields-table.basic-table
div.table-body div.table-body
div.js-sortable div.js-sortable
form.js-form(ng-repeat="attr in customAttributes track by attr.id", tg-bind-scope) div(ng-repeat="attr in customAttributes track by attr.id", tg-bind-scope)
form.js-form(tg-bind-scope)
div.row.single-custom-field.js-view-custom-field div.row.single-custom-field.js-view-custom-field
span.icon.icon-drag-v span.icon.icon-drag-v
div.custom-name div.custom-name

View File

@ -15,7 +15,8 @@ section.project-values-table
div.project-values-body div.project-values-body
div.sortable div.sortable
form(ng-repeat="value in values", tg-bind-scope) div(ng-repeat="value in values track by value.id", tg-bind-scope)
form(tg-bind-scope)
div.project-values-row.row.table-main.visualization div.project-values-row.row.table-main.visualization
span.icon.icon-drag-v span.icon.icon-drag-v
@ -31,12 +32,10 @@ section.project-values-table
div.project-values-row.row.table-main.edition.hidden div.project-values-row.row.table-main.edition.hidden
div.project-values-name div.project-values-name
input(name="name", type="text", placeholder="{{'COMMON.FIELDS.NAME' | translate}}", ng-model="value.name", input(name="name", type="text", placeholder="{{'COMMON.FIELDS.NAME' | translate}}", ng-model="value.name")
data-required="true")
div.project-values-value div.project-values-value
input(name="value", type="text", placeholder="{{'COMMON.FIELDS.VALUE' | translate}}", ng-model="value.value", input(name="value", type="text", placeholder="{{'COMMON.FIELDS.VALUE' | translate}}", ng-model="value.value", data-type="number")
data-type="number")
div.project-values-settings div.project-values-settings
a.save.icon.icon-floppy(href="", title="{{'COMMON.SAVE' | translate}}") a.save.icon.icon-floppy(href="", title="{{'COMMON.SAVE' | translate}}")

View File

@ -14,7 +14,8 @@ section.colors-table.admin-status-table
div.table-main div.table-main
div.sortable div.sortable
form(ng-repeat="value in values", tg-bind-scope) div(ng-repeat="value in values", tg-bind-scope)
form(tg-bind-scope)
div.row.table-main.visualization div.row.table-main.visualization
span.icon.icon-drag-v span.icon.icon-drag-v
div.color-column div.color-column

View File

@ -13,7 +13,8 @@ section.colors-table
div.table-main div.table-main
div.sortable div.sortable
form(ng-repeat="value in values", tg-bind-scope) div(ng-repeat="value in values", tg-bind-scope)
form(tg-bind-scope)
div.row.table-main.visualization div.row.table-main.visualization
span.icon.icon-drag-v span.icon.icon-drag-v

View File

@ -18,7 +18,8 @@ section.project-us-status
div.table-main div.table-main
div.sortable div.sortable
form(ng-repeat="value in values", tg-bind-scope) div(ng-repeat="value in values", tg-bind-scope)
form(tg-bind-scope)
div.row.table-main.visualization div.row.table-main.visualization
span.icon.icon-drag-v span.icon.icon-drag-v