Commit 73e967d2 authored by Evren Kutar's avatar Evren Kutar

search fix

table index removed
parent b4c649cf
...@@ -10,7 +10,9 @@ ...@@ -10,7 +10,9 @@
angular.module('ulakbus.crud', ['ui.bootstrap', 'schemaForm', 'formService']) angular.module('ulakbus.crud', ['ui.bootstrap', 'schemaForm', 'formService'])
.config(function (sfErrorMessageProvider) { .config(function (sfErrorMessageProvider) {
sfErrorMessageProvider.setDefaultMessage(302, 'Bu alan zorunludur.') sfErrorMessageProvider.setDefaultMessage(302, 'Bu alan zorunludur.');
sfErrorMessageProvider.setDefaultMessage(200, 'En az {{schema.minLength}} değer giriniz.');
sfErrorMessageProvider.setDefaultMessage(201, 'En fazla {{schema.minLength}} değer giriniz.');
}) })
/** /**
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
<table class="table table-bordered" style="background-color:#fff;"> <table class="table table-bordered" style="background-color:#fff;">
<thead> <thead>
<tr> <tr>
<td colspan="2"> <td ng-if="meta.allow_selection === true">
<label ng-if="meta.allow_selection === true"> <label>
<input type="checkbox" style="zoom:1.5; margin:5px 0 0 8px;"> <input type="checkbox" style="zoom:1.5; margin:5px 0 0 8px;">
Hepsini Seç Hepsini Seç
</label> </label>
...@@ -25,12 +25,12 @@ ...@@ -25,12 +25,12 @@
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="object in objects" ng-if="$index>0"> <tr ng-repeat="object in objects" ng-if="$index>0">
<td width="60"> <td width="60" ng-if="meta.allow_selection === true">
<label ng-if="meta.allow_selection === true"> <label>
<input type="checkbox" style="zoom:1.5; margin:5px 0 0 8px;"> <input type="checkbox" style="zoom:1.5; margin:5px 0 0 8px;">
</label> </label>
</td> </td>
<td scope="row" style="text-align:center">{{$index}}</td> <!--<td scope="row" style="text-align:center">{{$index}}</td>-->
<td ng-repeat="field in object.fields track by $index"> <td ng-repeat="field in object.fields track by $index">
<a role="button" ng-if="field.type==='link'" <a role="button" ng-if="field.type==='link'"
......
...@@ -902,7 +902,8 @@ angular.module('formService', ['ui.bootstrap']) ...@@ -902,7 +902,8 @@ angular.module('formService', ['ui.bootstrap'])
"cmd": $scope.form_params.cmd, "cmd": $scope.form_params.cmd,
"flow": $scope.form_params.flow, "flow": $scope.form_params.flow,
"object_id": $scope.object_id, "object_id": $scope.object_id,
"filter": $scope.filter "filter": $scope.filter,
"query": $scope.form_params.query
}; };
return $http.post(generator.makeUrl($scope), data) return $http.post(generator.makeUrl($scope), data)
......
This diff is collapsed.
...@@ -175,8 +175,8 @@ angular.module("components/crud/templates/list.html", []).run(["$templateCache", ...@@ -175,8 +175,8 @@ angular.module("components/crud/templates/list.html", []).run(["$templateCache",
" <table class=\"table table-bordered\" style=\"background-color:#fff;\">\n" + " <table class=\"table table-bordered\" style=\"background-color:#fff;\">\n" +
" <thead>\n" + " <thead>\n" +
" <tr>\n" + " <tr>\n" +
" <td colspan=\"2\">\n" + " <td ng-if=\"meta.allow_selection === true\">\n" +
" <label ng-if=\"meta.allow_selection === true\">\n" + " <label>\n" +
" <input type=\"checkbox\" style=\"zoom:1.5; margin:5px 0 0 8px;\">\n" + " <input type=\"checkbox\" style=\"zoom:1.5; margin:5px 0 0 8px;\">\n" +
" Hepsini Seç\n" + " Hepsini Seç\n" +
" </label>\n" + " </label>\n" +
...@@ -188,12 +188,12 @@ angular.module("components/crud/templates/list.html", []).run(["$templateCache", ...@@ -188,12 +188,12 @@ angular.module("components/crud/templates/list.html", []).run(["$templateCache",
" </thead>\n" + " </thead>\n" +
" <tbody>\n" + " <tbody>\n" +
" <tr ng-repeat=\"object in objects\" ng-if=\"$index>0\">\n" + " <tr ng-repeat=\"object in objects\" ng-if=\"$index>0\">\n" +
" <td width=\"60\">\n" + " <td width=\"60\" ng-if=\"meta.allow_selection === true\">\n" +
" <label ng-if=\"meta.allow_selection === true\">\n" + " <label>\n" +
" <input type=\"checkbox\" style=\"zoom:1.5; margin:5px 0 0 8px;\">\n" + " <input type=\"checkbox\" style=\"zoom:1.5; margin:5px 0 0 8px;\">\n" +
" </label>\n" + " </label>\n" +
" </td>\n" + " </td>\n" +
" <td scope=\"row\" style=\"text-align:center\">{{$index}}</td>\n" + " <!--<td scope=\"row\" style=\"text-align:center\">{{$index}}</td>-->\n" +
"\n" + "\n" +
" <td ng-repeat=\"field in object.fields track by $index\">\n" + " <td ng-repeat=\"field in object.fields track by $index\">\n" +
" <a role=\"button\" ng-if=\"field.type==='link'\"\n" + " <a role=\"button\" ng-if=\"field.type==='link'\"\n" +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment